OpenGL::SecondaryTextureContainer Class Reference

#include <SecondaryTextureContainer.h>

Inheritance diagram for OpenGL::SecondaryTextureContainer:

OpenGL::TextureContainer List of all members.

Public Member Functions

 SecondaryTextureContainer (IoTextureSet *textureSet, unsigned int viewportX, unsigned int viewportY, unsigned int viewportWidth, unsigned int viewportHeight)
 SecondaryTextureContainer (IoTextureSet *textureSet)

Private Member Functions

GLenum getActiveTarget () const
unsigned int getActiveWidth () const
unsigned int getActiveHeight () const
GLenum getTarget (unsigned int textureNumber) const
unsigned int getWidth (unsigned int textureNumber) const
unsigned int getHeight (unsigned int textureNumber) const
void handleTextureActivation (unsigned int textureNumber)

Detailed Description

Contains a set of secondary textures from an IoTextureSet and displays one of them on the screen.


Constructor & Destructor Documentation

OpenGL::SecondaryTextureContainer::SecondaryTextureContainer IoTextureSet textureSet,
unsigned int  viewportX,
unsigned int  viewportY,
unsigned int  viewportWidth,
unsigned int  viewportHeight
 

Initializes the SecondaryTextureContainer based on the given IoTextureSet and viewport dimensions.

Parameters:
textureSet the given IoTextureSet.
viewportX the left position of the viewport.
viewportY the top position of the viewport.
viewportWidth the width of the viewport.
viewportHeight the height of the viewport.

OpenGL::SecondaryTextureContainer::SecondaryTextureContainer IoTextureSet textureSet  ) 
 

Initializes the SecondaryTextureContainer based on the given IoTextureSet, and the current OpenGL viewport coordinates.

Parameters:
textureSet the given IoTextureSet.


Member Function Documentation

unsigned int OpenGL::SecondaryTextureContainer::getActiveHeight  )  const [private, virtual]
 

Gets the height of the active texture(s).

Returns:
the height of the active texture(s).

Implements OpenGL::TextureContainer.

GLenum OpenGL::SecondaryTextureContainer::getActiveTarget  )  const [private, virtual]
 

Gets the texture target of the active texture(s).

Returns:
the texture target of the active texture(s).

Implements OpenGL::TextureContainer.

unsigned int OpenGL::SecondaryTextureContainer::getActiveWidth  )  const [private, virtual]
 

Gets the width of the active texture(s).

Returns:
the width of the active texture(s).

Implements OpenGL::TextureContainer.

unsigned int OpenGL::SecondaryTextureContainer::getHeight unsigned int  textureNumber  )  const [private, virtual]
 

Gets the height of the given texture.

Parameters:
textureNumber the number of the given texture.
Returns:
the height of the active texture(s).

Implements OpenGL::TextureContainer.

GLenum OpenGL::SecondaryTextureContainer::getTarget unsigned int  textureNumber  )  const [private, virtual]
 

Gets the texture target of the given texture.

Parameters:
textureNumber the number of the given texture.
Returns:
the texture target of the given texture.

Implements OpenGL::TextureContainer.

unsigned int OpenGL::SecondaryTextureContainer::getWidth unsigned int  textureNumber  )  const [private, virtual]
 

Gets the width of the given texture.

Parameters:
textureNumber the number of the given texture.
Returns:
the width of the given texture.

Implements OpenGL::TextureContainer.

void OpenGL::SecondaryTextureContainer::handleTextureActivation unsigned int  textureNumber  )  [private, virtual]
 

Called whenever the given texture is activated.

Parameters:
textureNumber the number of the given texture.

Implements OpenGL::TextureContainer.


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 08:42:53 2006 for GPU Thesis by  doxygen 1.4.6-NO