#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 |
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.
OV::OVUniVar::OVUniVar | ( | ) |
Constructor for Univar.
OV::OVUniVar::~OVUniVar | ( | ) | [virtual] |
Destructor for Univar.
Deletes name.
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.
char* OV::OVUniVar::m_name [protected] |
Name of the shader program
GLint OV::OVUniVar::m_location [protected] |
Location of the variable whithin the program