Packageaway3d.core.render
Classpublic class BasicRenderer
ImplementsIPrimitiveConsumer, IRenderer

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
  filters : Array
Defines the array of filters to be used on the drawing primitives.
BasicRenderer
Public Methods
 MethodDefined by
  
BasicRenderer
(... filters)
Creates a new BasicRenderer object.
BasicRenderer
  
clear(view:View3D):void
BasicRenderer
  
BasicRenderer
  
list():Array
A list of primitives that have been clipped and blocked.
BasicRenderer
  
primitive(pri:DrawPrimitive):Boolean
Adds a drawing primitive to the primitive consumer
BasicRenderer
  
render(view:View3D):void
BasicRenderer
  
toString():String
Used to trace the values of a renderer.
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.
Method detail
clear()method
public function clear(view:View3D):void
Parameters
view:View3D
clone()method 
public function clone():IPrimitiveConsumer

Returns
IPrimitiveConsumer
list()method 
public 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 function primitive(pri:DrawPrimitive):Boolean

Adds a drawing primitive to the primitive consumer

Parameters
pri:DrawPrimitive — The drawing primitive to add.

Returns
Boolean — Whether the primitive was added.
render()method 
public function render(view:View3D):void
Parameters
view:View3D
toString()method 
public function toString():String

Used to trace the values of a renderer.

Returns
String — A string representation of the renderer object.
Wiki link
Click to go to the wiki page for 'away3d.core.render.BasicRenderer'

Code examples
There are currently no examples for this class

Comments
No comments found
Please leave a comment

Please leave a comment

security image