Packagealternativa.engine3d.resources
Classpublic class ExternalTextureResource
InheritanceExternalTextureResource Inheritance TextureResource Inheritance Resource Inheritance Object

a TextureResource, that uses data from external source (file). Link for this source is specified on instance creation. Used with TexturesLoader, which gets ExternalTextureResource for uploading needed files. Size of texture must be power of two (e.g., 256х256, 12812, 25632).

See also

alternativa.engine3d.loaders.TexturesLoader.loadResource()
alternativa.engine3d.loaders.TexturesLoader.loadResources()


Public Properties
 PropertyDefined By
  data : TextureBase
Resource data, that are get from external resource.
ExternalTextureResource
 InheritedisUploaded : Boolean
[override] [read-only] Defines if this resource is uploaded inti a Context3D.
TextureResource
  url : String
URL-path to texture.
ExternalTextureResource
Public Methods
 MethodDefined By
  
ExternalTextureResource
 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.
ExternalTextureResource
Property Detail
dataproperty
data:TextureBase

Resource data, that are get from external resource.


Implementation
    public function get data():TextureBase
    public function set data(value:TextureBase):void
urlproperty 
public var url:String

URL-path to texture.

Constructor Detail
ExternalTextureResource()Constructor
public function ExternalTextureResource(url:String)

Parameters
url:String — Adress of texture.
Method Detail
upload()method
override public function upload(context3D:Context3D):void

Uploads resource into given Context3D.

Parameters

context3D:Context3DContext3D to which resource will uploaded.