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