Packageflash.display
Classpublic final class NativeWindowRenderMode
InheritanceNativeWindowRenderMode Inheritance Object

Language version: ActionScript 3.0
Runtime version: AIR 3.0

The NativeWindowRenderMode class defines constants for the renderMode property of the NativeWindowInitOptions object used to create a native window.

Note: The renderMode value is specified when a window is created and cannot be changed.

See also

flash.display.NativeWindow
flash.display.NativeWindowInitOptions


Public Properties
 PropertyDefined by
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Public Methods
 MethodDefined by
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Public Constants
 ConstantDefined by
  AUTO : String = "auto"
[static] A typical window.
NativeWindowRenderMode
  CPU : String = "cpu"
[static] A cpu mode window.
NativeWindowRenderMode
  DIRECT : String = "direct"
[static] A direct mode window.
NativeWindowRenderMode
  GPU : String = "gpu"
[static] A gpu mode window.
NativeWindowRenderMode
Constant detail
AUTOconstant
public static const AUTO:String = "auto"

Runtime version: AIR 3.0

A typical window. The rendermode will be set to whatever is most appropriate on the underlying device. Compositing with StageVideo or Stage3D may or may not be supported. This is the default.

CPUconstant 
public static const CPU:String = "cpu"

Runtime version: AIR 3.0

A cpu mode window. Vectors are rendered using the software renderer and blitting is done with the CPU, so compositing with StageVideo or Stage3D is not supported.

Note: Currently, to specify this mode for a new NativeWindow, the <renderMode> tag in the application descriptor must be "cpu", "auto" or "direct", otherwise an IllegalOperationError exception will be thrown.

DIRECTconstant 
public static const DIRECT:String = "direct"

Runtime version: AIR 3.0

A direct mode window. Direct mode windows render vectors using the software renderer, but blit using the GPU to allow compositing with StageVideo or Stage3D.

Note: Currently, to specify this mode for a new NativeWindow, the <renderMode> tag in the application descriptor must be "cpu" or "auto" or "direct", otherwise an IllegalOperationError exception will be thrown.

GPUconstant 
public static const GPU:String = "gpu"

Runtime version: AIR 3.0

A gpu mode window. Vectors are rendered using the GPU and blitting is done with the GPU, so compositing with StageVideo or Stage3D is supported.

Note: Currently, to specify this mode for a new NativeWindow, the <renderMode> tag in the application descriptor must also be "gpu", otherwise an IllegalOperationError exception will be thrown.