Packagealternativa.engine3d.resources
Classpublic class TextureResource
InheritanceTextureResource Inheritance Resource Inheritance Object
Subclasses ATFTextureResource, BitmapCubeTextureResource, BitmapTextureResource, ExternalTextureResource

Base resource for texture resources, that can be uploaded into the video memory. BitmapTextureResource and ATFTextureResource allows user to upload textures into the video memory from BitmapData and ATF format accordingly. ExternalTextureResource should be used with TexturesLoader, that uploads textures from files and automatically puts them into the video memory. Size of texture must be power of two (e.g., 256х256, 12812, 25632).

See also

alternativa.engine3d.resources.BitmapTextureResource
alternativa.engine3d.resources.ATFTextureResource
alternativa.engine3d.resources.ExternalTextureResource


Public Properties
 PropertyDefined By
  isUploaded : Boolean
[override] [read-only] Defines if this resource is uploaded inti a Context3D.
TextureResource
Public Methods
 MethodDefined By
  
dispose():void
[override] Removes this resource from Context3D to which it was uploaded.
TextureResource
 Inherited
upload(context3D:Context3D):void
Uploads resource into given Context3D.
Resource
Property Detail
isUploadedproperty
isUploaded:Boolean  [read-only] [override]

Defines if this resource is uploaded inti a Context3D.


Implementation
    public function get isUploaded():Boolean
Method Detail
dispose()method
override public function dispose():void

Removes this resource from Context3D to which it was uploaded.