UniVar Class Reference

Class that handles uniform variables. More...

#include <univar.h>

Inherited by UniVar16fm, UniVar3fv, UniVar4fv, UniVar9fm, UniVarf, and UniVari.


Public Member Functions

 UniVar ()
 Constructor for Univar.
virtual ~UniVar ()
 Destructor for Univar.
virtual void UpdateLocation (GLuint program)
 Updates the uniform location.
virtual void Update ()
 Updates the value of the uniform.

Protected Attributes

char * m_name
GLint m_location


Detailed Description

Class that handles uniform variables.

This class is only used as base class for the real UniVar classes. Templates can not be used because different GL-functions are used to pass parameters to GLSL.


Constructor & Destructor Documentation

UniVar::UniVar (  ) 

Constructor for Univar.

UniVar::~UniVar (  )  [virtual]

Destructor for Univar.

Deletes name.


Member Function Documentation

void UniVar::UpdateLocation ( GLuint  program  )  [virtual]

Updates the uniform location.

Gets the uniform location in shader program and stores it in m_location.

void UniVar::Update (  )  [virtual]

Updates the value of the uniform.

Reimplemented in UniVari, UniVarf, UniVar3fv, UniVar9fm, UniVar4fv, and UniVar16fm.


Field Documentation

char* UniVar::m_name [protected]

Name of the shader program

GLint UniVar::m_location [protected]

Location of the variable whitin the program


The documentation for this class was generated from the following files:
Generated on Thu May 17 20:28:04 2007 for Ocean View by  doxygen 1.5.2