version 3.3

VRS::ProjectiveTextureGL Class Reference

Implements projective texturing for OpenGL. More...

#include <vrs/opengl/projectivetexturegl.h>

Inheritance diagram for VRS::ProjectiveTextureGL:

VRS::TextureUnitSettingGL VRS::MonoAttribute VRS::Attribute VRS::RenderObj VRS::SharedObj VRS::Visitable

List of all members.

Public Types

enum  Alignment { OBJECT, WORLD }

Public Member Functions

 VRS_SERIALIZABLE_CLASS_ENUM (Alignment)
 ProjectiveTextureGL (unsigned int unit, TextureGL *texture, TexEnvGL *env=NULL, Alignment align=ProjectiveTextureGL::OBJECT)
 ProjectiveTextureGL (unsigned int unit, TextureGL *texture, Transform *projection, Transform *orientation, TexEnvGL *env=NULL, Alignment align=ProjectiveTextureGL::OBJECT)
void setOrientation (Transform *transform)
TransformgetOrientation () const
 The transformation used to orient the projection.
void setProjection (Transform *transform)
TransformgetProjection () const
 Defines the perspective of the projection.
unsigned int getAlignment () const
void setAlignment (Alignment space)
 VRS_SERIALIZABLE (ProjectiveTextureGL)
 VRS_TYPEINFO (ProjectiveTextureGL, TextureUnitSettingGL)

Protected Member Functions

 ProjectiveTextureGL ()


Detailed Description

Implements projective texturing for OpenGL.

Member Enumeration Documentation

Enumerator:
OBJECT 
WORLD 


Constructor & Destructor Documentation

VRS::ProjectiveTextureGL::ProjectiveTextureGL ( unsigned int  unit,
TextureGL texture,
TexEnvGL env = NULL,
Alignment  align = ProjectiveTextureGL::OBJECT 
)

VRS::ProjectiveTextureGL::ProjectiveTextureGL ( unsigned int  unit,
TextureGL texture,
Transform projection,
Transform orientation,
TexEnvGL env = NULL,
Alignment  align = ProjectiveTextureGL::OBJECT 
)

Perspective texturing projects a texture through three dimensional scene. The projection is defined by a projection and orientation transformation. If one transformation is not set, the transformation of the camera is used for texturing. Object alignment uses the current modelview matrix for texturing. When aligning in in world hte modelview matrix will be ignored.

VRS::ProjectiveTextureGL::ProjectiveTextureGL (  )  [inline, protected]


Member Function Documentation

VRS::ProjectiveTextureGL::VRS_SERIALIZABLE_CLASS_ENUM ( Alignment   ) 

void VRS::ProjectiveTextureGL::setOrientation ( Transform transform  ) 

Transform * VRS::ProjectiveTextureGL::getOrientation (  )  const [inline]

The transformation used to orient the projection.

void VRS::ProjectiveTextureGL::setProjection ( Transform transform  ) 

Transform * VRS::ProjectiveTextureGL::getProjection (  )  const [inline]

Defines the perspective of the projection.

unsigned int VRS::ProjectiveTextureGL::getAlignment (  )  const [inline]

void VRS::ProjectiveTextureGL::setAlignment ( Alignment  space  ) 

VRS::ProjectiveTextureGL::VRS_SERIALIZABLE ( ProjectiveTextureGL   ) 

VRS::ProjectiveTextureGL::VRS_TYPEINFO ( ProjectiveTextureGL  ,
TextureUnitSettingGL   
)


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

Generated on Fri May 24 06:00:26 2013 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact