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