Moai SDK
2.0
|
Function List | |
getSize | |
release | |
setDebugName | |
setFilter | |
setWrap | |
Additional Inherited Members | |
Function List inherited from MOAIGfxResource | |
getAge | |
purge | |
setReloader | |
Function List inherited from MOAIInstanceEventSource | |
getListener | |
setListener | |
|
|
Returns the width and height of the texture's source image. Avoid using the texture width and height to compute UV coordinates from pixels, as this will prevent texture resolution swapping.
function getSize ( MOAITextureBase self )
MOAITextureBase | self |
|
Releases any memory associated with the texture.
function release ( MOAITextureBase self )
MOAITextureBase | self |
|
Set a name for the texture to use during memory logging.
function setDebugName ( MOAITextureBase self, string debugName )
MOAITextureBase | self |
string | debugName |
|
Set default filtering mode for texture.
function setFilter ( MOAITextureBase self, number min [, number mag ] )
MOAITextureBase | self |
number | min One of MOAITextureBase.GL_LINEAR, MOAITextureBase.GL_LINEAR_MIPMAP_LINEAR, MOAITextureBase.GL_LINEAR_MIPMAP_NEAREST, MOAITextureBase.GL_NEAREST, MOAITextureBase.GL_NEAREST_MIPMAP_LINEAR, MOAITextureBase.GL_NEAREST_MIPMAP_NEAREST |
number | mag Optional. Defaults to value passed to 'min'. |
|
Set wrapping mode for texture.
function setWrap ( MOAITextureBase self, boolean wrap )
MOAITextureBase | self |
boolean | wrap Texture will wrap if true, clamp if not. |