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

List of all members.

Function List

  reserve
  setQuad
  setRect
  setUVQuad
  setUVRect
  transform
  transformUV

Function Documentation

Set capacity of quad deck.


function reserve ( MOAIGfxQuadDeck2D self, number nQuads )
Parameters:
self ( MOAIGfxQuadDeck2D )
nQuads ( number )
Returns:
nil

Set model space quad given a valid deck index. Vertex order is clockwise from upper left (xMin, yMax)


function setQuad ( MOAIGfxQuadDeck2D self, number idx, number x0, number y0, number x1, number y1, number x2, number y2, number x3, number y3 )
Parameters:
self ( MOAIGfxQuadDeck2D )
idx ( number ) Index of the quad.
x0 ( number )
y0 ( number )
x1 ( number )
y1 ( number )
x2 ( number )
y2 ( number )
x3 ( number )
y3 ( number )
Returns:
nil

Set model space quad given a valid deck index and a rect.


function setRect ( MOAIGfxQuadDeck2D self, number idx, number xMin, number yMin, number xMax, number yMax )
Parameters:
self ( MOAIGfxQuadDeck2D )
idx ( number ) Index of the quad.
xMin ( number )
yMin ( number )
xMax ( number )
yMax ( number )
Returns:
nil

Set UV space quad given a valid deck index. Vertex order is clockwise from upper left (xMin, yMax)


function setUVQuad ( MOAIGfxQuadDeck2D self, number idx, number x0, number y0, number x1, number y1, number x2, number y2, number x3, number y3 )
Parameters:
self ( MOAIGfxQuadDeck2D )
idx ( number ) Index of the quad.
x0 ( number )
y0 ( number )
x1 ( number )
y1 ( number )
x2 ( number )
y2 ( number )
x3 ( number )
y3 ( number )
Returns:
nil

Set UV space quad given a valid deck index and a rect.


function setUVRect ( MOAIGfxQuadDeck2D self, number idx, number xMin, number yMin, number xMax, number yMax )
Parameters:
self ( MOAIGfxQuadDeck2D )
idx ( number ) Index of the quad.
xMin ( number )
yMin ( number )
xMax ( number )
yMax ( number )
Returns:
nil

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


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

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


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