Packageaway3d.core.render
Classpublic class SpriteRenderSession
InheritanceSpriteRenderSession Inheritance AbstractRenderSession

Drawing session object that renders all drawing primitives into a Sprite container.

Public Properties
 PropertyDefined by
 Inheritedchildren : Dictionary
Dictionary of child displayobjects.
AbstractRenderSession
 Inheritedgraphics : Graphics
Reference to the current graphics object being used for drawing.
AbstractRenderSession
 Inheritedlightarray : LightArray
Defines the light provider object for the render sesion.
AbstractRenderSession
 InheritednewLayer : Sprite
Holds the last added layer sprite.
AbstractRenderSession
 Inheritedsessions : Dictionary
Dictionary of child sessions.
AbstractRenderSession
 InheritedspriteLayers : Array
Dictionary of sprite layers for rendering composite materials.
AbstractRenderSession
  view : View3D
Defines the view object used for the render session.
SpriteRenderSession
Public Methods
 MethodDefined by
  
Creates a new SpriteRenderSession object.
SpriteRenderSession
  
addDisplayObject(child:DisplayObject):void
Adds a display object to the render session display list.
SpriteRenderSession
  
addLayerObject(child:Sprite):void
Adds a layer sprite to the render session display list.
SpriteRenderSession
  
clear():void
Clears the render session.
SpriteRenderSession
  
Duplicates the render session's properties to another render session.
SpriteRenderSession
  
flush():void
Flushes any cached drawing operations to screen.
SpriteRenderSession
  
getContainer(view:View3D):DisplayObject
Returns a display object representing the container for the specified view.
SpriteRenderSession
 Inherited
Adds a session as a child of the session object.
AbstractRenderSession
 Inherited
renderBitmap(bitmap:BitmapData, v0:ScreenVertex, smooth:Boolean = false):void
Draws a non-scaled bitmap into the graphics object.
AbstractRenderSession
 Inherited
renderFogColor(color:int, alpha:Number):void
Draws a fog element into the graphics object.
AbstractRenderSession
 Inherited
renderLine(v0:ScreenVertex, v1:ScreenVertex, width:Number, color:uint, alpha:Number):void
Draws a segment element into the graphics object.
AbstractRenderSession
 Inherited
renderScaledBitmap(primitive:DrawScaledBitmap, bitmap:BitmapData, mapping:Matrix, smooth:Boolean = false):void
Draws a bitmap with a precalculated matrix into the graphics object.
AbstractRenderSession
 Inherited
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
 Inherited
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
 Inherited
renderTriangleLine(width:Number, color:int, alpha:Number, v0:ScreenVertex, v1:ScreenVertex, v2:ScreenVertex):void
Draws a wire triangle element into the graphics object.
AbstractRenderSession
 Inherited
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
Protected Methods
 MethodDefined by
  
createLayer():void
Creates a new render layer for rendering composite materials.
SpriteRenderSession
Property detail
viewproperty
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
Constructor detail
SpriteRenderSession()constructor
public function SpriteRenderSession() ####INIT####
Method detail
addDisplayObject()method
public override function addDisplayObject(child:DisplayObject):void

Adds a display object to the render session display list.

Parameters
child: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.

Parameters
child:Sprite — The display object to add.
clear()method 
public override function clear():void

Clears the render session.

clone()method 
public override function clone():AbstractRenderSession

Duplicates the render session's properties to another render session.

Returns
AbstractRenderSession — 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.

flush()method 
public override function flush():void

Flushes any cached drawing operations to screen.

getContainer()method 
public override 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.
Wiki link
Click to go to the wiki page for ####WIKI####

Code examples

Comments