Package | alternativa.engine3d.resources |
Class | public class BitmapCubeTextureResource |
Inheritance | BitmapCubeTextureResource ![]() ![]() ![]() |
BitmapData
images to GPU.
Size of texture must be power of two (e.g., 256х256, 12812, 25632).
See also
Property | Defined 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 | ||
![]() | isUploaded : 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 |
Method | Defined By | ||
---|---|---|---|
BitmapCubeTextureResource(left:BitmapData, right:BitmapData, back:BitmapData, front:BitmapData, bottom:BitmapData, top:BitmapData, leftHanded:Boolean = false)
Creates a new instance of BitmapCubeTextureResource. | BitmapCubeTextureResource | ||
![]() | 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 |
back | property |
public var back:BitmapData
BitmapData
, that will be used as back face.
bottom | property |
public var bottom:BitmapData
BitmapData
, that will be used as bottom face.
front | property |
public var front:BitmapData
BitmapData
, that will be used as front face.
left | property |
public var left:BitmapData
BitmapData
, that will be used as left face.
leftHanded | property |
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.
right | property |
public var right:BitmapData
BitmapData
, that will be used as right face.
top | property |
public var top:BitmapData
BitmapData
, that will be used as top face.
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.
Parametersleft:BitmapData — BitmapData , that will be used as left face.
| |
right:BitmapData — BitmapData , that will be used as right face.
| |
back:BitmapData — BitmapData , that will be used as bottom face.
| |
front:BitmapData — BitmapData , that will be used as top face.
| |
bottom:BitmapData — BitmapData , that will be used as back face.
| |
top:BitmapData — BitmapData , 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.
|
upload | () | method |
override public function upload(context3D:Context3D):void
Uploads resource into given Context3D
.
Parameters
context3D:Context3D — Context3D to which resource will uploaded.
|