MPMA Framework 0.4
Public Member Functions
GFX::TextureBase Class Reference

Base class for the other texture classes. More...

#include <Texture.h>

Inheritance diagram for GFX::TextureBase:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

Base class for the other texture classes.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends