Difference between revisions of "Quad"

m (1 revision: Imported docs from potato.)
Line 1: Line 1:
  
 
+
A quadrilateral with texture coordinate information.
 
== Functions ==
 
== Functions ==
 
{{#ask: [[Category:Functions]] [[parent::Quad]]
 
{{#ask: [[Category:Functions]] [[parent::Quad]]
Line 10: Line 10:
 
* [[love.graphics.newQuad]]
 
* [[love.graphics.newQuad]]
 
[[Category:Types]]
 
[[Category:Types]]
{{#set:Description=}}
+
{{#set:Description=A quadrilateral with texture coordinate information.}}

Revision as of 16:17, 14 February 2010

A quadrilateral with texture coordinate information.

Functions

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.

See Also