Moai SDK  1.5 revision 1 (MoaiEdition)
MOAITexture Class Reference
Inheritance diagram for MOAITexture:
MOAITextureBase MOAIGfxResource MOAIGfxState

List of all members.

Function List

  load

Function Documentation

Loads a texture from a data buffer or a file. Optionally pass in an image transform (not applicable to PVR textures).


function load ( MOAITexture self, string filename [, number transform, string debugname ] )
Parameters:
self ( MOAITexture )
filename ( string )
transform ( number ) Optional. Any bitwise combination of MOAIImage.QUANTIZE, MOAIImage.TRUECOLOR, MOAIImage.PREMULTIPLY_ALPHA
debugname ( string ) Optional. Name used when reporting texture debug information
Returns:
nil
Note:

function load ( MOAITexture self, MOAIImage image [, string debugname ] )
Parameters:
self ( MOAITexture )
image ( MOAIImage )
debugname ( string ) Optional. Name used when reporting texture debug information
Returns:
nil
Note:

function load ( MOAITexture self, MOAIDataBuffer buffer [, number transform, string debugname ] )
Parameters:
self ( MOAITexture )
buffer ( MOAIDataBuffer )
transform ( number ) Optional. Any bitwise combination of MOAIImage.QUANTIZE, MOAIImage.TRUECOLOR, MOAIImage.PREMULTIPLY_ALPHA
debugname ( string ) Optional. Name used when reporting texture debug information
Returns:
nil
Note:

function load ( MOAITexture self, MOAIStream buffer [, number transform, string debugname ] )
Parameters:
self ( MOAITexture )
buffer ( MOAIStream )
transform ( number ) Optional. Any bitwise combination of MOAIImage.QUANTIZE, MOAIImage.TRUECOLOR, MOAIImage.PREMULTIPLY_ALPHA
debugname ( string ) Optional. Name used when reporting texture debug information
Returns:
nil
Note: