Difference between revisions of "Quad"

m
Line 4: Line 4:
  
 
== Constructors ==
 
== Constructors ==
{{#ask: [[Category:Functions]] [[Constructs::Quad]] [[Since::<071]]
+
{{#ask: [[Category:Functions]] [[Constructs::Quad]] [[Concept:Current]]
 
| headers=hide
 
| headers=hide
 
| default=None.
 
| default=None.
Line 10: Line 10:
 
}}
 
}}
 
== Functions ==
 
== Functions ==
{{#ask: [[Category:Functions]] [[parent::Quad||Object]] [[Since::<071]]
+
{{#ask: [[Category:Functions]] [[parent::Quad||Object]] [[Concept:Current]]
 
| headers=hide
 
| headers=hide
 
| ?Description
 
| ?Description

Revision as of 22:58, 23 June 2012

A quadrilateral 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.

Constructors

love.graphics.newQuadCreates a new Quad.

Functions

Object:releaseImmediately destroys the object's Lua reference.
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.
Quad:getLayerGets the layer specified by Quad:setLayer.
Quad:getTextureDimensionsGets reference texture dimensions initially specified in love.graphics.newQuad.
Quad:getViewportGets the current viewport of this Quad.
Quad:setLayerSets the layer to use in Array Textures.
Quad:setViewportSets the texture coordinates according to a viewport.

Supertypes

Object

See Also


Other Languages