| Package | away3d.core.managers |
| Class | public class Stage3DProxy |
| Inheritance | Stage3DProxy flash.events.EventDispatcher |
See also
| Property | Defined By | ||
|---|---|---|---|
| antiAlias : int
The antiAliasing of the Stage3D. | Stage3DProxy | ||
| bufferClear : Boolean
The freshly cleared state of the backbuffer before any rendering
| Stage3DProxy | ||
| color : uint
The background color of the Stage3D. | Stage3DProxy | ||
| context3D : Context3D [read-only]
The Context3D object associated with the given Stage3D object. | Stage3DProxy | ||
| driverInfo : String [read-only]
The driver information as reported by the Context3D object (if any)
| Stage3DProxy | ||
| enableDepthAndStencil : Boolean | Stage3DProxy | ||
| height : int
The height of the Stage3D. | Stage3DProxy | ||
| mouse3DManager : Mouse3DManager | Stage3DProxy | ||
| profile : String [read-only] | Stage3DProxy | ||
| renderSurfaceSelector : int [read-only] | Stage3DProxy | ||
| renderTarget : TextureBase [read-only] | Stage3DProxy | ||
| scissorRect : Rectangle | Stage3DProxy | ||
| stage3D : Stage3D [read-only]
The base Stage3D object associated with this proxy. | Stage3DProxy | ||
| stage3DIndex : int [read-only]
The index of the Stage3D which is managed by this instance of Stage3DProxy. | Stage3DProxy | ||
| usesSoftwareRendering : Boolean [read-only]
Indicates whether the Stage3D managed by this proxy is running in software mode. | Stage3DProxy | ||
| viewPort : Rectangle [read-only]
A viewPort rectangle equivalent of the Stage3D size and position. | Stage3DProxy | ||
| visible : Boolean
The visibility of the Stage3D. | Stage3DProxy | ||
| width : int
The width of the Stage3D. | Stage3DProxy | ||
| x : Number
The x position of the Stage3D. | Stage3DProxy | ||
| y : Number
The y position of the Stage3D. | Stage3DProxy | ||
| Method | Defined By | ||
|---|---|---|---|
Stage3DProxy(stage3DIndex:int, stage3D:Stage3D, stage3DManager:Stage3DManager, forceSoftware:Boolean = false, profile:String = baseline)
Creates a Stage3DProxy object. | Stage3DProxy | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void [override]
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event. | Stage3DProxy | ||
clear():void | Stage3DProxy | ||
clearDepthBuffer():void | Stage3DProxy | ||
configureBackBuffer(backBufferWidth:int, backBufferHeight:int, antiAlias:int, enableDepthAndStencil:Boolean):void
Configures the back buffer associated with the Stage3D object. | Stage3DProxy | ||
dispose():void
Disposes the Stage3DProxy object, freeing the Context3D attached to the Stage3D. | Stage3DProxy | ||
present():void | Stage3DProxy | ||
recoverFromDisposal():Boolean | Stage3DProxy | ||
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void [override]
Removes a listener from the EventDispatcher object. | Stage3DProxy | ||
setRenderTarget(target:TextureBase, enableDepthAndStencil:Boolean = false, surfaceSelector:int = 0):void | Stage3DProxy | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Stage3DProxy | ||||
| Stage3DProxy | ||||
| _context3D | property |
arcane var _context3D:Context3D| _stage3DIndex | property |
arcane var _stage3DIndex:int = -1| antiAlias | property |
antiAlias:intThe antiAliasing of the Stage3D.
public function get antiAlias():int public function set antiAlias(value:int):void| bufferClear | property |
bufferClear:BooleanThe freshly cleared state of the backbuffer before any rendering
public function get bufferClear():Boolean public function set bufferClear(value:Boolean):void| color | property |
color:uintThe background color of the Stage3D.
public function get color():uint public function set color(value:uint):void| context3D | property |
context3D:Context3D [read-only] The Context3D object associated with the given Stage3D object.
public function get context3D():Context3D| driverInfo | property |
driverInfo:String [read-only] The driver information as reported by the Context3D object (if any)
public function get driverInfo():String| enableDepthAndStencil | property |
enableDepthAndStencil:Boolean public function get enableDepthAndStencil():Boolean public function set enableDepthAndStencil(value:Boolean):void| height | property |
height:intThe height of the Stage3D.
public function get height():int public function set height(value:int):void| mouse3DManager | property |
mouse3DManager:Mouse3DManager public function get mouse3DManager():Mouse3DManager public function set mouse3DManager(value:Mouse3DManager):void| profile | property |
profile:String [read-only] public function get profile():String| renderSurfaceSelector | property |
renderSurfaceSelector:int [read-only] public function get renderSurfaceSelector():int| renderTarget | property |
renderTarget:TextureBase [read-only] public function get renderTarget():TextureBase| scissorRect | property |
scissorRect:Rectangle public function get scissorRect():Rectangle public function set scissorRect(value:Rectangle):void| stage3D | property |
stage3D:Stage3D [read-only] The base Stage3D object associated with this proxy.
public function get stage3D():Stage3D| stage3DIndex | property |
stage3DIndex:int [read-only] The index of the Stage3D which is managed by this instance of Stage3DProxy.
public function get stage3DIndex():int| usesSoftwareRendering | property |
usesSoftwareRendering:Boolean [read-only] Indicates whether the Stage3D managed by this proxy is running in software mode. Remember to wait for the CONTEXT3D_CREATED event before checking this property, as only then will it be guaranteed to be accurate.
public function get usesSoftwareRendering():Boolean| viewPort | property |
viewPort:Rectangle [read-only] A viewPort rectangle equivalent of the Stage3D size and position.
public function get viewPort():Rectangle| visible | property |
visible:BooleanThe visibility of the Stage3D.
public function get visible():Boolean public function set visible(value:Boolean):void| width | property |
width:intThe width of the Stage3D.
public function get width():int public function set width(value:int):void| x | property |
x:NumberThe x position of the Stage3D.
public function get x():Number public function set x(value:Number):void| y | property |
y:NumberThe y position of the Stage3D.
public function get y():Number public function set y(value:Number):void| Stage3DProxy | () | Constructor |
public function Stage3DProxy(stage3DIndex:int, stage3D:Stage3D, stage3DManager:Stage3DManager, forceSoftware:Boolean = false, profile:String = baseline)Creates a Stage3DProxy object. This method should not be called directly. Creation of Stage3DProxy objects should be handled by Stage3DManager.
Parametersstage3DIndex:int — The index of the Stage3D to be proxied.
| |
stage3D:Stage3D — The Stage3D to be proxied.
| |
stage3DManager:Stage3DManager | |
forceSoftware:Boolean (default = false) — Whether to force software mode even if hardware acceleration is available.
| |
profile:String (default = baseline) |
| addEventListener | () | method |
override public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):voidRegisters an event listener object with an EventDispatcher object so that the listener receives notification of an event. Special case for enterframe and exitframe events - will switch Stage3DProxy into automatic render mode. You can register event listeners on all nodes in the display list for a specific type of event, phase, and priority.
Parameters
type:String — The type of event.
| |
listener:Function — The listener function that processes the event.
| |
useCapture:Boolean (default = false) — Determines whether the listener works in the capture phase or the target and bubbling phases. If useCapture is set to true, the listener processes the event only during the capture phase and not in the target or bubbling phase. If useCapture is false, the listener processes the event only during the target or bubbling phase. To listen for the event in all three phases, call addEventListener twice, once with useCapture set to true, then again with useCapture set to false.
| |
priority:int (default = 0) — The priority level of the event listener. The priority is designated by a signed 32-bit integer. The higher the number, the higher the priority. All listeners with priority n are processed before listeners of priority n-1. If two or more listeners share the same priority, they are processed in the order in which they were added. The default priority is 0.
| |
useWeakReference:Boolean (default = false) — Determines whether the reference to the listener is strong or weak. A strong reference (the default) prevents your listener from being garbage-collected. A weak reference does not.
|
| clear | () | method |
public function clear():void| clearDepthBuffer | () | method |
public function clearDepthBuffer():void| configureBackBuffer | () | method |
public function configureBackBuffer(backBufferWidth:int, backBufferHeight:int, antiAlias:int, enableDepthAndStencil:Boolean):voidConfigures the back buffer associated with the Stage3D object.
Parameters
backBufferWidth:int — The width of the backbuffer.
| |
backBufferHeight:int — The height of the backbuffer.
| |
antiAlias:int — The amount of anti-aliasing to use.
| |
enableDepthAndStencil:Boolean — Indicates whether the back buffer contains a depth and stencil buffer.
|
| dispose | () | method |
public function dispose():voidDisposes the Stage3DProxy object, freeing the Context3D attached to the Stage3D.
| present | () | method |
public function present():void| recoverFromDisposal | () | method |
public function recoverFromDisposal():BooleanReturnsBoolean |
| removeEventListener | () | method |
override public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):voidRemoves a listener from the EventDispatcher object. Special case for enterframe and exitframe events - will switch Stage3DProxy out of automatic render mode. If there is no matching listener registered with the EventDispatcher object, a call to this method has no effect.
Parameters
type:String — The type of event.
| |
listener:Function — The listener object to remove.
| |
useCapture:Boolean (default = false) — Specifies whether the listener was registered for the capture phase or the target and bubbling phases. If the listener was registered for both the capture phase and the target and bubbling phases, two calls to removeEventListener() are required to remove both, one call with useCapture() set to true, and another call with useCapture() set to false.
|
| setRenderTarget | () | method |
public function setRenderTarget(target:TextureBase, enableDepthAndStencil:Boolean = false, surfaceSelector:int = 0):voidParameters
target:TextureBase | |
enableDepthAndStencil:Boolean (default = false) | |
surfaceSelector:int (default = 0) |
| enterFrame | Event |
flash.events.Event| exitFrame | Event |
flash.events.Event