DTor
Compression modes
Supported Texture Format
Binds this Texture. Means this Texture is now activated.
Copy another Texture to this. The second parameter is a pointer to the destination rect. Is it is null this means the whole tex is copied.
Free / Delete the Texture & Memory After this call, the Pixel data is invalid.
Returns the current Compression mode.
Returns the Format.
Returns the pixel of this Texture or null if this Texture isn't valid. If memory is not null and has the same width and height as the Texture, it is used to store the pixel data. Otherwise it <b>allocates</b> GC memory.
Checks whether the current Texture is compressed or not.
Returns true, if this Texture is currently activated.
Returns if repeating is enabled.
Returns if smooth filter are activated.
Returns if the texture is used.
Load from memory.
Set a colorkey.
Rvalue version
(Re)Set the compression mode.
Set repeating for the (next) load.
Set smooth filter for the (next) load.
Rvalue version
Returns a subTexture of this Texture.
Binds this Texture. Means this Texture is now deactivated.
Update the pixel data of this Texture. The second parameter is a pointer to the area which is updated. If it is null (default) the whole Texture will be updated. The third parameter is the format of the pixels.
Returns the Texture Id.
Returns the depth. May often 24 or 32.
Returns the height of this Texture.
Returns the width of this Texture
Returns the currently bound texture id.
A Texture is a 2 dimensional pixel reprasentation. It is a wrapper of an OpenGL Texture.