version 3.3

VRS::InterpolatedMultiTexturingEffectGL Class Reference

#include <vrs/opengl/interpolatedmultitexturingeffectgl.h>

Inheritance diagram for VRS::InterpolatedMultiTexturingEffectGL:

VRS::TexturingEffectGL VRS::MonoAttribute VRS::Attribute VRS::RenderObj VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 InterpolatedMultiTexturingEffectGL (TextureGL *interpolator, TextureGL *texture1, TextureGL *texture2, TexGenGL *interpolatorTexGen=NULL, TexGenGL *texGen1=NULL, TexGenGL *texGen2=NULL, bool shaded=false)
TextureGLgetInterpolator () const
void setInterpolator (TextureGL *interpolator)
TexGenGLgetInterpolatorTexGen () const
void setInterpolatorTexGen (TexGenGL *interpolatorTexGen)
TextureGLgetTexture (unsigned int i) const
void setTexture (unsigned int i, TextureGL *texture)
TexGenGLgetTexGen (unsigned int i) const
void setTexGen (unsigned int i, TexGenGL *texGen)
virtual bool ignorePreviousEffects () const
 VRS_TYPEINFO (InterpolatedMultiTexturingEffectGL, TexturingEffectGL)
 VRS_SERIALIZABLE (InterpolatedMultiTexturingEffectGL)

Protected Member Functions

 InterpolatedMultiTexturingEffectGL ()


Detailed Description

This attribute allows to linearly interpolate between two textures (or the result of one texturing effect and one texture) on a shape's surface; the interpolation factors are defined by the alpha values of an additional texture. NOTE: Since it is not yet possible in VRS to specify several explicit texture coordinate sets for a shape and OpenGL is not capable of replicating texture coordinates from other texture units, automatic texture coordinate generation must be used for specifying the texture coordinates for each used texture. If no texture coordinate generator is specified for a texture, the texture coordinate generator is used which is active during the rendering of a shape; if no such texture coordinate generator exists only one texture will be used within a single pass (ignoring all other available texture units the hardware provides), which would lead to a very poor performance of this effect!

Constructor & Destructor Documentation

VRS::InterpolatedMultiTexturingEffectGL::InterpolatedMultiTexturingEffectGL ( TextureGL interpolator,
TextureGL texture1,
TextureGL texture2,
TexGenGL interpolatorTexGen = NULL,
TexGenGL texGen1 = NULL,
TexGenGL texGen2 = NULL,
bool  shaded = false 
)

VRS::InterpolatedMultiTexturingEffectGL::InterpolatedMultiTexturingEffectGL (  )  [protected]


Member Function Documentation

TextureGL* VRS::InterpolatedMultiTexturingEffectGL::getInterpolator (  )  const

void VRS::InterpolatedMultiTexturingEffectGL::setInterpolator ( TextureGL interpolator  ) 

TexGenGL* VRS::InterpolatedMultiTexturingEffectGL::getInterpolatorTexGen (  )  const

void VRS::InterpolatedMultiTexturingEffectGL::setInterpolatorTexGen ( TexGenGL interpolatorTexGen  ) 

TextureGL* VRS::InterpolatedMultiTexturingEffectGL::getTexture ( unsigned int  i  )  const

void VRS::InterpolatedMultiTexturingEffectGL::setTexture ( unsigned int  i,
TextureGL texture 
)

TexGenGL* VRS::InterpolatedMultiTexturingEffectGL::getTexGen ( unsigned int  i  )  const

void VRS::InterpolatedMultiTexturingEffectGL::setTexGen ( unsigned int  i,
TexGenGL texGen 
)

virtual bool VRS::InterpolatedMultiTexturingEffectGL::ignorePreviousEffects (  )  const [virtual]

Reimplemented from VRS::TexturingEffectGL.

VRS::InterpolatedMultiTexturingEffectGL::VRS_TYPEINFO ( InterpolatedMultiTexturingEffectGL  ,
TexturingEffectGL   
)

VRS::InterpolatedMultiTexturingEffectGL::VRS_SERIALIZABLE ( InterpolatedMultiTexturingEffectGL   ) 


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

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