version 3.3

VRS::TexEnvGL Class Reference

Texture-environment a la OpenGL. More...

#include <vrs/opengl/texenvgl.h>

Inheritance diagram for VRS::TexEnvGL:

VRS::MonoAttribute VRS::Attribute VRS::RenderObj VRS::SharedObj VRS::Visitable VRS::TexEnvCombineGL

List of all members.

Public Types

enum  CombineMode {
  Modulate = 0, Blend, Decal, Replace,
  Add, Custom
}

Public Member Functions

 VRS_SERIALIZABLE_CLASS_ENUM (CombineMode)
 TexEnvGL (CombineMode combine=TexEnvGL::Modulate, const Color &textureEnvColor=Color::black, double lodBias=0.0)
 OpenGL texture environment.
bool operator== (const TexEnvGL &other) const
CombineMode getCombineMode () const
void setCombineMode (CombineMode func)
 Get/set the combine mode.
const ColorgetEnvironmentColor () const
void setEnvironmentColor (const Color &color)
 Get/set the environment color.
void setLODBias (double bias=0.0)
double getLODBias () const
virtual ID category () const
 VRS_TYPEINFO (TexEnvGL, MonoAttribute)
 VRS_SERIALIZABLE (TexEnvGL)


Detailed Description

Texture-environment a la OpenGL.

Member Enumeration Documentation

Enumerator:
Modulate 
Blend 
Decal 
Replace 
Add 
Custom 

Reimplemented in VRS::TexEnvCombineGL.


Constructor & Destructor Documentation

VRS::TexEnvGL::TexEnvGL ( CombineMode  combine = TexEnvGL::Modulate,
const Color textureEnvColor = Color::black,
double  lodBias = 0.0 
)

OpenGL texture environment.


Member Function Documentation

VRS::TexEnvGL::VRS_SERIALIZABLE_CLASS_ENUM ( CombineMode   ) 

Modulate, Blend, Decal, Replace texture functions are standard in OpenGL 1.1 OpenGL 1.3 offeres further extended texture functions (see TexEnvCombineGL).

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

TexEnvGL::CombineMode VRS::TexEnvGL::getCombineMode (  )  const [inline]

void VRS::TexEnvGL::setCombineMode ( CombineMode  func  ) 

Get/set the combine mode.

const Color & VRS::TexEnvGL::getEnvironmentColor (  )  const [inline]

void VRS::TexEnvGL::setEnvironmentColor ( const Color color  ) 

Get/set the environment color.

void VRS::TexEnvGL::setLODBias ( double  bias = 0.0  ) 

double VRS::TexEnvGL::getLODBias (  )  const [inline]

virtual ID VRS::TexEnvGL::category (  )  const [virtual]

Defines the category under which objects of this type get stored in contexts. By default, the category is the same as the class name. Attribute classes may want to overwrite the category for example, if further subclasses should be stored in the same category as their base class (i.e., the category of subclasses would return the base class name.

Reimplemented from VRS::Attribute.

VRS::TexEnvGL::VRS_TYPEINFO ( TexEnvGL  ,
MonoAttribute   
)

VRS::TexEnvGL::VRS_SERIALIZABLE ( TexEnvGL   ) 


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

Generated on Mon May 20 06:00:30 2013 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact