Packageaway3d.core.render
Classpublic class DefaultRenderer
InheritanceDefaultRenderer Inheritance RendererBase

The DefaultRenderer class provides the default rendering method. It renders the scene graph objects using the materials assigned to them.

Public Properties
 PropertyDefined by
 InheritedantiAlias : uint
The amount of anti-aliasing to use.
RendererBase
  depthPrePass : Boolean
Indicates whether or not the depth buffer should be rendered first in a separate pass.
DefaultRenderer
 InheritedswapBackBuffer : Boolean
Indicates whether or not the back buffer should be swapped when rendering is complete.
RendererBase
Protected Properties
 PropertyDefined by
 Inherited_backBufferInvalid : Boolean
RendererBase
 Inherited_backgroundB : Number = 0
RendererBase
 Inherited_backgroundG : Number = 0
RendererBase
 Inherited_backgroundR : Number = 0
RendererBase
 Inherited_context : Context3D
RendererBase
 Inherited_contextIndex : int = -1
RendererBase
 Inherited_renderableSorter : EntitySorterBase
RendererBase
 Inherited_stage3DProxy : Stage3DProxy
RendererBase
 Inherited_viewPortHeight : Number = 1
RendererBase
 Inherited_viewPortWidth : Number = 1
RendererBase
 Inherited_viewPortX : Number = 0
RendererBase
 Inherited_viewPortY : Number = 0
RendererBase
Public Methods
 MethodDefined by
  
DefaultRenderer
(antiAlias:uint = 0, renderMode:String = "auto")
Creates a new DefaultRenderer object.
DefaultRenderer
Protected Methods
 MethodDefined by
  
draw(entityCollector:EntityCollector):void
Performs the actual drawing of geometry to the target.
DefaultRenderer
  
executeRender(entityCollector:EntityCollector, target:TextureBase = null, surfaceSelector:int = 0, additionalClearMask:int = 7):void
Renders the potentially visible geometry to the back buffer or texture.
DefaultRenderer
  
Updates the viewport dimensions;
DefaultRenderer
Property detail
depthPrePassproperty
depthPrePass:Boolean  [read-write]

Indicates whether or not the depth buffer should be rendered first in a separate pass.

Implementation
    public function get depthPrePass():Boolean
    public function set depthPrePass(value:Boolean):void
stage3DProxyproperty 
stage3DProxy:Stage3DProxy  [read-write]Implementation
    arcane function get stage3DProxy():Stage3DProxy
    arcane function set stage3DProxy(value:Stage3DProxy):void
Constructor detail
DefaultRenderer()constructor
public function DefaultRenderer(antiAlias:uint = 0, renderMode:String = "auto")Parameters
antiAlias:uint (default = 0) — The amount of anti-aliasing to use.
 
renderMode:String (default = "auto") — The render mode to use.
Init Parameters
Method detail
draw()method
protected override function draw(entityCollector:EntityCollector):void

Performs the actual drawing of geometry to the target.

Parameters
entityCollector:EntityCollector — The EntityCollector object containing the potentially visible geometry.
executeRender()method 
protected override function executeRender(entityCollector:EntityCollector, target:TextureBase = null, surfaceSelector:int = 0, additionalClearMask:int = 7):void

Renders the potentially visible geometry to the back buffer or texture. Only executed if everything is set up.

Parameters
entityCollector:EntityCollector — The EntityCollector object containing the potentially visible geometry.
 
target:TextureBase (default = null) — An option target texture to render to.
 
surfaceSelector:int (default = 0) — The index of a CubeTexture's face to render to.
 
additionalClearMask:int (default = 7) — Additional clear mask information, in case extra clear channels are to be omitted.
render()method 
arcane override function render(entityCollector:EntityCollector, target:TextureBase = null, surfaceSelector:int = 0, additionalClearMask:int = 7):void

Renders the potentially visible geometry to the back buffer or texture.

Parameters
entityCollector:EntityCollector — The EntityCollector object containing the potentially visible geometry.
 
target:TextureBase (default = null) — An option target texture to render to.
 
surfaceSelector:int (default = 0) — The index of a CubeTexture's face to render to.
 
additionalClearMask:int (default = 7) — Additional clear mask information, in case extra clear channels are to be omitted.
updateViewPort()method 
protected override function updateViewPort():void

Updates the viewport dimensions;

Wiki link
Click to go to the wiki page for 'away3d.core.render.DefaultRenderer'

Code examples

Comments