#include <TexturePainter.h>
Collaboration diagram for Fluxus::TexturePainter:
Public Member Functions | |
void | Initialise () |
Initialise all texture units. | |
void | ClearCache () |
Clear the texture cache. | |
Texture Generation/Conversion | |
unsigned int | LoadTexture (const string &Filename, CreateParams ¶ms) |
Loads a texture returns the OpenGL ID number. | |
bool | LoadPData (const string &Filename, unsigned int &w, unsigned int &h, TypedPData< dColour > &pixels) |
Loads texture information into a pdata array of colour type. | |
unsigned int | MakeTexture (unsigned int w, unsigned int h, PData *data) |
Uploads texture data from pdata - returns OpenGL ID number. | |
State control | |
Controls the texture rendering state | |
bool | SetCurrent (unsigned int *ids, TextureState *states) |
void | DisableAll () |
Disables all texturing. | |
Static Public Member Functions | |
static TexturePainter * | Get () |
static void | Shutdown () |
Data Structures | |
class | CreateParams |
class | CubeMapDesc |
class | TextureDesc |
Definition at line 62 of file TexturePainter.h.
static TexturePainter* Fluxus::TexturePainter::Get | ( | ) | [inline, static] |
static void Fluxus::TexturePainter::Shutdown | ( | ) | [inline, static] |
Definition at line 72 of file TexturePainter.h.
void TexturePainter::Initialise | ( | ) |
void TexturePainter::ClearCache | ( | ) |
unsigned int TexturePainter::LoadTexture | ( | const string & | Filename, | |
CreateParams & | params | |||
) |
bool TexturePainter::LoadPData | ( | const string & | Filename, | |
unsigned int & | w, | |||
unsigned int & | h, | |||
TypedPData< dColour > & | pixels | |||
) |
Loads texture information into a pdata array of colour type.
Definition at line 215 of file TexturePainter.cpp.
unsigned int TexturePainter::MakeTexture | ( | unsigned int | w, | |
unsigned int | h, | |||
PData * | data | |||
) |
Uploads texture data from pdata - returns OpenGL ID number.
Definition at line 261 of file TexturePainter.cpp.
bool TexturePainter::SetCurrent | ( | unsigned int * | ids, | |
TextureState * | states | |||
) |
Sets the current texture state - allow settings for each unit if multitexturing is enabled. The size of ids is expexted to be the same as MAX_TEXTURES
Definition at line 276 of file TexturePainter.cpp.
void TexturePainter::DisableAll | ( | ) |