Moai SDK  1.5 revision 1 (MoaiEdition)
MOAIGfxQuad2D Class Reference
Inheritance diagram for MOAIGfxQuad2D:
MOAIDeck

List of all members.

Function List

  setQuad
  setRect
  setUVQuad
  setUVRect
  transform
  transformUV

Function Documentation

Set model space quad. Vertex order is clockwise from upper left (xMin, yMax)


function setQuad ( MOAIGfxQuad2D self, number x0, number y0, number x1, number y1, number x2, number y2, number x3, number y3 )
Parameters:
self ( MOAIGfxQuad2D )
x0 ( number )
y0 ( number )
x1 ( number )
y1 ( number )
x2 ( number )
y2 ( number )
x3 ( number )
y3 ( number )
Returns:
nil

Set the model space dimensions of the quad.


function setRect ( MOAIGfxQuad2D self, number xMin, number yMin, number xMax, number yMax )
Parameters:
self ( MOAIGfxQuad2D )
xMin ( number )
yMin ( number )
xMax ( number )
yMax ( number )
Returns:
nil

Set the UV space dimensions of the quad. Vertex order is clockwise from upper left (xMin, yMax)


function setUVQuad ( MOAIGfxQuad2D self, number x0, number y0, number x1, number y1, number x2, number y2, number x3, number y3 )
Parameters:
self ( MOAIGfxQuad2D )
x0 ( number )
y0 ( number )
x1 ( number )
y1 ( number )
x2 ( number )
y2 ( number )
x3 ( number )
y3 ( number )
Returns:
nil

Set the UV space dimensions of the quad.


function setUVRect ( MOAIGfxQuad2D self, number xMin, number yMin, number xMax, number yMax )
Parameters:
self ( MOAIGfxQuad2D )
xMin ( number )
yMin ( number )
xMax ( number )
yMax ( number )
Returns:
nil

Apply the given MOAITransform to all the vertices in the deck.


function transform ( MOAIGfxQuad2D self, MOAITransform transform )
Parameters:
self ( MOAIGfxQuad2D )
transform ( MOAITransform )
Returns:
nil

Apply the given MOAITransform to all the uv coordinates in the deck.


function transformUV ( MOAIGfxQuad2D self, MOAITransform transform )
Parameters:
self ( MOAIGfxQuad2D )
transform ( MOAITransform )
Returns:
nil