Package | alternativa.engine3d.resources |
Class | public class BitmapTextureResource |
Inheritance | BitmapTextureResource ![]() ![]() ![]() |
BitmapData
to GPU.
Size of texture must be power of two (e.g., 256х256, 12812, 25632).
See also
Property | Defined By | ||
---|---|---|---|
data : BitmapData
BitmapData
| BitmapTextureResource | ||
![]() | isUploaded : Boolean [override] [read-only]
Defines if this resource is uploaded inti a Context3D. | TextureResource | |
resizeForGPU : Boolean = false | BitmapTextureResource |
Method | Defined By | ||
---|---|---|---|
BitmapTextureResource(data:BitmapData, resizeForGPU:Boolean = false)
Uploads textures from BitmapData to GPU. | BitmapTextureResource | ||
![]() | dispose():void [override]
Removes this resource from Context3D to which it was uploaded. | TextureResource | |
upload(context3D:Context3D):void [override]
Uploads resource into given Context3D. | BitmapTextureResource |
data | property |
public var data:BitmapData
BitmapData
resizeForGPU | property |
public var resizeForGPU:Boolean = false
BitmapTextureResource | () | Constructor |
public function BitmapTextureResource(data:BitmapData, resizeForGPU:Boolean = false)
Uploads textures from BitmapData
to GPU.
data:BitmapData | |
resizeForGPU:Boolean (default = false )
|
upload | () | method |
override public function upload(context3D:Context3D):void
Uploads resource into given Context3D
.
Parameters
context3D:Context3D — Context3D to which resource will uploaded.
|