The Stage3DManager class provides a multiton object that handles management for Stage3D objects. Stage3D objects should not be requested directly, but are exposed by a Stage3DProxy.
See also:
away3d.core.managers.Stage3DProxy
Static methods
staticgetInstance(stage:Stage):Stage3DManager
Gets a Stage3DManager instance for the given Stage object.
Parameters:
stage | The Stage object that contains the Stage3D objects to be managed. |
|---|
Returns:
The Stage3DManager instance for the given Stage object.
Variables
Methods
getFreeStage3DProxy(forceSoftware:Bool = false, profile:String = "baseline"):Stage3DProxy
Get the next available stage3DProxy. An error is thrown if there are no Stage3DProxies available
Parameters:
forceSoftware | Whether to force software mode even if hardware acceleration is available. |
|---|---|
profile | The compatibility profile, an enumeration of Context3DProfile |
Returns:
The allocated stage3DProxy
getStage3DProxy(index:Int, forceSoftware:Bool = false, profile:String = "baseline"):Stage3DProxy
Requests the Stage3DProxy for the given index.
Parameters:
index | The index of the requested Stage3D. |
|---|---|
forceSoftware | Whether to force software mode even if hardware acceleration is available. |
profile | The compatibility profile, an enumeration of Context3DProfile |
Returns:
The Stage3DProxy for the given index.