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

ChainShape:getPreviousVertex

ChainShape:getPreviousVertex Available since LÖVE 0.10.2 This function is not supported in earlier versions. Gets the vertex that establishes a connection to the previous shape. Setting next and previous ChainShape vertices can help prevent unwanted collisions when a flat shape slides along the edge and moves over to the new shape. Function Synopsis x, y = ChainShape:getPreviousVertex( ) Arguments None. Returns number x (nil) The x-component of the vertex, or nil if ChainShape:setPrevio

love.mouse.newCursor

love.mouse.newCursor Available since LÖVE 0.9.0 This function is not supported in earlier versions. Creates a new hardware Cursor object from an image file or ImageData. Hardware cursors are framerate-independent and work the same way as normal operating system cursors. Unlike drawing an image at the mouse's current coordinates, hardware cursors never have visible lag between when the mouse is moved and when the cursor position updates, even at low framerates. The hot spot is the point th

love.graphics.getCanvasFormats

love.graphics.getCanvasFormats Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets the available Canvas formats, and whether each is supported. Function Synopsis formats = love.graphics.getCanvasFormats( ) Arguments None. Returns table formats A table containing CanvasFormats as keys, and a boolean indicating whether the format is supported as values. Not all systems support all formats. Examples Create a canvas with the format 'rgba16f' if it is support

PolygonShape:getPoints

PolygonShape:getPoints Get the local coordinates of the polygon's vertices. This function has a variable number of return values. It can be used in a nested fashion with love.graphics.polygon. Function Synopsis x1, y1, x2, y2, ... x8, y8 = PolygonShape:getPoints( ) Arguments None. Returns number x1 The x-component of the first vertex. number y1 The y-component of the first vertex. number x2 The x-component of the second vertex. number y2 The y-component of the second vertex. And so on,

Mesh:getTexture

Mesh:getTexture Available since LÖVE 0.9.1 This function is not supported in earlier versions. Gets the texture (Image or Canvas) used when drawing the Mesh. Function Synopsis texture = Mesh:getTexture( ) Arguments None. Returns Texture texture (nil) The Image or Canvas to texture the Mesh with when drawing, or nil if none is set. See Also Mesh Mesh:setTexture

love.load

love.load This function is called exactly once at the beginning of the game. Function Synopsis love.load( arg ) Arguments table arg Command line arguments given to the game. Returns Nothing. Examples Establish some variables/resources on the game load, so that they can be used repeatedly in other functions (such as love.draw). function love.load() hamster = love.graphics.newImage("hamster.png") x = 50 y = 50 end   function love.draw() love.graphics.draw(hamster, x, y) end See

love.mouse.getX

love.mouse.getX Returns the current x-position of the mouse. Function Synopsis x = love.mouse.getX( ) Arguments None. Returns number x The position of the mouse along the x-axis. Examples Draw a vertical line at the mouse's x-position. function love.draw() local x = love.mouse.getX() love.graphics.line(x,0, x,love.graphics.getHeight()) end See Also love.mouse love.mouse.getY love.mouse.getPosition

BezierCurve:rotate

BezierCurve:rotate Available since LÖVE 0.9.0 This function is not supported in earlier versions. Rotate the Bézier curve by an angle. Function Synopsis BezierCurve:rotate(angle, ox, oy) Arguments number angle Rotation angle in radians. number ox (0) X coordinate of the rotation center. number oy (0) Y coordinate of the rotation center. Returns Nothing. See Also BezierCurve:translate BezierCurve:scale BezierCurve love.math

love.graphics.push

love.graphics.push Copies and pushes the current coordinate transformation to the transformation stack. This function is always used to prepare for a corresponding pop operation later. It stores the current coordinate transformation state into the transformation stack and keeps it active. Later changes to the transformation can be undone by using the pop operation, which returns the coordinate transform to the state it was in before calling push. Function Pushes the current transformation to