Packagealternativa.engine3d.core
Classpublic class Resource
InheritanceResource Inheritance Object
Subclasses Geometry, TextureResource

Base class for GPU data. GPU data can be divided in 2 groups: geometry data and texture data. The type of resources for uploading geometry data in GPU is Geometry. 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

alternativa.engine3d.resources.Geometry
alternativa.engine3d.resources.TextureResource
alternativa.engine3d.resources.BitmapTextureResource
alternativa.engine3d.resources.ATFTextureResource
alternativa.engine3d.resources.ExternalTextureResource


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

Defines if this resource is uploaded inti a Context3D.


Implementation
    public function get isUploaded():Boolean
Method Detail
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:Context3DContext3D to which resource will uploaded.