| Package | away3d.core.render |
| Class | public class AbstractRenderSession |
| Subclasses | BitmapRenderSession, SpriteRenderSession |
SpriteRenderSession or BitmapRenderSession.
| Property | Defined by | ||
|---|---|---|---|
| children : Dictionary
Dictionary of child displayobjects.
| AbstractRenderSession | ||
| graphics : Graphics
Reference to the current graphics object being used for drawing.
| AbstractRenderSession | ||
| lightarray : LightArray
Defines the light provider object for the render sesion.
| AbstractRenderSession | ||
| newLayer : Sprite
Holds the last added layer sprite.
| AbstractRenderSession | ||
| sessions : Dictionary
Dictionary of child sessions.
| AbstractRenderSession | ||
| spriteLayers : Array
Dictionary of sprite layers for rendering composite materials.
| AbstractRenderSession | ||
| view : View3D
Defines the view object used for the render session.
| AbstractRenderSession | ||
| Method | Defined by | ||
|---|---|---|---|
|
addDisplayObject(child:DisplayObject):void
Adds a display object to the render session display list.
| AbstractRenderSession | ||
|
addLayerObject(child:Sprite):void
Adds a layer sprite to the render session display list.
| AbstractRenderSession | ||
|
clear():void
Clears the render session.
| AbstractRenderSession | ||
|
Duplicates the render session's properties to another render session.
| AbstractRenderSession | ||
|
flush():void
Flushes any cached drawing operations to screen.
| AbstractRenderSession | ||
|
Returns a display object representing the container for the specified view.
| AbstractRenderSession | ||
|
Adds a session as a child of the session object.
| AbstractRenderSession | ||
|
Draws a non-scaled bitmap into the graphics object.
| AbstractRenderSession | ||
|
renderFogColor(color:int, alpha:Number):void
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):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.
| AbstractRenderSession | ||
| children | property |
public var children:Dictionary
Dictionary of child displayobjects.
| doActive | property |
arcane var doActive:Array
Array for storing added displayobjects to the canvas
| doStore | property |
arcane var doStore:Array
Array for storing old displayobjects to the canvas
| graphics | property |
public var graphics:Graphics
Reference to the current graphics object being used for drawing.
| lightarray | property |
lightarray:LightArray [read-write]Defines the light provider object for the render sesion.
Implementation public function get lightarray():LightArray
public function set lightarray(value:LightArray):void
| newLayer | property |
public var newLayer:Sprite
Holds the last added layer sprite.
| sessions | property |
public var sessions:Dictionary
Dictionary of child sessions.
| spriteLayers | property |
public var spriteLayers:Array
Dictionary of sprite layers for rendering composite materials.
See also
| view | property |
view:View3D [read-write]Defines the view object used for the render session.
Implementation public function get view():View3D
public function set view(value:View3D):void
| addDisplayObject | () | method |
public 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 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 |
public function clear():void
Clears the render session.
| clone | () | method |
public 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 function createLayer():void
Creates a new render layer for rendering composite materials.
See also
| flush | () | method |
public function flush():void
Flushes any cached drawing operations to screen.
| getContainer | () | method |
public 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.
|
| registerChildSession | () | method |
public function registerChildSession(session:AbstractRenderSession):void
Adds a session as a child of the session object.
Parameterssession:AbstractRenderSession — The session object to be added as a child.
|
| renderBitmap | () | method |
public function renderBitmap(bitmap:BitmapData, v0:ScreenVertex, smooth:Boolean = false):void
Draws a non-scaled bitmap into the graphics object.
Parametersbitmap:BitmapData |
|
v0:ScreenVertex |
|
smooth:Boolean (default = false) |
| renderFogColor | () | method |
public function renderFogColor(color:int, alpha:Number):void
Draws a fog element into the graphics object.
Parameterscolor:int |
|
alpha:Number |
| renderLine | () | method |
public function renderLine(v0:ScreenVertex, v1:ScreenVertex, width:Number, color:uint, alpha:Number):void
Draws a segment element into the graphics object.
Parametersv0:ScreenVertex |
|
v1:ScreenVertex |
|
width:Number |
|
color:uint |
|
alpha:Number |
| renderScaledBitmap | () | method |
public function renderScaledBitmap(primitive:DrawScaledBitmap, bitmap:BitmapData, mapping:Matrix, smooth:Boolean = false):void
Draws a bitmap with a precalculated matrix into the graphics object.
Parametersprimitive:DrawScaledBitmap |
|
bitmap:BitmapData |
|
mapping:Matrix |
|
smooth:Boolean (default = false) |
| renderTriangleBitmap | () | method |
public function 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.
Parametersbitmap:BitmapData |
|
map:Matrix |
|
v0:ScreenVertex |
|
v1:ScreenVertex |
|
v2:ScreenVertex |
|
smooth:Boolean |
|
repeat:Boolean |
|
layerGraphics:Graphics (default = null) |
| renderTriangleColor | () | method |
public function renderTriangleColor(color:int, alpha:Number, v0:ScreenVertex, v1:ScreenVertex, v2:ScreenVertex):void
Draws a triangle element with a fill color into the graphics object.
Parameterscolor:int |
|
alpha:Number |
|
v0:ScreenVertex |
|
v1:ScreenVertex |
|
v2:ScreenVertex |
| renderTriangleLine | () | method |
public function renderTriangleLine(width:Number, color:int, alpha:Number, v0:ScreenVertex, v1:ScreenVertex, v2:ScreenVertex):void
Draws a wire triangle element into the graphics object.
Parameterswidth:Number |
|
color:int |
|
alpha:Number |
|
v0:ScreenVertex |
|
v1:ScreenVertex |
|
v2:ScreenVertex |
| renderTriangleLineFill | () | method |
public function 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.
Parameterswidth:Number |
|
color:int |
|
alpha:Number |
|
wirecolor:int |
|
wirealpha:Number |
|
v0:ScreenVertex |
|
v1:ScreenVertex |
|
v2:ScreenVertex |