OpenGL::TextureSelector Class Reference

#include <TextureContainerActions.h>

Inheritance diagram for OpenGL::TextureSelector:

OpenGL::TextureContainerAction Console::Action List of all members.

Public Member Functions

 TextureSelector (TextureContainer *container)
std::string run (const std::vector< std::string > &parameters)

Detailed Description

Represents texture selector actions for a specified TextureContainer instance.

The run() function can be called with the following arguments:
"activate <texture>" - calls activateTexture().
"deactivate <texture>" - calls deactivateTexture().
"toggle <texture>" - calls activateTexture() if deactivated and vice versa.

<texture> must be a valid texture number of the TextureContainer instance.


Constructor & Destructor Documentation

OpenGL::TextureSelector::TextureSelector TextureContainer container  ) 
 

Creates a TextureSelector for the given TextureContainer.

Parameters:
container the TextureContainer to affect.


Member Function Documentation

std::string OpenGL::TextureSelector::run const std::vector< std::string > &  parameters  )  [virtual]
 

Implementation of handle, must be supplied by concrete subclasses.

Parameters:
parameters the action's parameters.
Returns:
the result of the action.

Implements Console::Action.


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