Quad

A quadrilateral (a polygon with four sides and four corners) with texture coordinate information.

Quads can be used to select part of a texture to draw. In this way, one large texture atlas can be loaded, and then split up into sub-images.

O.png Quads 'bleed' when scaled, rotated or drawn at non-integer coordinates, even within SpriteBatches, to compensate for this, use 1px borders around the textures inside the texture atlas (preferably with the same colors as the actual border)  

Constructors

love.graphics.newQuadCreates a new Quad.

Functions

Object:typeGets the type of the object as a string.
Object:typeOfChecks whether an object is of a certain type.
Quad:flipFlips this quad horizontally, vertically, or both. Removed in 0.9.0
Quad:getViewportGets the current viewport of this Quad.
Quad:setViewportSets the texture coordinates according to a viewport.

Supertypes

See Also


Other Languages

Personal tools