version 3.3

VRS::GL2::UniformVariable< T > Class Template Reference

#include <vrs/opengl/gl2/uniformvariable.h>

Inheritance diagram for VRS::GL2::UniformVariable< T >:

VRS::GL2::UniformVariableBase VRS::GL2::ProgramVariable VRS::MonoAttribute VRS::Attribute VRS::RenderObj VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 UniformVariable (const std::string &name, const T &value)
bool operator== (const UniformVariable< T > &other) const
virtual std::string name () const
 Referes to the name of the variable in the shader.
virtual const T & getValue () const
virtual void setValue (const T &newValue)
 Set/get the value of the variable.
 VRS_TYPEINFO (UniformVariable, UniformVariableBase)
 VRS_SERIALIZABLE (UniformVariable)

Protected Member Functions

 UniformVariable ()


Detailed Description

template<typename T>
class VRS::GL2::UniformVariable< T >

Uniform vaiables can be used to parameterize shader objects. They can only be modified on a per-object basis.

Constructor & Destructor Documentation

template<typename T>
VRS::GL2::UniformVariable< T >::UniformVariable ( const std::string &  name,
const T &  value 
) [inline]

Uniform variables provide a way to access and modify uniform variables of a shader program on a per-object basis. They are referenced by their name.

template<typename T>
VRS::GL2::UniformVariable< T >::UniformVariable (  )  [inline, protected]


Member Function Documentation

template<typename T>
bool VRS::GL2::UniformVariable< T >::operator== ( const UniformVariable< T > &  other  )  const [inline]

template<typename T>
virtual std::string VRS::GL2::UniformVariable< T >::name (  )  const [inline, virtual]

Referes to the name of the variable in the shader.

template<typename T>
virtual const T& VRS::GL2::UniformVariable< T >::getValue (  )  const [inline, virtual]

template<typename T>
virtual void VRS::GL2::UniformVariable< T >::setValue ( const T &  newValue  )  [inline, virtual]

Set/get the value of the variable.

template<typename T>
VRS::GL2::UniformVariable< T >::VRS_TYPEINFO ( UniformVariable< T >  ,
UniformVariableBase   
)

template<typename T>
VRS::GL2::UniformVariable< T >::VRS_SERIALIZABLE ( UniformVariable< T >   ) 


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

Generated on Mon May 21 06:00:32 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact