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 : Array
Renderer
 InheritedprimitiveElements : Array
Renderer
 InheritedprimitiveGenerated : Array
Renderer
 InheritedprimitiveMaterials : Array
Renderer
 InheritedprimitiveProperties : Array
Renderer
 InheritedprimitiveScreenZ : Array
Renderer
 InheritedprimitiveSource : Array
Renderer
 InheritedprimitiveType : Array
Renderer
 InheritedprimitiveUVs : Array
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:Number, viewSourceObject:ViewSourceObject, scale:Number):uint
Renderer
 Inherited
createDrawFog(fogVO:FogVO, clip:Clipping):uint
Renderer
 Inherited
createDrawSegment(segmentVO:SegmentVO, commands:Array, material:Material, startIndex:int, endIndex:int, 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:Array, uvs:Array, material:Material, startIndex:int, endIndex:int, viewSourceObject:ViewSourceObject, area:Number = 0, generated:Boolean = false):uint
Renderer
  
list():Array
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():Array

A list of primitives that have been clipped and blocked.

Returns
Array — 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