VISH  0.2
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
Wizt::GLTexture Class Reference

List of all members.

Public Types

Public Member Functions

Public Attributes

Protected Member Functions

Protected Attributes


Member Enumeration Documentation

anonymous enum
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:
pnameSpecifies 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: