Moai SDK
1.5 revision 1 (MoaiEdition)
|
Function List | |
reserve | |
setQuad | |
setRect | |
setUVQuad | |
setUVRect | |
transform | |
transformUV |
Set capacity of quad deck.
function reserve ( MOAIGfxQuadDeck2D self, number nQuads )
self | ( MOAIGfxQuadDeck2D ) |
nQuads | ( number ) |
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 )
self | ( MOAIGfxQuadDeck2D ) |
idx | ( number ) Index of the quad. |
x0 | ( number ) |
y0 | ( number ) |
x1 | ( number ) |
y1 | ( number ) |
x2 | ( number ) |
y2 | ( number ) |
x3 | ( number ) |
y3 | ( number ) |
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 )
self | ( MOAIGfxQuadDeck2D ) |
idx | ( number ) Index of the quad. |
xMin | ( number ) |
yMin | ( number ) |
xMax | ( number ) |
yMax | ( number ) |
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 )
self | ( MOAIGfxQuadDeck2D ) |
idx | ( number ) Index of the quad. |
x0 | ( number ) |
y0 | ( number ) |
x1 | ( number ) |
y1 | ( number ) |
x2 | ( number ) |
y2 | ( number ) |
x3 | ( number ) |
y3 | ( number ) |
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 )
self | ( MOAIGfxQuadDeck2D ) |
idx | ( number ) Index of the quad. |
xMin | ( number ) |
yMin | ( number ) |
xMax | ( number ) |
yMax | ( number ) |
Apply the given MOAITransform to all the vertices in the deck.
function transform ( MOAIGfxQuadDeck2D self, MOAITransform transform )
self | ( MOAIGfxQuadDeck2D ) |
transform | ( MOAITransform ) |
Apply the given MOAITransform to all the uv coordinates in the deck.
function transformUV ( MOAIGfxQuadDeck2D self, MOAITransform transform )
self | ( MOAIGfxQuadDeck2D ) |
transform | ( MOAITransform ) |