Packagealternativa.engine3d.resources
Classpublic class BitmapCubeTextureResource
InheritanceBitmapCubeTextureResource Inheritance TextureResource Inheritance Resource Inheritance Object

Resource of cube texture. Allows user to upload cube texture, that consists of six BitmapData images to GPU. Size of texture must be power of two (e.g., 256х256, 12812, 25632).

See also

alternativa.engine3d.resources.TextureResource
alternativa.engine3d.resources.ATFTextureResource
alternativa.engine3d.resources.ExternalTextureResource


Public Properties
 PropertyDefined By
  back : BitmapData
BitmapData, that will be used as back face.
BitmapCubeTextureResource
  bottom : BitmapData
BitmapData, that will be used as bottom face.
BitmapCubeTextureResource
  front : BitmapData
BitmapData, that will be used as front face.
BitmapCubeTextureResource
 InheritedisUploaded : Boolean
[override] [read-only] Defines if this resource is uploaded inti a Context3D.
TextureResource
  left : BitmapData
BitmapData, that will be used as left face.
BitmapCubeTextureResource
  leftHanded : Boolean
Property, that define the choice of type of coordinate system: left-side or right-side.
BitmapCubeTextureResource
  right : BitmapData
BitmapData, that will be used as right face.
BitmapCubeTextureResource
  top : BitmapData
BitmapData, that will be used as top face.
BitmapCubeTextureResource
Public Methods
 MethodDefined By
  
BitmapCubeTextureResource(left:BitmapData, right:BitmapData, back:BitmapData, front:BitmapData, bottom:BitmapData, top:BitmapData, leftHanded:Boolean = false)
Creates a new instance of BitmapCubeTextureResource.
BitmapCubeTextureResource
 Inherited
dispose():void
[override] Removes this resource from Context3D to which it was uploaded.
TextureResource
  
upload(context3D:Context3D):void
[override] Uploads resource into given Context3D.
BitmapCubeTextureResource
Property Detail
backproperty
public var back:BitmapData

BitmapData, that will be used as back face.

bottomproperty 
public var bottom:BitmapData

BitmapData, that will be used as bottom face.

frontproperty 
public var front:BitmapData

BitmapData, that will be used as front face.

leftproperty 
public var left:BitmapData

BitmapData, that will be used as left face.

leftHandedproperty 
public var leftHanded:Boolean

Property, that define the choice of type of coordinate system: left-side or right-side. If axis Y is directed to up, and axis X - to front, then if you use right-side coordinate system, axis Z is directed to right. But if you use right-side coordinate system, then axis Z is directed to left.

rightproperty 
public var right:BitmapData

BitmapData, that will be used as right face.

topproperty 
public var top:BitmapData

BitmapData, that will be used as top face.

Constructor Detail
BitmapCubeTextureResource()Constructor
public function BitmapCubeTextureResource(left:BitmapData, right:BitmapData, back:BitmapData, front:BitmapData, bottom:BitmapData, top:BitmapData, leftHanded:Boolean = false)

Creates a new instance of BitmapCubeTextureResource.

Parameters
left:BitmapDataBitmapData, that will be used as left face.
 
right:BitmapDataBitmapData, that will be used as right face.
 
back:BitmapDataBitmapData, that will be used as bottom face.
 
front:BitmapDataBitmapData, that will be used as top face.
 
bottom:BitmapDataBitmapData, that will be used as back face.
 
top:BitmapDataBitmapData, that will be used as front face.
 
leftHanded:Boolean (default = false) — Property, that define the choice of type of coordinate system: left-side or right-side.
Method Detail
upload()method
override public function upload(context3D:Context3D):void

Uploads resource into given Context3D.

Parameters

context3D:Context3DContext3D to which resource will uploaded.