Packageaway3d.materials.utils
Classpublic class CubeMap

CubeMap represents a cube map texture, consisting out of 6 BitmapData objects. All BitmapData objects should be of the same size.

Public Properties
 PropertyDefined by
  negativeX : BitmapData
The texture on the cube's left face.
CubeMap
  negativeY : BitmapData
The texture on the cube's bottom face.
CubeMap
  negativeZ : BitmapData
The texture on the cube's near face.
CubeMap
  positiveX : BitmapData
The texture on the cube's right face.
CubeMap
  positiveY : BitmapData
The texture on the cube's top face.
CubeMap
  positiveZ : BitmapData
The texture on the cube's far face.
CubeMap
  size : int
[read-only] The size of the cube map texture.
CubeMap
Public Methods
 MethodDefined by
  
CubeMap
(posX:BitmapData = null, negX:BitmapData = null, posY:BitmapData = null, negY:BitmapData = null, posZ:BitmapData = null, negZ:BitmapData = null)
Creates a new CubeMap object.
CubeMap
  
dispose():void
Disposes of all BitmapData objects used by this CubeMap.
CubeMap
Property detail
negativeXproperty
negativeX:BitmapData  [read-write]

The texture on the cube's left face.

Implementation
    public function get negativeX():BitmapData
    public function set negativeX(value:BitmapData):void
negativeYproperty 
negativeY:BitmapData  [read-write]

The texture on the cube's bottom face.

Implementation
    public function get negativeY():BitmapData
    public function set negativeY(value:BitmapData):void
negativeZproperty 
negativeZ:BitmapData  [read-write]

The texture on the cube's near face.

Implementation
    public function get negativeZ():BitmapData
    public function set negativeZ(value:BitmapData):void
positiveXproperty 
positiveX:BitmapData  [read-write]

The texture on the cube's right face.

Implementation
    public function get positiveX():BitmapData
    public function set positiveX(value:BitmapData):void
positiveYproperty 
positiveY:BitmapData  [read-write]

The texture on the cube's top face.

Implementation
    public function get positiveY():BitmapData
    public function set positiveY(value:BitmapData):void
positiveZproperty 
positiveZ:BitmapData  [read-write]

The texture on the cube's far face.

Implementation
    public function get positiveZ():BitmapData
    public function set positiveZ(value:BitmapData):void
sizeproperty 
size:int  [read-only]

The size of the cube map texture.

Implementation
    public function get size():int
Constructor detail
CubeMap()constructor
public function CubeMap(posX:BitmapData = null, negX:BitmapData = null, posY:BitmapData = null, negY:BitmapData = null, posZ:BitmapData = null, negZ:BitmapData = null)Parameters
posX:BitmapData (default = null) — The texture on the cube's right face.
 
negX:BitmapData (default = null) — The texture on the cube's left face.
 
posY:BitmapData (default = null) — The texture on the cube's top face.
 
negY:BitmapData (default = null) — The texture on the cube's bottom face.
 
posZ:BitmapData (default = null) — The texture on the cube's far face.
 
negZ:BitmapData (default = null) — The texture on the cube's near face.
Init Parameters
Method detail
dispose()method
public function dispose():void

Disposes of all BitmapData objects used by this CubeMap.

upload()method 
arcane function upload(cubeTexture:CubeTexture):void

Uploads the BitmapData objects to the CubeTexture.

Parameters
cubeTexture:CubeTexture — The CubeTexture to upload to.
Wiki link
Click to go to the wiki page for 'away3d.materials.utils.CubeMap'

Code examples

Comments