ork::UniformMatrix4< U, T, V, W > Class Template Reference
[render]

A uniform holding a 4x4 matrix value. More...

#include <Uniform.h>

Inheritance diagram for ork::UniformMatrix4< U, T, V, W >:
ork::UniformMatrix< U, T, 4, 4, V, W > ork::Uniform ork::Object

List of all members.

Public Member Functions

mat4< T > getMatrix () const
 Returns the current value of this uniform.
void setMatrix (const mat4< T > &value)
 Sets the value of this uniform.

Protected Member Functions

 UniformMatrix4 (Program *program, UniformBlock *block, const string &name, GLint location, int stride, int isRowMajor)
 Creates a new uniform.

Detailed Description

template<UniformType U, class T, const char * V, const char * W>
class ork::UniformMatrix4< U, T, V, W >

A uniform holding a 4x4 matrix value.


Constructor & Destructor Documentation

template<UniformType U, class T , const char * V, const char * W>
ork::UniformMatrix4< U, T, V, W >::UniformMatrix4 ( Program program,
UniformBlock block,
const string &  name,
GLint  location,
int  stride,
int  isRowMajor 
) [inline, protected]

Creates a new uniform.

Parameters:
program the Program to which this uniform belongs.
block UniformBlock to which this uniform belongs. Maybe NULL.
name the name of the uniform in the GLSL shader code.
location the location of this uniform. For an uniform inside a block, this location is an offset inside the uniform block buffer.
stride the stride between two consecutive rows or columns when this uniform is stored in an uniform block.
isRowMajor true if this uniform is stored in row major order in an uniform block.

Member Function Documentation

template<UniformType U, class T , const char * V, const char * W>
mat4<T> ork::UniformMatrix4< U, T, V, W >::getMatrix (  )  const [inline]

Returns the current value of this uniform.

template<UniformType U, class T , const char * V, const char * W>
void ork::UniformMatrix4< U, T, V, W >::setMatrix ( const mat4< T > &  value  )  [inline]

Sets the value of this uniform.

Parameters:
value the new value for this uniform.

Generated on Mon Oct 18 09:36:10 2010 for ork by  doxygen 1.6.1