Packageaway3d.core.render
Classpublic class BasicRenderer
InheritanceBasicRenderer Inheritance Renderer Inheritance Object

Default renderer for a view. Contains the main render loop for rendering a scene to a view, which resolves the projection, culls any drawing primitives that are occluded or outside the viewport, and then z-sorts and renders them to screen.



Public Properties
 PropertyDefined By
 InheritedBASIC : Renderer
[static] [read-only] Fastest and simplest renderer, useful for many applications.
Renderer
 InheritedCORRECT_Z_ORDER : Renderer
[static] [read-only] Perform reordering of triangles after sorting to guarantee their correct rendering.
Renderer
  filters : Array
Defines the array of filters to be used on the drawing primitives.
BasicRenderer
 InheritedINTERSECTING_OBJECTS : Renderer
[static] [read-only] Perform triangles splitting to correctly render scenes with intersecting objects.
Renderer
 InheritedprimitiveCommands : Vector.<Vector.<String>>
Renderer
 InheritedprimitiveElements : Vector.<ElementVO>
Renderer
 InheritedprimitiveGenerated : Vector.<Boolean>
Renderer
 InheritedprimitiveMaterials : Vector.<Material>
Renderer
 InheritedprimitiveProperties : Vector.<Number>
Renderer
 InheritedprimitiveScreenZ : Vector.<Number>
Renderer
 InheritedprimitiveSource : Vector.<ViewSourceObject>
Renderer
 InheritedprimitiveType : Vector.<uint>
Renderer
 InheritedprimitiveUVs : Vector.<UV>
Renderer
Protected Properties
 PropertyDefined By
 Inherited_spriteVO : SpriteVO
Renderer
 Inherited_viewSourceObject : ViewSourceObject
Renderer
Public Methods
 MethodDefined By
  
BasicRenderer(... filters)
Creates a new BasicRenderer object.
BasicRenderer
  
clear():void
[override]
BasicRenderer
  
[override]
BasicRenderer
 Inherited
createDrawDisplayObject(spriteVO:SpriteVO, index:uint, viewSourceObject:ViewSourceObject, scale:Number):uint
Renderer
 Inherited
createDrawFog(fogVO:FogVO, clip:Clipping):uint
Renderer
 Inherited
createDrawSegment(segmentVO:SegmentVO, commands:Vector.<String>, material:Material, startIndex:uint, endIndex:uint, viewSourceObject:ViewSourceObject, generated:Boolean = false):uint
Renderer
 Inherited
createDrawSprite(spriteVO:SpriteVO, material:Material, index:uint, viewSourceObject:ViewSourceObject, scale:Number):uint
Renderer
 Inherited
createDrawTriangle(faceVO:FaceVO, commands:Vector.<String>, uvs:Vector.<UV>, material:Material, startIndex:uint, endIndex:uint, viewSourceObject:ViewSourceObject, area:Number = 0, generated:Boolean = false):uint
Renderer
  
list():Vector.<uint>
[override] A list of primitives that have been clipped and blocked.
BasicRenderer
  
primitive(priIndex:uint):Boolean
[override]
BasicRenderer
  
render():void
[override]
BasicRenderer
  
toString():String
[override]
BasicRenderer
Property Detail
filtersproperty
filters:Array

Defines the array of filters to be used on the drawing primitives.


Implementation
    public function get filters():Array
    public function set filters(value:Array):void
Constructor Detail
BasicRenderer()Constructor
public function BasicRenderer(... filters)

Creates a new BasicRenderer object.

Parameters
... filters — [optional] An array of filters to use on projected drawing primitives before rendering them to screen.
####INIT####
Method Detail
clear()method
override public function clear():void

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

Returns
Renderer
list()method 
override public function list():Vector.<uint>

A list of primitives that have been clipped and blocked.

Returns
Vector.<uint> — An array containing the primitives to be rendered.
primitive()method 
override public function primitive(priIndex:uint):Boolean

Parameters

priIndex:uint

Returns
Boolean
render()method 
override public function render():void

toString()method 
override public function toString():String

Returns
String