List of all members.
Public Types
- enum { target = GLTextureTarget<Dims>::target
}
Public Member Functions
- override void bind (int i=0)
- Sets the active texture unit and calls glBindTexture() .
-
int BitsPerTexel () const
- return bits per texel, if known
-
void disable () const
- Call glDisable()
-
void enable (int i=0)
- Call glEnable()
-
GLTexture (const MemCore::WeakPtr< MemCore::Creature > &C, int textureUnit=0)
- Creation of texture placeholder; does not need to be called from an OpenGL Context.
-
GLuint nElements (int n=0) const
- Return the number of texel elements stored in the nth texture.
-
void setTexParameters (int i=0)
- Sets the texture parameters for the ith texture.
-
const GLuint * Size (int i=0) const
- The dimension of this texture.
- void TexParameterf (GLenum pname, GLfloat param, int i=0)
- Sets an OpenGL texture parameter.
-
void TexParameterf (GLenum pname, const GLfloat *params, int i=0)
-
void TexParameteri (GLenum pname, GLint param, int i=0)
-
void TexParameteri (GLenum pname, const GLint *params, int i=0)
-
~GLTexture ()
- Destructor.
Public Attributes
Protected Member Functions
Protected Attributes
-
int bits_per_texel
-
GLuint Extension [N][Dims]
Member Enumeration Documentation
- Enumerator:
target |
The corresponding OpenGL texture target (GL_TEXTURE_nD)
|
Member Function Documentation
override void Wizt::GLTexture::bind |
( |
int |
i = 0 | ) |
[inline] |
Sets the active texture unit and calls glBindTexture() .
Note that the texture won't be enabled yet for rendering, just bound for subsequent texture operations.
Reimplemented in Wizt::Cubemap.
void Wizt::GLTexture::TexParameterf |
( |
GLenum |
pname, |
|
|
GLfloat |
param, |
|
|
int |
i = 0 |
|
) |
| [inline] |
Sets an OpenGL texture parameter.
- Parameters:
-
pname | Specifies the symbolic name of a single-valued texture parameter. pname can be one of the following: GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, or GL_TEXTURE_PRIORITY. |
- Note:
- Call SelectActiveTextureUnit() before invoking these functions.
Member Data Documentation
Texture wrap parameter, for each texture and texture coordinates.
Initially, those are set to GL_CLAMP. The texture parameters are set by calling setTexParameters().
The documentation for this class was generated from the following file:
- ocean/GLvish/GLTexture.hpp