A single frame buffer. Used by FrameBufferManager.

Constructor

new()

Variables

@:value(null)read onlybitmap:BitmapData = null

The bitmap data of the frame buffer.

Methods

addSpriteCopy(spriteCopy:SpriteCopy):Void

Adds a sprite copy to the frame buffer.

Parameters:

spriteCopy

the sprite copy

create(width:Int, height:Int, bgColor:FlxColor):Void

Creates a frame buffer with the given size.

Parameters:

width

the width

height

the height

bgColor

the background color

dispose():Void

Diposes stuff. Call create again if you want to reuse the instance.

follow(target:FlxCamera):Void

Makes the internal camera follows the target camera.

Parameters:

target

the target camera

@:access(flixel.FlxCamera)lock():Void

Locks the frame buffer and clears the buffer.

moveSprite(sprite:FlxSprite):Void

Adds the sprite to the frame buffer. The sprite will only be seen from the frame buffer.

Parameters:

sprite

the sprite

@:access(flixel.FlxCamera)render():Void

Renders all sprite copies.

unlock():Void

Unlocks the frame buffer and makes the bitmap ready to use.