|
Flow Visualisation
|
Represents OpenGL texture. More...
#include <Texture.h>
Public Member Functions | |
| Texture () | |
| opengl texture number More... | |
| ~Texture () | |
| void | loadTexture (const char *file) |
| Loads Texture data from image file. More... | |
| void | createGlTexture () |
| Creates OpenGL Texture from pixel data Texture must be loaded before running this method. More... | |
| void | setActive () |
| Set this texture active as Texture 0 GL Texture must be created before running this method. More... | |
| void | setActive (GLenum target) |
| Sets this texture active as "target". More... | |
Represents OpenGL texture.
|
inline |
opengl texture number
| Texture::~Texture | ( | ) |
| void Texture::createGlTexture | ( | ) |
| void Texture::loadTexture | ( | const char * | file | ) |
Loads Texture data from image file.
| file | filename of image file |
| void Texture::setActive | ( | ) |
| void Texture::setActive | ( | GLenum | target | ) |
Sets this texture active as "target".
| target | The OpenGL texture number |