OV::OVUniVar Class Reference

Class that handles uniform variables. More...

#include <ovunivar.h>

Inherited by OV::OVUniVar16fm, OV::OVUniVar2fv, OV::OVUniVar3fv, OV::OVUniVar4fv, OV::OVUniVar9fm, OV::OVUniVarf, and OV::OVUniVari.


Public Member Functions

 OVUniVar ()
 Constructor for Univar.
virtual ~OVUniVar ()
 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

OV::OVUniVar::OVUniVar (  ) 

Constructor for Univar.

OV::OVUniVar::~OVUniVar (  )  [virtual]

Destructor for Univar.

Deletes name.


Member Function Documentation

void OV::OVUniVar::UpdateLocation ( GLuint  program  )  [virtual]

Updates the uniform location.

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

void OV::OVUniVar::Update (  )  [virtual]

Updates the value of the uniform.

Reimplemented in OV::OVUniVari, OV::OVUniVarf, OV::OVUniVar2fv, OV::OVUniVar3fv, OV::OVUniVar9fm, OV::OVUniVar4fv, and OV::OVUniVar16fm.


Field Documentation

char* OV::OVUniVar::m_name [protected]

Name of the shader program

GLint OV::OVUniVar::m_location [protected]

Location of the variable whithin 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