Moai SDK  1.5 revision 1 (MoaiEdition)
MOAIDeck Class Reference
Inheritance diagram for MOAIDeck:
MOAIBoundsDeck MOAIGfxQuad2D MOAIGfxQuadDeck2D MOAIGfxQuadListDeck2D MOAIGridDeck2D MOAIMesh MOAIScriptDeck MOAIStretchPatch2D MOAISurfaceDeck2D MOAITileDeck2D

List of all members.

Function List

  setBoundsDeck
  setShader
  setTexture

Function Documentation

Set or clear the bounds override deck.


function setBoundsDeck ( MOAIDeck self [, MOAIBoundsDeck boundsDeck ] )
Parameters:
self ( MOAIDeck )
boundsDeck ( MOAIBoundsDeck ) Optional.
Returns:
nil

Set the shader to use if neither the deck item nor the prop specifies a shader.


function setShader ( MOAIDeck self, MOAIShader shader )
Parameters:
self ( MOAIDeck )
shader ( MOAIShader )
Returns:
nil

Set or load a texture for this deck.


function setTexture ( MOAIDeck self, variant texture [, number transform ] )
Parameters:
self ( MOAIDeck )
texture ( variant ) A MOAITexture, MOAIMultiTexture, MOAIDataBuffer or a path to a texture file
transform ( number ) Optional. Any bitwise combination of MOAITextureBase.QUANTIZE, MOAITextureBase.TRUECOLOR, MOAITextureBase.PREMULTIPLY_ALPHA
Returns:
texture ( MOAIGfxState )