Package | alternativa.engine3d.resources |
Class | public class TextureResource |
Inheritance | TextureResource ![]() ![]() |
Subclasses | ATFTextureResource, BitmapCubeTextureResource, BitmapTextureResource, ExternalTextureResource |
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
Property | Defined By | ||
---|---|---|---|
isUploaded : Boolean [override] [read-only]
Defines if this resource is uploaded inti a Context3D. | TextureResource |
Method | Defined By | ||
---|---|---|---|
dispose():void [override]
Removes this resource from Context3D to which it was uploaded. | TextureResource | ||
![]() | upload(context3D:Context3D):void
Uploads resource into given Context3D. | Resource |
isUploaded | property |
isUploaded:Boolean
[read-only] [override]
Defines if this resource is uploaded inti a Context3D
.
public function get isUploaded():Boolean
dispose | () | method |
override public function dispose():void
Removes this resource from Context3D
to which it was uploaded.