Moai SDK  1.5 revision 1 (MoaiEdition)
MOAIFrameBuffer Class Reference
Inheritance diagram for MOAIFrameBuffer:
MOAIFrameBufferTexture

List of all members.

Function List

  grabNextFrame
  getPerformanceDrawCount
  getRenderTable
  setRenderTable

Function Documentation

Returns the number of draw calls last frame.


function getPerformanceDrawCount ( MOAIFrameBuffer self )
Parameters:
self ( MOAIFrameBuffer )
Returns:
count ( number )

Returns the table currently being used for rendering.


function getRenderTable ( MOAIFrameBuffer self )
Parameters:
self ( MOAIFrameBuffer )
Returns:
renderTable ( table )

Save the next frame rendered to.


function grabNextFrame ( MOAIFrameBuffer self, MOAIImage image, function callback )
Parameters:
self ( MOAIFrameBuffer )
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:
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 ( MOAIFrameBuffer self, table renderTable )
Parameters:
self ( MOAIFrameBuffer )
renderTable ( table )
Returns:
nil