| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/opengl/projectivetexturegl.h>

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) |
| Transform * | getOrientation () const |
| The transformation used to orient the projection. | |
| void | setProjection (Transform *transform) |
| Transform * | getProjection () 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 () | |
| 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] |
| 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 | ||||
| ) |