| Package | alternativa.engine3d.resources |
| Class | public class ExternalTextureResource |
| Inheritance | ExternalTextureResource TextureResource Resource Object |
TexturesLoader, which gets ExternalTextureResource for uploading needed files.
Size of texture must be power of two (e.g., 256х256, 12812, 25632).
See also
| Property | Defined By | ||
|---|---|---|---|
| data : TextureBase
Resource data, that are get from external resource. | ExternalTextureResource | ||
![]() | isUploaded : Boolean [override] [read-only]
Defines if this resource is uploaded inti a Context3D. | TextureResource | |
| url : String
URL-path to texture. | ExternalTextureResource | ||
| Method | Defined By | ||
|---|---|---|---|
ExternalTextureResource(url:String) | ExternalTextureResource | ||
![]() | dispose():void [override]
Removes this resource from Context3D to which it was uploaded. | TextureResource | |
upload(context3D:Context3D):void [override]
Uploads resource into given Context3D. | ExternalTextureResource | ||
| data | property |
data:TextureBaseResource data, that are get from external resource.
public function get data():TextureBase public function set data(value:TextureBase):void| url | property |
public var url:StringURL-path to texture.
| ExternalTextureResource | () | Constructor |
public function ExternalTextureResource(url:String)Parameters
url:String — Adress of texture.
|
| upload | () | method |
override public function upload(context3D:Context3D):void
Uploads resource into given Context3D.
Parameters
context3D:Context3D — Context3D to which resource will uploaded.
|