love.graphics.setShader

love.graphics.setShader Available since LÖVE 0.9.0 It has been renamed from love.graphics.setPixelEffect. Sets or resets a Shader as the current pixel effect or vertex shaders. All drawing operations until the next love.graphics.setShader will be drawn using the Shader object specified. Function Synopsis love.graphics.setShader( shader ) Arguments Shader shader The new shader. Returns Nothing. Notes Sets the current shader to a specified Shader. All drawing operations until the next l

love.graphics.setScissor

love.graphics.setScissor Sets or disables scissor. The scissor limits the drawing area to a specified rectangle. This affects all graphics calls, including love.graphics.clear. The dimensions of the scissor is unaffected by graphical transformations (translate, scale, ...). Function Limits the drawing area to a specified rectangle. Synopsis love.graphics.setScissor( x, y, width, height ) Arguments number x x coordinate of upper left corner. number y y coordinate of upper left corner. numb

love.graphics.setRenderTarget

love.graphics.setRenderTarget Available since LÖVE 0.7.0 and removed in LÖVE 0.8.0 It has been renamed to love.graphics.setCanvas. Sets or resets a Framebuffer as render target. All drawing operations until the next love.graphics.setRenderTarget will be directed to the Framebuffer object specified. Function Synopsis love.graphics.setRenderTarget( framebuffer ) Arguments Framebuffer framebuffer The new render target. Returns Nothing. Notes Sets the render target to a specified Framebuff

love.graphics.setPointStyle

love.graphics.setPointStyle Removed in LÖVE 0.10.0 This function is not supported in that and later versions. Sets the point style. Smooth points are notoriously buggy on a lot of graphics drivers. Use "rough" point style for increased consistency between different drivers. Function Synopsis love.graphics.setPointStyle( style ) Arguments PointStyle style The new point style. Returns Nothing. Examples Toggle between point styles with the help of love.graphics.getPointStyle. if love.g

love.graphics.setPointSize

love.graphics.setPointSize Sets the point size. The sizes of points are not affected by love.graphics.scale – they're always in pixels. Function Synopsis love.graphics.setPointSize( size ) Arguments number size The new point size. Returns Nothing. Examples Increase the point size by 1, by using love.graphics.getPointSize. function love.draw() local s = love.graphics.getPointSize() + 1 love.graphics.setPointSize(s) love.graphics.point(100, 100) end See Also love.graphics lo

love.graphics.setPoint

love.graphics.setPoint Removed in LÖVE 0.9.0 Use love.graphics.setPointSize and love.graphics.setPointStyle. Sets the point size and style. Function Synopsis love.graphics.setPoint( size, style ) Arguments number size The new point size. PointStyle style The new point style. Returns Nothing. Examples Increase the point size by 1 and set it to smooth. local s = love.graphics.getPointSize() + 1 love.graphics.setPoint(s, "smooth") See Also love.graphics love.graphics.setPointSize l

love.graphics.setPixelEffect

love.graphics.setPixelEffect Available since LÖVE 0.8.0 and removed in LÖVE 0.9.0 It has been renamed to love.graphics.setShader. Sets or resets a PixelEffect as the current pixel effect. All drawing operations until the next love.graphics.setPixelEffect will be drawn using the PixelEffect object specified. Function Synopsis love.graphics.setPixelEffect( pixeleffect ) Arguments PixelEffect pixeleffect The new pixel effect. Returns Nothing. Notes Sets the current pixel shader to a spec

love.graphics.setNewFont

love.graphics.setNewFont Available since LÖVE 0.8.0 This function is not supported in earlier versions. Creates and sets a new Font. This function can be slow if it is called repeatedly, such as from love.update or love.draw. If you need to use a specific resource often, create it once and store it somewhere it can be reused! Function Synopsis font = love.graphics.setNewFont( size ) Arguments number size (12) The size of the font. Returns Font font The new font. Function Synopsis fo

love.graphics.setMode

love.graphics.setMode Removed in LÖVE 0.9.0 Moved to the love.window module as love.window.setMode. Changes the window size, or the display mode if fullscreen. If width or height is 0, setMode will use the width or height of the desktop. Changing the display mode may have side effects: for example, Canvases will be cleared; make sure to save their contents beforehand. Function Synopsis success = love.graphics.setMode( width, height, fullscreen, vsync, fsaa ) Arguments number width Disp

love.graphics.setLineWidth

love.graphics.setLineWidth Sets the line width. Function Synopsis love.graphics.setLineWidth( width ) Arguments number width The width of the line. Returns Nothing. See Also love.graphics love.graphics.setLine