Packageaway3d.core.render
Classpublic class BasicRenderer
InheritanceBasicRenderer Inheritance Renderer

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] Fastest and simplest renderer, useful for many applications.
Renderer
 InheritedCORRECT_Z_ORDER : Renderer
[static] 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] Perform triangles splitting to correctly render scenes with intersecting objects.
Renderer
 InheritedprimitiveCommands : Vector
Renderer
 InheritedprimitiveElements : Vector
Renderer
 InheritedprimitiveGenerated : Vector
Renderer
 InheritedprimitiveMaterials : Vector
Renderer
 InheritedprimitiveProperties : Vector
Renderer
 InheritedprimitiveScreenZ : Vector
Renderer
 InheritedprimitiveSource : Vector
Renderer
 InheritedprimitiveType : Vector
Renderer
 InheritedprimitiveUVs : Vector
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
BasicRenderer
  
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, 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, uvs:Vector, material:Material, startIndex:uint, endIndex:uint, viewSourceObject:ViewSourceObject, area:Number = 0, generated:Boolean = false):uint
Renderer
  
list():Vector
A list of primitives that have been clipped and blocked.
BasicRenderer
  
primitive(priIndex:uint):Boolean
BasicRenderer
  
render():void
BasicRenderer
  
toString():String
BasicRenderer
Property detail
filtersproperty
filters:Array  [read-write]

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)Parameters
... filters — [optional] An array of filters to use on projected drawing primitives before rendering them to screen.
Init Parameters
Method detail
clear()method
public override function clear():void
clone()method 
public override function clone():Renderer

Returns
Renderer
list()method 
public override function list():Vector

A list of primitives that have been clipped and blocked.

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

Parameters
priIndex:uint

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

Returns
String
Wiki link
Click to go to the wiki page for 'away3d.core.render.BasicRenderer'

Code examples

Comments