Packageaway3d.core.render
Classpublic class Renderer
InheritanceRenderer Inheritance Object
Subclasses BasicRenderer, BSPRenderer, QuadrantRenderer

A static class for an easy access to the most useful renderers.



Public Properties
 PropertyDefined By
  BASIC : Renderer
[static] [read-only] Fastest and simplest renderer, useful for many applications.
Renderer
  CORRECT_Z_ORDER : Renderer
[static] [read-only] Perform reordering of triangles after sorting to guarantee their correct rendering.
Renderer
  INTERSECTING_OBJECTS : Renderer
[static] [read-only] Perform triangles splitting to correctly render scenes with intersecting objects.
Renderer
  primitiveCommands : Vector.<Vector.<String>>
Renderer
  primitiveElements : Vector.<ElementVO>
Renderer
  primitiveGenerated : Vector.<Boolean>
Renderer
  primitiveMaterials : Vector.<Material>
Renderer
  primitiveProperties : Vector.<Number>
Renderer
  primitiveScreenZ : Vector.<Number>
Renderer
  primitiveSource : Vector.<ViewSourceObject>
Renderer
  primitiveType : Vector.<uint>
Renderer
  primitiveUVs : Vector.<UV>
Renderer
Protected Properties
 PropertyDefined By
  _spriteVO : SpriteVO
Renderer
  _viewSourceObject : ViewSourceObject
Renderer
Public Methods
 MethodDefined By
  
clear():void
Renderer
  
Renderer
  
createDrawDisplayObject(spriteVO:SpriteVO, index:uint, viewSourceObject:ViewSourceObject, scale:Number):uint
Renderer
  
createDrawFog(fogVO:FogVO, clip:Clipping):uint
Renderer
  
createDrawSegment(segmentVO:SegmentVO, commands:Vector.<String>, material:Material, startIndex:uint, endIndex:uint, viewSourceObject:ViewSourceObject, generated:Boolean = false):uint
Renderer
  
createDrawSprite(spriteVO:SpriteVO, material:Material, index:uint, viewSourceObject:ViewSourceObject, scale:Number):uint
Renderer
  
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>
Renderer
  
primitive(priIndex:uint):Boolean
Renderer
  
render():void
Renderer
  
toString():String
Renderer
Property Detail
_spriteVOproperty
protected var _spriteVO:SpriteVO

_viewSourceObjectproperty 
protected var _viewSourceObject:ViewSourceObject

BASICproperty 
BASIC:Renderer  [read-only]

Fastest and simplest renderer, useful for many applications.


Implementation
    public static function get BASIC():Renderer

See also

CORRECT_Z_ORDERproperty 
CORRECT_Z_ORDER:Renderer  [read-only]

Perform reordering of triangles after sorting to guarantee their correct rendering.


Implementation
    public static function get CORRECT_Z_ORDER():Renderer

See also

away3d.core.render.QuadrantRenderer
away3d.core.render.AnotherRivalFilter
INTERSECTING_OBJECTSproperty 
INTERSECTING_OBJECTS:Renderer  [read-only]

Perform triangles splitting to correctly render scenes with intersecting objects.


Implementation
    public static function get INTERSECTING_OBJECTS():Renderer

See also

away3d.core.render.QuadrantRenderer
away3d.core.render.QuadrantRiddleFilter
away3d.core.render.AnotherRivalFilter
primitiveCommandsproperty 
public var primitiveCommands:Vector.<Vector.<String>>

primitiveElementsproperty 
public var primitiveElements:Vector.<ElementVO>

primitiveGeneratedproperty 
public var primitiveGenerated:Vector.<Boolean>

primitiveMaterialsproperty 
public var primitiveMaterials:Vector.<Material>

primitivePropertiesproperty 
public var primitiveProperties:Vector.<Number>

primitiveScreenZproperty 
public var primitiveScreenZ:Vector.<Number>

primitiveSourceproperty 
public var primitiveSource:Vector.<ViewSourceObject>

primitiveTypeproperty 
public var primitiveType:Vector.<uint>

primitiveUVsproperty 
public var primitiveUVs:Vector.<UV>

Method Detail
clear()method
public function clear():void

clone()method 
public function clone():Renderer

Returns
Renderer
createDrawDisplayObject()method 
public function createDrawDisplayObject(spriteVO:SpriteVO, index:uint, viewSourceObject:ViewSourceObject, scale:Number):uint

Parameters

spriteVO:SpriteVO
 
index:uint
 
viewSourceObject:ViewSourceObject
 
scale:Number

Returns
uint
createDrawFog()method 
public function createDrawFog(fogVO:FogVO, clip:Clipping):uint

Parameters

fogVO:FogVO
 
clip:Clipping

Returns
uint
createDrawSegment()method 
public function createDrawSegment(segmentVO:SegmentVO, commands:Vector.<String>, material:Material, startIndex:uint, endIndex:uint, viewSourceObject:ViewSourceObject, generated:Boolean = false):uint

Parameters

segmentVO:SegmentVO
 
commands:Vector.<String>
 
material:Material
 
startIndex:uint
 
endIndex:uint
 
viewSourceObject:ViewSourceObject
 
generated:Boolean (default = false)

Returns
uint
createDrawSprite()method 
public function createDrawSprite(spriteVO:SpriteVO, material:Material, index:uint, viewSourceObject:ViewSourceObject, scale:Number):uint

Parameters

spriteVO:SpriteVO
 
material:Material
 
index:uint
 
viewSourceObject:ViewSourceObject
 
scale:Number

Returns
uint
createDrawTriangle()method 
public function createDrawTriangle(faceVO:FaceVO, commands:Vector.<String>, uvs:Vector.<UV>, material:Material, startIndex:uint, endIndex:uint, viewSourceObject:ViewSourceObject, area:Number = 0, generated:Boolean = false):uint

Parameters

faceVO:FaceVO
 
commands:Vector.<String>
 
uvs:Vector.<UV>
 
material:Material
 
startIndex:uint
 
endIndex:uint
 
viewSourceObject:ViewSourceObject
 
area:Number (default = 0)
 
generated:Boolean (default = false)

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

Returns
Vector.<uint>
primitive()method 
public function primitive(priIndex:uint):Boolean

Parameters

priIndex:uint

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

toString()method 
public function toString():String

Returns
String