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

A uniform holding a 3x3 matrix value. More...

#include <Uniform.h>

Inheritance diagram for ork::UniformMatrix3< U, T, V, W >:
ork::UniformMatrix< U, T, 3, 3, V, W > ork::Uniform ork::Object

List of all members.

Public Member Functions

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

Protected Member Functions

 UniformMatrix3 (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::UniformMatrix3< U, T, V, W >

A uniform holding a 3x3 matrix value.


Constructor & Destructor Documentation

template<UniformType U, class T , const char * V, const char * W>
ork::UniformMatrix3< U, T, V, W >::UniformMatrix3 ( 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>
mat3<T> ork::UniformMatrix3< 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::UniformMatrix3< U, T, V, W >::setMatrix ( const mat3< 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