Abstract Drawing session object containing the method used for drawing the view to screen.
Not intended for direct use - use
SpriteRenderSession
or
BitmapRenderSession
.
public var alpha:Number = 1
Placeholder for alpha property of containers
public var blendMode:String
Placeholder for blendMode property of containers
public var consumer:IPrimitiveConsumer
public var filters:Array
Placeholder for filters property of containers
public var graphics:Graphics
Reference to the current graphics object being used for drawing.
public var layer:DisplayObject
public var priconsumers:Dictionary
public var primitives:Array
renderer:IPrimitiveConsumer
[read-write]
Implementation
public function get renderer():IPrimitiveConsumer
public function set renderer(value:IPrimitiveConsumer):void
public var screenZ:Number
public var sessions:Array
Array of child sessions.
arcane var _shapeActive:Array
Array for storing added displayobjects to the canvas
arcane var _shapeStore:Array
Array for storing old displayobjects to the canvas
arcane var _spriteActive:Array
Array for storing added displayobjects to the canvas
arcane var _spriteStore:Array
Array for storing old displayobjects to the canvas
public var updated:Boolean
public function addChildSession(session:AbstractRenderSession):void
Adds a session as a child of the session object.
Parameters
public function addDisplayObject(child:DisplayObject):void
Adds a display object to the render session display list.
Parameters
| child:DisplayObject — The display object to add.
|
public function addOnSessionUpdate(listener:Function):void
Default method for adding a sessionUpdated event listener
Parameters
| listener:Function — The listener function
|
public function clear(view:View3D):void
Clears the render session.
Parameters
public function clearChildSessions():void
public function clearRenderers():void
public function clone():AbstractRenderSession
Duplicates the render session's properties to another render session.
Returns
protected function createLayer():void
Creates a new render layer for rendering composite materials.
See also
protected function createShape(parent:Sprite):Shape
Parameters
Returns
protected function createSprite(parent:Sprite = null):Sprite
Parameters
| parent:Sprite (default = null )
|
Returns
public function getConsumer(view:View3D):IPrimitiveConsumer
Parameters
Returns
public function getContainer(view:View3D):DisplayObject
Returns a display object representing the container for the specified view.
Parameters
| view:View3D — The view object being rendered.
|
Returns
| DisplayObject — The display object container.
|
public function getLightShape(material:LayerMaterial, level:int, parent:Sprite, light:LightPrimitive):Shape
Parameters
Returns
public function getLightShapeLayer(view:View3D):Dictionary
Parameters
Returns
public function getShape(material:LayerMaterial, level:int, parent:Sprite):Shape
Parameters
Returns
public function getShapeLayer(view:View3D):Dictionary
Parameters
Returns
public function getSprite(material:LayerMaterial, level:int, parent:Sprite = null):Sprite
Parameters
Returns
public function getSpriteLayer(view:View3D):Dictionary
Parameters
Returns
public function getTotalFaces(view:View3D):int
Parameters
Returns
protected function onSessionUpdate(event:SessionEvent):void
Parameters
public function removeChildSession(session:AbstractRenderSession):void
Removes a child session of the session object.
Parameters
public function removeOnSessionUpdate(listener:Function):void
Default method for removing a sessionUpdated event listener
Parameters
| listener:Function — The listener function
|
public function render(view:View3D):void
Parameters
public function renderBitmap(bitmap:BitmapData, v0:ScreenVertex, smooth:Boolean = false):void
Draws a non-scaled bitmap into the graphics object.
Parameters
| bitmap:BitmapData |
|
| v0:ScreenVertex |
|
| smooth:Boolean (default = false )
|
public function renderDot(color:int, alpha:Number, x:Number, y:Number, layerGraphics:Graphics = null, w:int = 1):void
Draws a rect dot at given coordinates
Parameters
| color:int |
|
| alpha:Number |
|
| x:Number |
|
| y:Number |
|
| layerGraphics:Graphics (default = null )
|
|
| w:int (default = 1 )
|
public function renderFogColor(clip:Clipping, color:int, alpha:Number):void
Draws a fog element into the graphics object.
Parameters
public function renderLine(v0x:Number, v0y:Number, v1x:Number, v1y:Number, width:Number, color:uint, alpha:Number):void
Draws a segment element into the graphics object.
Parameters
| v0x:Number |
|
| v0y:Number |
|
| v1x:Number |
|
| v1y:Number |
|
| width:Number |
|
| color:uint |
|
| alpha:Number |
public function renderScaledBitmap(primitive:DrawScaledBitmap, bitmap:BitmapData, mapping:Matrix, smooth:Boolean = false):void
Draws a bitmap with a precalculated matrix into the graphics object.
Parameters
| primitive:DrawScaledBitmap |
|
| bitmap:BitmapData |
|
| mapping:Matrix |
|
| smooth:Boolean (default = false )
|
public function renderSpriteBitmap(bitmap:BitmapData, primitive:DrawSprite, smooth:Boolean):void
Draws a billboard element with a fill bitmap into the graphics object.
Parameters
| bitmap:BitmapData |
|
| primitive:DrawSprite |
|
| smooth:Boolean |
public function renderSpriteColor(color:int, alpha:Number, primitive:DrawSprite):void
Draws a billboard element with a fill color into the graphics object.
Parameters
public function renderTriangleBitmap(bitmap:BitmapData, uvtData:Vector, screenVertices:Array, screenIndices:Array, startIndex:Number, endIndex:Number, smooth:Boolean, repeat:Boolean, layerGraphics:Graphics = null):void
Draws a triangle element with a bitmap texture into the graphics object (Flash 10)
Parameters
| bitmap:BitmapData |
|
| uvtData:Vector |
|
| screenVertices:Array |
|
| screenIndices:Array |
|
| startIndex:Number |
|
| endIndex:Number |
|
| smooth:Boolean |
|
| repeat:Boolean |
|
| layerGraphics:Graphics (default = null )
|
public function renderTriangleBitmapMask(bitmap:BitmapData, offX:Number, offY:Number, sc:Number, screenVertices:Array, screenIndices:Array, startIndex:Number, endIndex:Number, smooth:Boolean, repeat:Boolean, layerGraphics:Graphics = null):void
Draws a triangle element with a bitmap texture into the graphics object, with no uv transforms.
Parameters
| bitmap:BitmapData |
|
| offX:Number |
|
| offY:Number |
|
| sc:Number |
|
| screenVertices:Array |
|
| screenIndices:Array |
|
| startIndex:Number |
|
| endIndex:Number |
|
| smooth:Boolean |
|
| repeat:Boolean |
|
| layerGraphics:Graphics (default = null )
|
public function renderTriangleColor(color:int, alpha:Number, screenVertices:Array, commands:Array, screenIndices:Array, startIndex:Number, endIndex:Number, layerGraphics:Graphics = null):void
Draws a triangle element with a fill color into the graphics object.
Parameters
| color:int |
|
| alpha:Number |
|
| screenVertices:Array |
|
| commands:Array |
|
| screenIndices:Array |
|
| startIndex:Number |
|
| endIndex:Number |
|
| layerGraphics:Graphics (default = null )
|
public function renderTriangleLine(thickness:Number, wireColor:int, wireAlpha:Number, screenVertices:Array, commands:Array, screenIndices:Array, startIndex:Number, endIndex:Number):void
Draws a wire triangle element into the graphics object.
Parameters
| thickness:Number |
|
| wireColor:int |
|
| wireAlpha:Number |
|
| screenVertices:Array |
|
| commands:Array |
|
| screenIndices:Array |
|
| startIndex:Number |
|
| endIndex:Number |
public function renderTriangleLineFill(thickness:Number, color:int, alpha:Number, wireColor:int, wireAlpha:Number, screenVertices:Array, commands:Array, screenIndices:Array, startIndex:int, endIndex:int):void
Draws a wire triangle element with a fill color into the graphics object.
Parameters
| thickness:Number |
|
| color:int |
|
| alpha:Number |
|
| wireColor:int |
|
| wireAlpha:Number |
|
| screenVertices:Array |
|
| commands:Array |
|
| screenIndices:Array |
|
| startIndex:int |
|
| endIndex:int |
Event object type: away3d.events.SessionEvent
Dispatched when the render contents of the session require updating.