Package | away3d.core.render |
Class | public class AbstractRenderSession |
Inheritance | AbstractRenderSession ![]() |
Subclasses | BitmapRenderSession, SpriteRenderSession |
SpriteRenderSession
or BitmapRenderSession
.
Property | Defined by | ||
---|---|---|---|
alpha : Number = 1
Placeholder for alpha property of containers
| AbstractRenderSession | ||
blendMode : String
Placeholder for blendMode property of containers
| AbstractRenderSession | ||
consumer : IPrimitiveConsumer | AbstractRenderSession | ||
filters : Array
Placeholder for filters property of containers
| AbstractRenderSession | ||
graphics : Graphics
Reference to the current graphics object being used for drawing.
| AbstractRenderSession | ||
layer : DisplayObject | AbstractRenderSession | ||
parent : AbstractRenderSession | AbstractRenderSession | ||
priconsumers : Dictionary | AbstractRenderSession | ||
primitives : Array | AbstractRenderSession | ||
renderer : IPrimitiveConsumer | AbstractRenderSession | ||
screenZ : Number | AbstractRenderSession | ||
sessions : Array
Array of child sessions.
| AbstractRenderSession | ||
updated : Boolean | AbstractRenderSession |
Method | Defined by | ||
---|---|---|---|
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.
| AbstractRenderSession | ||
addOnSessionUpdate(listener:Function):void
Default method for adding a sessionUpdated event listener
| AbstractRenderSession | ||
Clears the render session.
| AbstractRenderSession | ||
clearChildSessions():void
| AbstractRenderSession | ||
clearRenderers():void
| AbstractRenderSession | ||
Duplicates the render session's properties to another render session.
| AbstractRenderSession | ||
AbstractRenderSession | |||
Returns a display object representing the container for the specified view.
| AbstractRenderSession | ||
AbstractRenderSession | |||
AbstractRenderSession | |||
AbstractRenderSession | |||
AbstractRenderSession | |||
AbstractRenderSession | |||
AbstractRenderSession | |||
AbstractRenderSession | |||
Removes a child session of the session object.
| AbstractRenderSession | ||
removeOnSessionUpdate(listener:Function):void
Default method for removing a sessionUpdated event listener
| AbstractRenderSession | ||
AbstractRenderSession | |||
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 | ||
renderTriangleBitmapF10(bitmap:BitmapData, vertices:Vector, uvtData:Vector, smooth:Boolean, repeat:Boolean, layerGraphics:Graphics = null):void
Draws a triangle element with a bitmap texture into the graphics object (Flash 10)
| AbstractRenderSession | ||
renderTriangleBitmapMask(bitmap:BitmapData, offX:Number, offY:Number, sc:Number, 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, with no uv transforms.
| 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.
| AbstractRenderSession | ||
createShape(parent:Sprite):Shape
| AbstractRenderSession | ||
createSprite(parent:Sprite = null):Sprite
| AbstractRenderSession | ||
AbstractRenderSession |
Event | Summary | Defined by | ||
---|---|---|---|---|
Dispatched when the render contents of the session require updating. | AbstractRenderSession |
alpha | property |
public var alpha:Number = 1
Placeholder for alpha property of containers
blendMode | property |
public var blendMode:String
Placeholder for blendMode property of containers
consumer | property |
public var consumer:IPrimitiveConsumer
filters | property |
public var filters:Array
Placeholder for filters property of containers
graphics | property |
public var graphics:Graphics
Reference to the current graphics object being used for drawing.
layer | property |
public var layer:DisplayObject
parent | property |
public var parent:AbstractRenderSession
priconsumers | property |
public var priconsumers:Dictionary
primitives | property |
public var primitives:Array
renderer | property |
renderer:IPrimitiveConsumer
[read-write]Implementation
public function get renderer():IPrimitiveConsumer
public function set renderer(value:IPrimitiveConsumer):void
screenZ | property |
public var screenZ:Number
sessions | property |
public var sessions:Array
Array of child sessions.
_shapeActive | property |
arcane var _shapeActive:Array
Array for storing added displayobjects to the canvas
_shapeStore | property |
arcane var _shapeStore:Array
Array for storing old displayobjects to the canvas
_spriteActive | property |
arcane var _spriteActive:Array
Array for storing added displayobjects to the canvas
_spriteStore | property |
arcane var _spriteStore:Array
Array for storing old displayobjects to the canvas
updated | property |
public var updated:Boolean
addChildSession | () | method |
public function addChildSession(session:AbstractRenderSession):void
Adds a session as a child of the session object.
Parameterssession:AbstractRenderSession — The session object to be added as a child.
|
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.
|
addOnSessionUpdate | () | method |
public function addOnSessionUpdate(listener:Function):void
Default method for adding a sessionUpdated event listener
Parameterslistener:Function — The listener function
|
clear | () | method |
clearChildSessions | () | method |
public function clearChildSessions():void
clearRenderers | () | method |
public function clearRenderers():void
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
createShape | () | method |
protected function createShape(parent:Sprite):Shape
Parameters
parent:Sprite |
Shape |
createSprite | () | method |
protected function createSprite(parent:Sprite = null):Sprite
Parameters
parent:Sprite (default = null )
|
Sprite |
getConsumer | () | method |
public function getConsumer(view:View3D):IPrimitiveConsumer
Parameters
view:View3D |
IPrimitiveConsumer |
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.
|
getLightShape | () | method |
public function getLightShape(material:ILayerMaterial, level:int, parent:Sprite, light:LightPrimitive):Shape
Parameters
material:ILayerMaterial |
|
level:int |
|
parent:Sprite |
|
light:LightPrimitive |
Shape |
getLightShapeLayer | () | method |
public function getLightShapeLayer(view:View3D):Dictionary
Parameters
view:View3D |
Dictionary |
getShape | () | method |
public function getShape(material:ILayerMaterial, level:int, parent:Sprite):Shape
Parameters
material:ILayerMaterial |
|
level:int |
|
parent:Sprite |
Shape |
getShapeLayer | () | method |
getSprite | () | method |
public function getSprite(material:ILayerMaterial, level:int, parent:Sprite = null):Sprite
Parameters
material:ILayerMaterial |
|
level:int |
|
parent:Sprite (default = null )
|
Sprite |
getSpriteLayer | () | method |
getTotalFaces | () | method |
onSessionUpdate | () | method |
removeChildSession | () | method |
public function removeChildSession(session:AbstractRenderSession):void
Removes a child session of the session object.
Parameterssession:AbstractRenderSession — The session object to be removed.
|
removeOnSessionUpdate | () | method |
public function removeOnSessionUpdate(listener:Function):void
Default method for removing a sessionUpdated event listener
Parameterslistener:Function — The listener function
|
render | () | method |
renderBillboardBitmap | () | method |
public function renderBillboardBitmap(bitmap:BitmapData, primitive:DrawBillboard, smooth:Boolean):void
Draws a billboard element with a fill bitmap into the graphics object.
Parametersbitmap:BitmapData |
|
primitive:DrawBillboard |
|
smooth:Boolean |
renderBillboardColor | () | method |
public function renderBillboardColor(color:int, alpha:Number, primitive:DrawBillboard):void
Draws a billboard element with a fill color into the graphics object.
Parameterscolor:int |
|
alpha:Number |
|
primitive:DrawBillboard |
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(clip:Clipping, color:int, alpha:Number):void
Draws a fog element into the graphics object.
Parametersclip:Clipping |
|
color: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 )
|
renderTriangleBitmapF10 | () | method |
public function renderTriangleBitmapF10(bitmap:BitmapData, vertices:Vector, uvtData:Vector, smooth:Boolean, repeat:Boolean, layerGraphics:Graphics = null):void
Draws a triangle element with a bitmap texture into the graphics object (Flash 10)
Parametersbitmap:BitmapData |
|
vertices:Vector |
|
uvtData:Vector |
|
smooth:Boolean |
|
repeat:Boolean |
|
layerGraphics:Graphics (default = null )
|
renderTriangleBitmapMask | () | method |
public function renderTriangleBitmapMask(bitmap:BitmapData, offX:Number, offY:Number, sc:Number, 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, with no uv transforms.
Parametersbitmap:BitmapData |
|
offX:Number |
|
offY:Number |
|
sc:Number |
|
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, layerGraphics:Graphics = null):void
Draws a triangle element with a fill color into the graphics object.
Parameterscolor:int |
|
alpha:Number |
|
v0:ScreenVertex |
|
v1:ScreenVertex |
|
v2:ScreenVertex |
|
layerGraphics:Graphics (default = null )
|
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 |
sessionUpdated | event |
away3d.events.SessionEvent
Dispatched when the render contents of the session require updating.