Moai SDK
1.5 revision 1 (MoaiEdition)
|
Function List | |
load |
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 ] )
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 |
function load ( MOAITexture self, MOAIImage image [, string debugname ] )
self | ( MOAITexture ) |
image | ( MOAIImage ) |
debugname | ( string ) Optional. Name used when reporting texture debug information |
function load ( MOAITexture self, MOAIDataBuffer buffer [, number transform, string debugname ] )
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 |
function load ( MOAITexture self, MOAIStream buffer [, number transform, string debugname ] )
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 |