Flow Visualisation
render::Uniform Class Reference

Represents a shader uniform and allows setting of variables. More...

#include <Shader.h>

Public Member Functions

 Uniform (void)
 the uniform loaction More...
 
 Uniform (GLint uniformLocation)
 
 ~Uniform (void)
 
void set1i (const int)
 
void set1f (const float)
 
void set2f (const float, const float)
 
void set3fv (const glm::vec3 *, int num=1)
 
void set4fv (const glm::vec4 *, int num=1)
 
void set3x3fv (const glm::mat3 *, int num=1)
 
void set3x3fv (const glm::mat4 *, int num=1)
 
void set4x4fv (const glm::mat4 *, int num=1)
 

Detailed Description

Represents a shader uniform and allows setting of variables.

Constructor & Destructor Documentation

Uniform::Uniform ( void  )

the uniform loaction

Uniform::Uniform ( GLint  uniformLocation)
Uniform::~Uniform ( void  )

Member Function Documentation

void Uniform::set1f ( const float  value)
void Uniform::set1i ( const int  value)
void Uniform::set2f ( const float  value1,
const float  value2 
)
void Uniform::set3fv ( const glm::vec3 values,
int  num = 1 
)
void Uniform::set3x3fv ( const glm::mat3 values,
int  num = 1 
)
void Uniform::set3x3fv ( const glm::mat4 values,
int  num = 1 
)
void Uniform::set4fv ( const glm::vec4 values,
int  num = 1 
)
void Uniform::set4x4fv ( const glm::mat4 values,
int  num = 1 
)

The documentation for this class was generated from the following files: