Moai SDK
1.5 revision 1 (MoaiEdition)
|
Function List | |
reserveColumns | |
reserveRows | |
reserveUVRects | |
setColumn | |
setRect | |
setRow | |
setUVRect |
Reserve total columns in patch.
function reserveColumns ( MOAIStretchPatch2D self, number nColumns )
self | ( MOAIStretchPatch2D ) |
nColumns | ( number ) |
Reserve total rows in patch.
function reserveRows ( MOAIStretchPatch2D self, number nRows )
self | ( MOAIStretchPatch2D ) |
nRows | ( number ) |
Reserve total UV rects in patch. When a patch is indexed it will change its UV rects.
function reserveUVRects ( MOAIStretchPatch2D self, number nUVRects )
self | ( MOAIStretchPatch2D ) |
nUVRects | ( number ) |
Set the stretch properties of a patch column.
function setColumn ( MOAIStretchPatch2D self, number idx, number weight, boolean conStretch )
self | ( MOAIStretchPatch2D ) |
idx | ( number ) |
weight | ( number ) |
conStretch | ( boolean ) |
Set the model space dimensions of the patch.
function setRect ( MOAIStretchPatch2D self, number xMin, number yMin, number xMax, number yMax )
self | ( MOAIStretchPatch2D ) |
xMin | ( number ) |
yMin | ( number ) |
xMax | ( number ) |
yMax | ( number ) |
Set the stretch properties of a patch row.
function setRow ( MOAIStretchPatch2D self, number idx, number weight, boolean conStretch )
self | ( MOAIStretchPatch2D ) |
idx | ( number ) |
weight | ( number ) |
conStretch | ( boolean ) |
Set the UV space dimensions of the patch.
function setUVRect ( MOAIStretchPatch2D self, number idx, number xMin, number yMin, number xMax, number yMax )
self | ( MOAIStretchPatch2D ) |
idx | ( number ) |
xMin | ( number ) |
yMin | ( number ) |
xMax | ( number ) |
yMax | ( number ) |