Moai SDK  2.0
MOAIGfxMgr Class Reference
+ Inheritance diagram for MOAIGfxMgr:

Function List

getFrameBuffer
 
getMaxTextureSize
 
getMaxTextureUnits
 
getViewSize
 
purgeResources
 
renewResources
 

Additional Inherited Members

- Function List inherited from MOAIGlobalEventSource
template<typename TYPE >
getListener
 
template<typename TYPE >
setListener
 

Detailed Description

Constants
MOAIGfxMgr.EVENT_RESIZE

Function Documentation

getFrameBuffer

Returns the frame buffer associated with the device.


function getFrameBuffer ()

Returns
MOAIFrameBuffer frameBuffer
getMaxTextureSize

Returns the maximum texture size supported by device.


function getMaxTextureSize ()

Returns
number maxTextureSize
getMaxTextureUnits

Returns the total number of texture units available on the device.


function getMaxTextureUnits ()

Returns
number maxTextureUnits
getViewSize

Returns the width and height of the view.


function getViewSize ()

Returns
number width, number height
purgeResources

Purges all resources older that a given age (in render cycles). If age is 0 then all resources are purged.


function purgeResources ( [ number age ] )

Parameters
numberage Optional. Default value is 0.
Returns
nil
renewResources

Renews all resources.


function renewResources ()

Returns
nil