MPMA Framework 0.4
|
Base class for the other texture classes. More...
#include <Texture.h>
Public Member Functions | |
bool | Create () |
Creates an empty texture object. | |
void | Free () |
Frees the texture object. | |
const nuint & | OriginalWidth () const |
Retrieves the width of the original texture. | |
const nuint & | OriginalHeight () const |
Retrieves the height of the original texture. | |
bool | CreateFromFile (const MPMA::Filename &filename, const TextureCreateParameters *properties=0) |
Creates a texture from a file. | |
bool | CreateFromMemory (void *sourceData, const TextureCreateParameters *properties, GLint pixelFormat=GL_RGBA, GLenum pixelSize=GL_UNSIGNED_BYTE, GLenum usage=GL_STATIC_DRAW) |
Creates a texture from data in memory. | |
void | BindAndSetState (int stage) |
Binds the texture and sets it to a texture stage. | |
void | Unbind (int stage) |
Unbinds the texture and clears it from a texture stage. |
Base class for the other texture classes.