Moai SDK
1.5 revision 1 (MoaiEdition)
|
Function List | |
reserveBrushes | |
setBrush | |
setDeck | |
setGrid | |
setRemapper |
Set capacity of grid deck.
function reserveBrushes ( MOAIGridDeck2D self, number nBrushes )
self | ( MOAIGridDeck2D ) |
nBrushes | ( number ) |
Initializes a brush.
function setBrush ( MOAIGridDeck2D self, number idx, number xTile, number yTile, number width, number height [, number xOff, number yOff ] )
self | ( MOAIGridDeck2D ) |
idx | ( number ) Index of the brush. |
xTile | ( number ) |
yTile | ( number ) |
width | ( number ) |
height | ( number ) |
xOff | ( number ) Optional. Default value is 0. |
yOff | ( number ) Optional. Default value is 0. |
Sets or clears the deck to be indexed by the grid.
function setDeck ( MOAIGridDeck2D self [, MOAIDeck deck ] )
self | ( MOAIGridDeck2D ) |
deck | ( MOAIDeck ) Optional. Default value is nil. |
Sets or clears the grid to be sampled by the brushes.
function setGrid ( MOAIGridDeck2D self [, MOAIGrid grid ] )
self | ( MOAIGridDeck2D ) |
grid | ( MOAIGrid ) Optional. Default value is nil. |
Sets or clears the remapper (for remapping index values held in the grid).
function setRemapper ( MOAIGridDeck2D self [, MOAIDeckRemapper remapper ] )
self | ( MOAIGridDeck2D ) |
remapper | ( MOAIDeckRemapper ) Optional. Default value is nil. |