Manages frame buffers and gives access to each frame buffer.
Constructor
Methods
copySpriteTo(name:String, sprite:FlxSprite, ?color:FlxColor):Void
Adds a copy of the sprite to the frame buffer.
Parameters:
name | the name of the frame buffer |
|---|---|
sprite | the sprite |
color | if this is not |
createFrameBuffer(name:String, bgColor:FlxColor):BitmapData
Creates a new frame buffer with a name.
Parameters:
name | the name |
|---|---|
bgColor | the background color |
Returns:
the bitmap data of the frame buffer. the bitmap data instance will not be changed through frame buffer updates.
getFrameBuffer(name:String):BitmapData
Returns the bitmap data of the frame buffer
Parameters:
name | the name of the frame buffer |
|---|
Returns:
the bitmap data
moveSpriteTo(name:String, sprite:FlxSprite):Void
Adds the sprite to the frame buffer. The sprite will only be seen from the frame buffer.
Parameters:
name | the name of the frame buffer |
|---|---|
sprite | the sprite |