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

Function List

getGrabbedImage
 
grabNextFrame
 
isPendingGrab
 

Function Documentation

getGrabbedImage

Returns the image into which frame(s) will be (or were) grabbed (if any).


function getGrabbedImage ( MOAIFrameBuffer self [, boolean discard ] )

Parameters
MOAIFrameBufferself
booleandiscard Optional. If true, image will be discarded from the frame buffer.
Returns
MOAIImage image
grabNextFrame

Save the next frame rendered to an image. If no image is provided, one will be created tp match the size of the frame buffer.


function grabNextFrame ( MOAIFrameBuffer self [, MOAIImage image, function callback ] )

Parameters
MOAIFrameBufferself
MOAIImageimage Optional. Image to save the backbuffer to
functioncallback Optional. The function to execute when the frame has been saved into the image specified
Returns
nil
isPendingGrab

True if a frame grab has been requested but not yet grabbed.


function isPendingGrab ( MOAIFrameBuffer self )

Parameters
MOAIFrameBufferself
Returns
table renderTable