Moai SDK  1.5 revision 1 (MoaiEdition)
MOAIRenderMgr Class Reference

Inherits MOAIGlobalClass< TYPE, SUPER >.

List of all members.

Function List

  getPerformanceDrawCount
  clearRenderStack
  grabNextFrame
  getRenderTable
  popRenderPass
  pushRenderPass
  removeRenderPass
  setRenderTable

Function Documentation

Sets the render stack to nil. THIS METHOD IS DEPRECATED AND WILL BE REMOVED IN A FUTURE RELEASE.


function clearRenderStack ()
Returns:
nil

Returns the number of draw calls last frame.


function getPerformanceDrawCount ()
Returns:
count ( number )

Returns the table currently being used for rendering.


function getRenderTable ()
Returns:
renderTable ( table )

Save the next frame rendered to.


function grabNextFrame ( MOAIImage image, function callback )
Parameters:
image ( MOAIImage ) Image to save the backbuffer to
callback ( function ) The function to execute when the frame has been saved into the image specified
Returns:
renderTable ( table )

Pops the top renderable from the render stack. THIS METHOD IS DEPRECATED AND WILL BE REMOVED IN A FUTURE RELEASE.


function popRenderPass ()
Returns:
nil

Pushes a renderable onto the render stack. THIS METHOD IS DEPRECATED AND WILL BE REMOVED IN A FUTURE RELEASE.


function pushRenderPass ( MOAIRenderable renderable )
Parameters:
renderable ( MOAIRenderable )
Returns:
nil

Removes a renderable from the render stack. THIS METHOD IS DEPRECATED AND WILL BE REMOVED IN A FUTURE RELEASE. Superseded by setRenderTable.


function removeRenderPass ( MOAIRenderable renderable )
Parameters:
renderable ( MOAIRenderable )
Returns:
nil

Sets the table to be used for rendering. This should be an array indexed from 1 consisting of MOAIRenderable objects and sub-tables. Objects will be rendered in order starting from index 1 and continuing until 'nil' is encountered.


function setRenderTable ( table renderTable )
Parameters:
renderTable ( table )
Returns:
nil