VISH  0.2
Public Member Functions | Public Attributes
Wizt::TextureBase Struct Reference

Base class for OpenGL Texture ID's. More...

#include </home/werner/origo/vish/ocean/GLvish/TextureID.hpp>

List of all members.

Public Member Functions

Public Attributes


Detailed Description

Base class for OpenGL Texture ID's.

Supports multiple active texture units as specified in OpenGL 2.


Constructor & Destructor Documentation

Wizt::TextureBase::TextureBase ( const MemCore::WeakPtr< MemCore::Creature > &  C,
int  textureID = 0 
) throw () [inline]

Constructor, specify texture unit (optional, by default 0)

Parameters:
Cthe responsible Creator object

Member Function Documentation

bool Wizt::TextureBase::SelectActiveTextureUnit ( ) const

Activate the associated texture unit Return false if run with an OpenGL version that does not support multiple texture units (pre 2.0) Calls glActiveTexture.

See also:
http://www.opengl.org/sdk/docs/man/xhtml/glActiveTexture.xml
bool Wizt::TextureBase::setActiveTexture ( int  textureID)

Associate a texture unit with this texture ID which relates to glActiveTexture(), as to be invoked via activate().

Note:
This is an initialization call and must only be called shortly after construction of the texture object, before any OpenGL texture calls are performed. This function only sets the internal texture ID, and does not require any OpenGL context, like the constructor.

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