| Package | alternativa.engine3d.core |
| Class | public class Resource |
| Inheritance | Resource Object |
| Subclasses | Geometry, TextureResource |
BitmapTextureResource allows to use textures of type is BitmapData and ATFTextureResource deals with ByteArray consists of ATF data,
ExternalTextureResource should be used with TexturesLoader, which loads textures from files and automatically uploads in GPU.
See also
| Property | Defined By | ||
|---|---|---|---|
| isUploaded : Boolean [read-only]
Defines if this resource is uploaded inti a Context3D. | Resource | ||
| Method | Defined By | ||
|---|---|---|---|
dispose():void
Removes this resource from Context3D to which it was uploaded. | Resource | ||
upload(context3D:Context3D):void
Uploads resource into given Context3D. | Resource | ||
| isUploaded | property |
isUploaded:Boolean [read-only]
Defines if this resource is uploaded inti a Context3D.
public function get isUploaded():Boolean| dispose | () | method |
public function dispose():void
Removes this resource from Context3D to which it was uploaded.
| upload | () | method |
public function upload(context3D:Context3D):void
Uploads resource into given Context3D.
Parameters
context3D:Context3D — Context3D to which resource will uploaded.
|