Class which includes texture data.
#include <MTextureManager.h>
Public Member Functions |
|
~MTexture () | |
Decrease the reference count of the internal
texture. |
|
void * | resourceHandle () const |
This method allows access to the draw API
dependent handle for a texture. |
|
const MString & | name () const |
Get the name of the texture. |
|
void | textureDescription (MTextureDescription &desc) const |
Get texture description. |
|
Static Public Member Functions |
|
static const char * | className () |
Returns the name of this class. |
~MTexture | ( | ) |
Decrease the reference count of the internal texture.
When the texture is not used by any renderable objects, it will automatically be deleted.
void * resourceHandle | ( | ) | const |
This method allows access to the draw API dependent handle for a texture.
This handle is owned by the renderer and is provided to allow access to use a texture as a read-only object.
Modifications should never be performed on this texture.
Any modifications to the texture may result in unpredictable stability as the renderer no longer has knowledge of the texture contents.
For OpenGL, a pointer to an OpenGL texture identifier is returned.
const MString & name | ( | ) | const |
void textureDescription | ( | MTextureDescription & | desc | ) | const |
const char * className | ( | ) | [static] |