Main Page | Class Hierarchy | Class List | Directories | File List

Texture Class Reference

This class represents an OpenGL texture (1D, 2D, 3D, cube-map). More...

#include <ApiGraphics/Texture.h>

List of all members.

Public Member Functions

 Texture (GLuint id, GLenum texMode)
 Texture (const TextureData *texData, GLenum interpMode=GL_NEAREST, GLenum wrapMode=GL_CLAMP)
 Texture (GLenum texMode, GLenum interpMode=GL_NEAREST, GLenum wrapMode=GL_CLAMP)
void load ()
void load (GLint internalFormat)
bool isLoaded () const
void activate () const
void deactivate () const
void destroy ()
void activate (int texNum) const
void deactivate (int texNum) const
void setInterpMode (GLenum interpMode)
void setWrapMode (GLenum wrapMode)
void setBorderColor (const float *color) const
void setBorderColor (float r, float g, float b, float a=1) const
GLuint getID () const
GLenum getMode () const
void copyReadBuffer (GLenum internalFormat, int w, int h, int x=0, int y=0)
void bind () const
int getParam (GLenum paramName) const
int getLevelParam (GLenum paramName, int level=0) const
int getLevelParam (int target, GLenum paramName, int level=0) const
int getWidth () const
int getHeight () const
int getDepth () const
Dim2D renderSize (int level=0) const
Dim2D renderSize (GLenum target, int level=0) const

Static Public Member Functions

static Texture createTex1D (int w, GLint internalFormat=GL_RGBA, GLenum interpMode=GL_NEAREST, GLenum wrapMode=GL_CLAMP)
static Texture createTex2D (int w, int h, GLint internalFormat=GL_RGBA, GLenum interpMode=GL_NEAREST, GLenum wrapMode=GL_CLAMP)
static Texture createTex3D (int w, int h, int d, GLint internalFormat=GL_RGBA, GLenum interpMode=GL_NEAREST, GLenum wrapMode=GL_CLAMP)
static Texture createTexCube (int n, GLint internalFormat=GL_RGBA, GLenum interpMode=GL_NEAREST, GLenum wrapMode=GL_CLAMP)


Detailed Description

This class represents an OpenGL texture (1D, 2D, 3D, cube-map).


The documentation for this class was generated from the following files:
Generated on Fri Nov 14 20:49:48 2008 for Api Graphics by  doxygen 1.4.4