Public Member Functions

Uniform Class Reference

Class representing an uniform /// parameter of a shader program. More...

#include <Shader.h>

List of all members.

Public Member Functions

 Uniform (void)
 Uniform (GLint uniformLocation)
 Contructor. /// uniformLocation Location of the uniform parameter in the program.
 Uniform (const Uniform &)
 Copy-constructor.
 ~Uniform (void)
 Destructor.
void set1i (const int)
 Set uniform parameter. /// Note: The rights shader program has to be bound.
void set1f (const float)
 Set uniform parameter. /// Note: The rights shader program has to be bound.
void set2f (const float, const float)
 Set uniform parameter. /// Note: The rights shader program has to be bound.
void set3fv (const float3 *, int num=1)
 Set uniform parameter. /// Note: The rights shader program has to be bound.
void set4fv (const float4 *, int num=1)
 Set uniform parameter. /// Note: The rights shader program has to be bound.
void set3x3fv (const float3x3 *, int num=1)
 Set uniform parameter. /// Note: The rights shader program has to be bound.
void set4x4fv (const float4x4 *, int num=1)
 Set uniform parameter. /// Note: The rights shader program has to be bound.

Detailed Description

Class representing an uniform /// parameter of a shader program.

Definition at line 9 of file Shader.h.


Constructor & Destructor Documentation

Uniform::Uniform ( void   ) 

Definition at line 6 of file Shader.cpp.

Uniform::Uniform ( GLint  uniformLocation  ) 

Contructor. /// uniformLocation Location of the uniform parameter in the program.

Definition at line 11 of file Shader.cpp.

Uniform::Uniform ( const Uniform other  ) 

Copy-constructor.

Definition at line 18 of file Shader.cpp.

Uniform::~Uniform ( void   ) 

Destructor.

Definition at line 23 of file Shader.cpp.


Member Function Documentation

void Uniform::set1f ( const float  value  ) 

Set uniform parameter. /// Note: The rights shader program has to be bound.

Definition at line 32 of file Shader.cpp.

void Uniform::set1i ( const int  value  ) 

Set uniform parameter. /// Note: The rights shader program has to be bound.

Definition at line 27 of file Shader.cpp.

void Uniform::set2f ( const float  value1,
const float  value2 
)

Set uniform parameter. /// Note: The rights shader program has to be bound.

Definition at line 37 of file Shader.cpp.

void Uniform::set3fv ( const float3 values,
int  num = 1 
)

Set uniform parameter. /// Note: The rights shader program has to be bound.

Definition at line 42 of file Shader.cpp.

void Uniform::set3x3fv ( const float3x3 values,
int  num = 1 
)

Set uniform parameter. /// Note: The rights shader program has to be bound.

Definition at line 52 of file Shader.cpp.

void Uniform::set4fv ( const float4 values,
int  num = 1 
)

Set uniform parameter. /// Note: The rights shader program has to be bound.

Definition at line 47 of file Shader.cpp.

void Uniform::set4x4fv ( const float4x4 values,
int  num = 1 
)

Set uniform parameter. /// Note: The rights shader program has to be bound.

Definition at line 57 of file Shader.cpp.


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