version 3.3

VRS::TextureUnitSettingGL Class Reference

Attribute class to encapsualte a single texture application. More...

#include <vrs/opengl/textureunitsettinggl.h>

Inheritance diagram for VRS::TextureUnitSettingGL:

VRS::MonoAttribute VRS::Attribute VRS::RenderObj VRS::SharedObj VRS::Visitable VRS::ProjectiveTextureGL

List of all members.

Public Member Functions

 TextureUnitSettingGL (unsigned int unit, TextureGL *tex, TexEnvGL *env=0, TexGenGL *gen=0)
bool operator== (const TextureUnitSettingGL &other) const
unsigned int getUnit () const
void setUnit (unsigned int)
TextureUnitSelectorGLgetUnitSelector () const
 Designated texture unit of the texture application.
void setTexture (TextureGL *texture)
TextureGLgetTexture () const
 Texture for the texture application.
void setEnvironment (TexEnvGL *env)
TexEnvGLgetEnvironment () const
 Texture environment used for texturing.
void setCoordGeneration (TexGenGL *gen)
TexGenGLgetCoordGeneration () const
 Texture coordinate generation used for texturing.
 VRS_TYPEINFO (TextureUnitSettingGL, MonoAttribute)
 VRS_SERIALIZABLE (TextureUnitSettingGL)

Protected Member Functions

 TextureUnitSettingGL ()
virtual void acceptChildren (std::vector< Visitable * > &appendChildrenHere) const


Detailed Description

Attribute class to encapsualte a single texture application.

Constructor & Destructor Documentation

VRS::TextureUnitSettingGL::TextureUnitSettingGL ( unsigned int  unit,
TextureGL tex,
TexEnvGL env = 0,
TexGenGL gen = 0 
)

A single texture application contains a texture, texture coordiante generation and texture environment for a certain texture unit. This class is mainly meant to assemble texture related attributes and, therefore, simplify texture usage. Furthermore, classes can derive from this class to implement texture mapping techniques like: projective texturing or 1D depth texture.

VRS::TextureUnitSettingGL::TextureUnitSettingGL (  )  [protected]


Member Function Documentation

bool VRS::TextureUnitSettingGL::operator== ( const TextureUnitSettingGL other  )  const

unsigned int VRS::TextureUnitSettingGL::getUnit (  )  const [inline]

void VRS::TextureUnitSettingGL::setUnit ( unsigned  int  ) 

TextureUnitSelectorGL * VRS::TextureUnitSettingGL::getUnitSelector (  )  const [inline]

Designated texture unit of the texture application.

void VRS::TextureUnitSettingGL::setTexture ( TextureGL texture  ) 

TextureGL * VRS::TextureUnitSettingGL::getTexture (  )  const [inline]

Texture for the texture application.

void VRS::TextureUnitSettingGL::setEnvironment ( TexEnvGL env  ) 

TexEnvGL * VRS::TextureUnitSettingGL::getEnvironment (  )  const [inline]

Texture environment used for texturing.

void VRS::TextureUnitSettingGL::setCoordGeneration ( TexGenGL gen  ) 

TexGenGL * VRS::TextureUnitSettingGL::getCoordGeneration (  )  const [inline]

Texture coordinate generation used for texturing.

VRS::TextureUnitSettingGL::VRS_TYPEINFO ( TextureUnitSettingGL  ,
MonoAttribute   
)

VRS::TextureUnitSettingGL::VRS_SERIALIZABLE ( TextureUnitSettingGL   ) 

virtual void VRS::TextureUnitSettingGL::acceptChildren ( std::vector< Visitable * > &  appendChildrenHere  )  const [protected, virtual]

Reimplemented from VRS::Visitable.


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

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