version 3.3

VRS::GL2::ShaderTextureUnitSelector Class Reference

Class for selecting texture units for GL2 shaders. More...

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

Inheritance diagram for VRS::GL2::ShaderTextureUnitSelector:

VRS::TextureUnitSelectorGL VRS::MonoAttribute VRS::Attribute VRS::RenderObj VRS::SharedObj VRS::Visitable

List of all members.

Public Types

enum  TextureTarget { VertexShader = 0, FragmentShader = 1, Combined = 2 }
 TextureTarget enables resource checking. More...

Public Member Functions

 VRS_SERIALIZABLE_CLASS_ENUM (TextureTarget)
 ShaderTextureUnitSelector (unsigned int unit=0, TextureTarget textureTarget=Combined)
 Specify the shader texture unit.
bool operator== (const ShaderTextureUnitSelector &other) const
 Get the texture target.
unsigned int getTextureTarget (void) const
 Set the texture target.
void setTextureTarget (TextureTarget textureTarget)
 VRS_TYPEINFO (ShaderTextureUnitSelector, TextureUnitSelectorGL)
 VRS_SERIALIZABLE (ShaderTextureUnitSelector)


Detailed Description

Class for selecting texture units for GL2 shaders.

< Through the limitations of the class TextureUnitSelectorGL which number of maximal texture units is bound to GL_ARB_multitexture this class support explicite texture selection for GL2 Shaders.


Member Enumeration Documentation

TextureTarget enables resource checking.

Enumerator:
VertexShader  Set as explicite vertex texture unit.
FragmentShader  Set as explicite fragment texture unit.
Combined  Set as combined texture unit (used in vertex as well as fragment shader).


Constructor & Destructor Documentation

VRS::GL2::ShaderTextureUnitSelector::ShaderTextureUnitSelector ( unsigned int  unit = 0,
TextureTarget  textureTarget = Combined 
)

Specify the shader texture unit.


Member Function Documentation

VRS::GL2::ShaderTextureUnitSelector::VRS_SERIALIZABLE_CLASS_ENUM ( TextureTarget   ) 

bool VRS::GL2::ShaderTextureUnitSelector::operator== ( const ShaderTextureUnitSelector other  )  const

Get the texture target.

unsigned int VRS::GL2::ShaderTextureUnitSelector::getTextureTarget ( void   )  const [inline]

Set the texture target.

void VRS::GL2::ShaderTextureUnitSelector::setTextureTarget ( TextureTarget  textureTarget  ) 

VRS::GL2::ShaderTextureUnitSelector::VRS_TYPEINFO ( ShaderTextureUnitSelector  ,
TextureUnitSelectorGL   
)

VRS::GL2::ShaderTextureUnitSelector::VRS_SERIALIZABLE ( ShaderTextureUnitSelector   ) 


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