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