| Package | org.flintparticles.renderers |
| Class | public class FullStageBitmapRenderer |
| Inheritance | FullStageBitmapRenderer BitmapRenderer flash.display.Sprite |
| Subclasses | FullStagePixelRenderer |
It is more efficient to use a BitmapRenderer with an appropriately defined canvas. This class exists to allow the continued use of functionality that existed in the BitmapRenderer in early versions of Flint.
This renderer uses properties of the stage object. It throws an exception if it is not in the same security sandbox as the Stage owner (the main SWF file). To avoid this, the Stage owner can grant permission to the domain containing this renderer by calling the Security.allowDomain() method or the Security.allowInsecureDomain() method.
| Property | Defined by | ||
|---|---|---|---|
| canvas : Rectangle [write-only]
Throws an error.
| FullStageBitmapRenderer | ||
| x : Number [write-only]
Override's the default x property of the display object to add additional functionality
for managing the bitmap display.
| FullStageBitmapRenderer | ||
| y : Number [write-only]
Override's the default y property of the display object to add additional functionality
for managing the bitmap display.
| FullStageBitmapRenderer | ||
| Method | Defined by | ||
|---|---|---|---|
|
FullStageBitmapRenderer(smoothing:Boolean = false)
The constructor creates a FullStageBitmapRenderer.
| FullStageBitmapRenderer | ||
![]() |
addFilter(filter:BitmapFilter, postRender:Boolean = false):void
The addFilter method adds a BitmapFilter to the renderer.
| BitmapRenderer | |
![]() |
addParticle(particle:Particle):void
The addParticle method is called when a particle is added to the emitter that
this renderer is assigned to.
| BitmapRenderer | |
![]() |
clearPaletteMap():void
Clears any palette map that has been set for the renderer.
| BitmapRenderer | |
![]() |
dispose():void
When the renderer is no longer required, this method must be called by the
user to free up memory used by the renderer.
| BitmapRenderer | |
![]() |
removeFilter(filter:BitmapFilter):void
Removes a BitmapFilter object from the Renderer.
| BitmapRenderer | |
![]() |
removeParticle(particle:Particle):void
The removeParticle method is called when a particle is removed from the
emitter that this renderer is assigned to.
| BitmapRenderer | |
|
renderParticles(particles:Array):void
The renderParticles method is called every frame so the renderer can
draw the particles that are in the emitter that this renderer is
assigned to.
| FullStageBitmapRenderer | ||
![]() |
setPaletteMap(red:Array = null, green:Array = null, blue:Array = null, alpha:Array = null):void
Sets a palette map for the renderer.
| BitmapRenderer | |
| canvas | property |
canvas:Rectangle [write-only]Throws an error. You cannot set the canvas of a FullStageBitmapRenderer.
Implementation public function set canvas(value:Rectangle):void
| x | property |
x:Number [write-only]Override's the default x property of the display object to add additional functionality for managing the bitmap display.
Implementation public function set x(value:Number):void
| y | property |
y:Number [write-only]Override's the default y property of the display object to add additional functionality for managing the bitmap display.
Implementation public function set y(value:Number):void
| FullStageBitmapRenderer | () | constructor |
public function FullStageBitmapRenderer(smoothing:Boolean = false)The constructor creates a FullStageBitmapRenderer. After creation it should be added to the display list of a DisplayObjectContainer to place it on the stage and should be applied to an Emitter using the Emitter's renderer property.
Parameterssmoothing:Boolean (default = false) |
| renderParticles | () | method |
public override function renderParticles(particles:Array):voidThe renderParticles method is called every frame so the renderer can draw the particles that are in the emitter that this renderer is assigned to.
Parametersparticles:Array — The particles to draw.
|