love.graphics.newImageFont

love.graphics.newImageFont Creates a new Font by loading a specifically formatted image. In versions prior to 0.9.0, LÖVE expects ISO 8859-1 encoding for the glyphs string. 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.newImageFont( filename, glyphs ) Arguments string filename The filepath to the image fi

love.graphics.newImage

love.graphics.newImage Creates a new Image from a filepath, FileData, an ImageData, or a CompressedImageData, and optionally generates or specifies mipmaps for the image. 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 image = love.graphics.newImage( filename ) Arguments string filename The filepath to the image file. Returns I

love.graphics.newFramebuffer

love.graphics.newFramebuffer Available since LÖVE 0.7.0 and removed in LÖVE 0.8.0 It has been renamed to love.graphics.newCanvas. Creates a new framebuffer object for offscreen rendering. Versions prior to 0.8.0 have Framebuffers that are susceptible to power of 2 syndrome. 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 fram

love.graphics.newFont

love.graphics.newFont Creates a new Font. Created fonts are not cached, in that calling this function with the same arguments will always create a new Font object. 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.newFont( filename, size ) Arguments string filename The filepath to the font file. number size (12

love.graphics.newCanvas

love.graphics.newCanvas Available since LÖVE 0.8.0 It has been renamed from love.graphics.newFramebuffer. Creates a new Canvas object for offscreen rendering. 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 canvas = love.graphics.newCanvas( ) Arguments None. Returns Canvas canvas A new Canvas with dimensions equal to the win

love.graphics.line

love.graphics.line Draws lines between points. Function Synopsis love.graphics.line( x1, y1, x2, y2, ... ) Arguments number x1 The position of first point on the x-axis. number y1 The position of first point on the y-axis. number x2 The position of second point on the x-axis. number y2 The position of second point on the y-axis. number ... You can continue passing point positions to draw a polyline. Returns Nothing. Function Synopsis love.graphics.line( points ) Arguments table points

love.graphics.isWireframe

love.graphics.isWireframe Available since LÖVE 0.9.1 This function is not supported in earlier versions. Gets whether wireframe mode is used when drawing. Function Synopsis wireframe = love.graphics.isWireframe( ) Arguments None. Returns boolean wireframe True if wireframe lines are used when drawing, false if it's not. See Also love.graphics love.graphics.setWireframe

love.graphics.isSupported

love.graphics.isSupported Available since LÖVE 0.8.0 and removed in LÖVE 0.10.0 It has been replaced by love.graphics.getSupported. Checks if certain graphics functions can be used. Older and low-end systems do not always support all graphics extensions. Function Synopsis isSupported = love.graphics.isSupported( support1, support2, support3, ... ) Arguments GraphicsFeature supportN The graphics feature to check for. Returns boolean isSupported True if everything is supported, false ot

love.graphics.isGammaCorrect

love.graphics.isGammaCorrect Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets whether gamma-correct rendering is supported and enabled. It can be enabled by setting t.gammacorrect = true in love.conf. Not all devices support gamma-correct rendering, in which case it will be automatically disabled and this function will return false. It is supported on desktop systems which have graphics cards that are capable of using OpenGL 3 / DirectX 10, and iOS devic

love.graphics.isCreated

love.graphics.isCreated Removed in LÖVE 0.9.0 Moved to the love.window module as love.window.isCreated. Checks if the window has been created. Function Synopsis created = love.graphics.isCreated( ) Arguments None. Returns boolean created True if the window has been created, false otherwise. See Also love.graphics