Package | away3d.core.render |
Class | public class BitmapRenderSession |
Inheritance | BitmapRenderSession ![]() ![]() |
Bitmap
container.
Method | Defined by | ||
---|---|---|---|
BitmapRenderSession
(scale:Number = 2)
Creates a new
BitmapRenderSession object. | BitmapRenderSession | ||
![]() |
Adds a session as a child of the session object.
| AbstractRenderSession | |
addDisplayObject(child:DisplayObject):void
Adds a display object to the render session display list.
| BitmapRenderSession | ||
addLayerObject(child:Sprite):void
Adds a layer sprite to the render session display list.
| BitmapRenderSession | ||
![]() |
addOnSessionUpdate(listener:Function):void
Default method for adding a sessionUpdated event listener
| AbstractRenderSession | |
Clears the render session.
| BitmapRenderSession | ||
![]() |
clearChildSessions():void
| AbstractRenderSession | |
![]() |
clearRenderers():void
| AbstractRenderSession | |
Duplicates the render session's properties to another render session.
| BitmapRenderSession | ||
BitmapRenderSession | |||
Returns a bitmapData object containing the rendered view.
| BitmapRenderSession | ||
![]() | AbstractRenderSession | ||
Returns a display object representing the container for the specified view.
| BitmapRenderSession | ||
![]() | AbstractRenderSession | ||
![]() |
Removes a child session of the session object.
| AbstractRenderSession | |
![]() |
removeOnSessionUpdate(listener:Function):void
Default method for removing a sessionUpdated event listener
| AbstractRenderSession | |
| BitmapRenderSession | ||
![]() |
Draws a billboard element with a fill bitmap into the graphics object.
| AbstractRenderSession | |
![]() |
Draws a billboard element with a fill color into the graphics object.
| AbstractRenderSession | |
![]() |
Draws a non-scaled bitmap into the graphics object.
| AbstractRenderSession | |
![]() |
Draws a fog element into the graphics object.
| AbstractRenderSession | |
![]() |
Draws a segment element into the graphics object.
| AbstractRenderSession | |
![]() |
renderScaledBitmap(primitive:DrawScaledBitmap, bitmap:BitmapData, mapping:Matrix, smooth:Boolean = false):void
Draws a bitmap with a precalculated matrix into the graphics object.
| AbstractRenderSession | |
![]() |
renderTriangleBitmap(bitmap:BitmapData, map:Matrix, v0:ScreenVertex, v1:ScreenVertex, v2:ScreenVertex, smooth:Boolean, repeat:Boolean, layerGraphics:Graphics = null):void
Draws a triangle element with a bitmap texture into the graphics object.
| AbstractRenderSession | |
![]() |
renderTriangleColor(color:int, alpha:Number, v0:ScreenVertex, v1:ScreenVertex, v2:ScreenVertex, layerGraphics:Graphics = null):void
Draws a triangle element with a fill color into the graphics object.
| AbstractRenderSession | |
![]() |
renderTriangleLine(width:Number, color:int, alpha:Number, v0:ScreenVertex, v1:ScreenVertex, v2:ScreenVertex):void
Draws a wire triangle element into the graphics object.
| AbstractRenderSession | |
![]() |
renderTriangleLineFill(width:Number, color:int, alpha:Number, wirecolor:int, wirealpha:Number, v0:ScreenVertex, v1:ScreenVertex, v2:ScreenVertex):void
Draws a wire triangle element with a fill color into the graphics object.
| AbstractRenderSession |
Method | Defined by | ||
---|---|---|---|
createLayer():void
Creates a new render layer for rendering composite materials.
| BitmapRenderSession | ||
![]() | AbstractRenderSession |
BitmapRenderSession | () | constructor |
public function BitmapRenderSession(scale:Number = 2)
Parameters
scale:Number (default = 2 ) — [optional] Defines the scale of the pixel resolution in base pixels. Default value is 2.
|
addDisplayObject | () | method |
public override function addDisplayObject(child:DisplayObject):void
Adds a display object to the render session display list.
Parameterschild:DisplayObject — The display object to add.
|
addLayerObject | () | method |
public override function addLayerObject(child:Sprite):void
Adds a layer sprite to the render session display list. Doesn't update graphics so that elements in comosite materials can render in separate layers.
Parameterschild:Sprite — The display object to add.
|
clear | () | method |
clone | () | method |
public override function clone():AbstractRenderSession
Duplicates the render session's properties to another render session.
ReturnsAbstractRenderSession —
The new render session instance with duplicated properties applied
|
createLayer | () | method |
protected override function createLayer():void
Creates a new render layer for rendering composite materials.
getBitmapContainer | () | method |
getBitmapData | () | method |
public function getBitmapData(view:View3D):BitmapData
Returns a bitmapData object containing the rendered view.
Parametersview:View3D — The view object being rendered.
|
BitmapData — The bitmapData object.
|
getContainer | () | method |
public override function getContainer(view:View3D):DisplayObject
Returns a display object representing the container for the specified view.
Parametersview:View3D — The view object being rendered.
|
DisplayObject — The display object container.
|
render | () | method |