version 3.3

VRS::GL2::UniformSampler Class Reference

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

Inheritance diagram for VRS::GL2::UniformSampler:

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

List of all members.

Public Member Functions

 UniformSampler (const std::string &name, SO< TextureGL > texture)
SO< GL2::SamplerVariablegetSamplerVariable () const
SO< TextureGLgetTexture () const
SO
< GL2::ShaderTextureUnitSelector
getTextureUnitSelector () const
 VRS_TYPEINFO (UniformSampler, ProgramVariable)
 VRS_SERIALIZABLE (UniformSampler)

Protected Member Functions

 UniformSampler ()

Protected Attributes

SO< GL2::SamplerVariablem_samplerVariable
SO
< GL2::ShaderTextureUnitSelector
m_textureUnitSelector
SO< TextureGLm_texture


Detailed Description

Uniform variables can be used to parameterize shader objects. They can only be modified on a per-object basis. This uniform sampler can be used for common task to set texture objects for an sampler; texture unit selection is automated.

Constructor & Destructor Documentation

VRS::GL2::UniformSampler::UniformSampler ( const std::string &  name,
SO< TextureGL texture 
) [inline]

VRS::GL2::UniformSampler::UniformSampler (  )  [inline, protected]


Member Function Documentation

SO<GL2::SamplerVariable> VRS::GL2::UniformSampler::getSamplerVariable (  )  const [inline]

SO<TextureGL> VRS::GL2::UniformSampler::getTexture (  )  const [inline]

SO<GL2::ShaderTextureUnitSelector> VRS::GL2::UniformSampler::getTextureUnitSelector (  )  const [inline]

VRS::GL2::UniformSampler::VRS_TYPEINFO ( UniformSampler  ,
ProgramVariable   
)

VRS::GL2::UniformSampler::VRS_SERIALIZABLE ( UniformSampler   ) 


Member Data Documentation


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