Packageflare.system
Classpublic final class Device3D
InheritanceDevice3D Inheritance Object

The Device3D class manages the main configuration, states and data processing.



Public Properties
 PropertyDefined By
  camera : Camera3D
[static] Current rendering camera.
Device3D
  defaultCullFace : String = back
[static] The default cull face mode to use when some material is created.
Device3D
  defaultDestFactor : String = oneMinusSourceAlpha
[static] The default destination factor to use when some material is created.
Device3D
  defaultSourceFactor : String = sourceAlpha
[static] The default source factor to use when some material is created.
Device3D
  drawCalls : int
[static] The number of draw operations of the last frame.
Device3D
  frameCount : int
[static] The ammount of frames rendered.
Device3D
  invertCullMode : Boolean = false
[static]
Device3D
  lastProgram : FLSLProgram3D
[static]
Device3D
  maxBonesPerSurface : int = 31
[static] The maximim number of bones per surface.
Device3D
  maxBonesPerVertex : int
[static] Sets and returns the maximum number of bones per vertex (1 to 4).
Device3D
  maxTextureSize : int = 2048
[static] The maximum texture size allowed.
Device3D
  nullBitmapData : BitmapData
[static]
Device3D
  objectsDrawn : int
[static] The number of objects that was drawn on the last frame.
Device3D
  scene : Scene3D
[static] Current scene.
Device3D
  trianglesDrawn : int
[static] The number of triangles drawn on the last frame.
Device3D
  usedBuffers : int
[static]
Device3D
  usedSamples : int
[static]
Device3D
Public Constants
 ConstantDefined By
  cameraGlobal : Matrix3D
[static] Current view matrix.
Device3D
  global : Matrix3D
[static] Global matrix of current rendering object.
Device3D
  invGlobal : Matrix3D
[static] Inverse global matrix of current rendering object.
Device3D
  proj : Matrix3D
[static] Current projection matrix.
Device3D
  special0 : Matrix3D
[static]
Device3D
  special1 : Matrix3D
[static]
Device3D
  special2 : Matrix3D
[static]
Device3D
  temporal0 : Matrix3D
[static]
Device3D
  temporal1 : Matrix3D
[static]
Device3D
  view : Matrix3D
[static] Current inverted view matrix.
Device3D
  viewProj : Matrix3D
[static] Current view-projection matrix.
Device3D
  worldView : Matrix3D
[static] Current world-view matrix.
Device3D
  worldViewProj : Matrix3D
[static] Current world-view-projection matrix.
Device3D
Property Detail
cameraproperty
public static var camera:Camera3D

Current rendering camera. This property is automatically seted during the rendereing process.

defaultCullFaceproperty 
public static var defaultCullFace:String = back

The default cull face mode to use when some material is created.

defaultDestFactorproperty 
public static var defaultDestFactor:String = oneMinusSourceAlpha

The default destination factor to use when some material is created.

defaultSourceFactorproperty 
public static var defaultSourceFactor:String = sourceAlpha

The default source factor to use when some material is created.

drawCallsproperty 
public static var drawCalls:int

The number of draw operations of the last frame.

frameCountproperty 
public static var frameCount:int

The ammount of frames rendered.

invertCullModeproperty 
public static var invertCullMode:Boolean = false

lastProgramproperty 
public static var lastProgram:FLSLProgram3D

maxBonesPerSurfaceproperty 
public static var maxBonesPerSurface:int = 31

The maximim number of bones per surface. This value should not be changed if it is not really necesary, it could affect dramatically the performance and stability of the engine.

maxBonesPerVertexproperty 
maxBonesPerVertex:int

Sets and returns the maximum number of bones per vertex (1 to 4). This property works as a global configuration, and should be defined before creating the scene.


Implementation
    public static function get maxBonesPerVertex():int
    public static function set maxBonesPerVertex(value:int):void
maxTextureSizeproperty 
public static var maxTextureSize:int = 2048

The maximum texture size allowed.

nullBitmapDataproperty 
public static var nullBitmapData:BitmapData

objectsDrawnproperty 
public static var objectsDrawn:int

The number of objects that was drawn on the last frame.

sceneproperty 
public static var scene:Scene3D

Current scene. This property is automatically seted during the rendereing process.

trianglesDrawnproperty 
public static var trianglesDrawn:int

The number of triangles drawn on the last frame.

usedBuffersproperty 
public static var usedBuffers:int

usedSamplesproperty 
public static var usedSamples:int

Constant Detail
cameraGlobalConstant
public static const cameraGlobal:Matrix3D

Current view matrix. This property is automatically seted during the rendereing process.

globalConstant 
public static const global:Matrix3D

Global matrix of current rendering object. This property is automatically seted during the rendereing process.

invGlobalConstant 
public static const invGlobal:Matrix3D

Inverse global matrix of current rendering object. This property is automatically seted during the rendereing process.

projConstant 
public static const proj:Matrix3D

Current projection matrix. This property is automatically seted during the rendereing process.

special0Constant 
public static const special0:Matrix3D

special1Constant 
public static const special1:Matrix3D

special2Constant 
public static const special2:Matrix3D

temporal0Constant 
public static const temporal0:Matrix3D

temporal1Constant 
public static const temporal1:Matrix3D

viewConstant 
public static const view:Matrix3D

Current inverted view matrix. This property is automatically seted during the rendereing process.

viewProjConstant 
public static const viewProj:Matrix3D

Current view-projection matrix. This property is automatically seted during the rendereing process.

worldViewConstant 
public static const worldView:Matrix3D

Current world-view matrix. This property is automatically seted during the rendereing process.

worldViewProjConstant 
public static const worldViewProj:Matrix3D

Current world-view-projection matrix. This property is automatically seted during the rendereing process.