version 3.3

VRS::GL2::EXTSHADER::UberShaderUniformVariable< T > Class Template Reference

#include <vrs/opengl/gl2/us/ubershaderuniformvariable.h>

Inheritance diagram for VRS::GL2::EXTSHADER::UberShaderUniformVariable< T >:

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

List of all members.

Public Member Functions

 UberShaderUniformVariable (const std::string &name, const T &value)
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 (UberShaderUniformVariable, UniformVariableBase)
 VRS_SERIALIZABLE (UberShaderUniformVariable)

Protected Member Functions

 UberShaderUniformVariable (void)


Detailed Description

template<typename T>
class VRS::GL2::EXTSHADER::UberShaderUniformVariable< 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::EXTSHADER::UberShaderUniformVariable< T >::UberShaderUniformVariable ( 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::EXTSHADER::UberShaderUniformVariable< T >::UberShaderUniformVariable ( void   )  [inline, protected]


Member Function Documentation

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

Referes to the name of the variable in the shader.

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

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

Set/get the value of the variable.

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

template<typename T>
VRS::GL2::EXTSHADER::UberShaderUniformVariable< T >::VRS_SERIALIZABLE ( UberShaderUniformVariable< T >   ) 


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

Generated on Sat May 18 06:00:39 2013 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact