Flow Visualisation
render::Texture Class Reference

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...
 

Detailed Description

Represents OpenGL texture.

Constructor & Destructor Documentation

render::Texture::Texture ( )
inline

opengl texture number

Texture::~Texture ( )

Member Function Documentation

void Texture::createGlTexture ( )

Creates OpenGL Texture from pixel data Texture must be loaded before running this method.

void Texture::loadTexture ( const char *  file)

Loads Texture data from image file.

Parameters
filefilename of image file
void Texture::setActive ( )

Set this texture active as Texture 0 GL Texture must be created before running this method.

void Texture::setActive ( GLenum  target)

Sets this texture active as "target".

Parameters
targetThe OpenGL texture number

The documentation for this class was generated from the following files: