#include <ovunivar.h>
Inherits OV::OVUniVar.
Public Member Functions | |
OVUniVari (const char *name, int *source) | |
Constructor for UniVari. | |
void | Update () |
Updates the value of the uniform. | |
Private Attributes | |
int * | m_source |
This class encapsulates uniform integer variables used in shaders. It inherits from OVUniVar.
OV::OVUniVari::OVUniVari | ( | const char * | name, | |
int * | source | |||
) |
Constructor for UniVari.
Sets name and source values.
name | the variable name in shader program. | |
source | pointer to data. |
void OV::OVUniVari::Update | ( | ) | [virtual] |
int* OV::OVUniVari::m_source [private] |
Pointer to the data source