# Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics

[Home] [Tutorials] [All Classes] [Grouped Classes]

Public Member Functions | Public Attributes

# vl::TexGen Class Reference

RenderState wrapping the OpenGL function glTexGen(), see also http://www.opengl.org/sdk/docs/man/xhtml/glTexGen.xml for more information. More...

`#include <Shader.hpp>`

Inheritance diagram for vl::TexGen:

List of all members.

## Public Member Functions

| TexGen (int texunit)
| The eye and object planes are not transformed by any matrix (unlike usually with OpenGL), which means that the object plane is specified in object coordinates and that, the eye plane is specified in camera coordinates.
virtual const char * | className ()
| Returns the name of the class.
virtual ERenderState | type () const
virtual void | apply (const Camera *, OpenGLContext *ctx) const
| The parameter cameara is NULL if we are disabling the state, non-NULL if we are enabling it.
void | setEyePlaneS (fvec4 plane)
void | setObjectPlaneS (fvec4 plane)
void | setGenModeS (ETexGenMode mode)
fvec4 | eyePlaneS () const
fvec4 | objectPlaneS () const
ETexGenMode | genModeS () const
void | setEyePlaneT (fvec4 plane)
void | setObjectPlaneT (fvec4 plane)
void | setGenModeT (ETexGenMode mode)
fvec4 | eyePlaneT () const
fvec4 | objectPlaneT () const
ETexGenMode | genModeT () const
void | setEyePlaneR (fvec4 plane)
void | setObjectPlaneR (fvec4 plane)
void | setGenModeR (ETexGenMode mode)
fvec4 | eyePlaneR () const
fvec4 | objectPlaneR () const
ETexGenMode | genModeR () const
void | setEyePlaneQ (fvec4 plane)
void | setObjectPlaneQ (fvec4 plane)
void | setGenModeQ (ETexGenMode mode)
fvec4 | eyePlaneQ () const
fvec4 | objectPlaneQ () const
ETexGenMode | genModeQ () const

## Public Attributes

fvec4 | mEyePlaneS
fvec4 | mObjectPlaneS
fvec4 | mEyePlaneT
fvec4 | mObjectPlaneT
fvec4 | mEyePlaneR
fvec4 | mObjectPlaneR
fvec4 | mEyePlaneQ
fvec4 | mObjectPlaneQ
ETexGenMode | mGenModeS
ETexGenMode | mGenModeT
ETexGenMode | mGenModeR
ETexGenMode | mGenModeQ

## Detailed Description

RenderState wrapping the OpenGL function glTexGen(), see also http://www.opengl.org/sdk/docs/man/xhtml/glTexGen.xml for more information.

Note:
  A TexParameter defines a set of variables associated to a Texture while TexGen and TexEnv define a set of variables associated to a TextureUnit.

See also:
  Shader, TextureUnit, Texture, TexGen, TexParameter, Effect, Actor

Definition at line 1096 of file Shader.hpp.

## Constructor & Destructor Documentation

TexGen::TexGen | ( | int | texunit ) |

The eye and object planes are not transformed by any matrix (unlike usually with OpenGL), which means that the object plane is specified in object coordinates and that, the eye plane is specified in camera coordinates.

Definition at line 819 of file Shader.cpp.

References mEyePlaneQ, mEyePlaneR, mEyePlaneS, mEyePlaneT, mGenModeQ, mGenModeR, mGenModeS, mGenModeT, mObjectPlaneQ, mObjectPlaneR, mObjectPlaneS, mObjectPlaneT, vl::TextureState::mTextureUnit, vl::TGM_DISABLED, and VL_DEBUG_SET_OBJECT_NAME.

## Member Function Documentation

virtual const char* vl::TexGen::className | ( | ) | `[inline, virtual]`

Returns the name of the class.

Reimplemented from vl::TextureState.

Definition at line 1100 of file Shader.hpp.

virtual ERenderState vl::TexGen::type | ( | ) | const`[inline, virtual]`

Reimplemented from vl::RenderState.

Definition at line 1102 of file Shader.hpp.

References vl::RS_TexGen0.

void TexGen::apply | ( | const Camera * | camera,
|  | OpenGLContext * | ctx
| ) |  | const`[virtual]`

The parameter cameara is NULL if we are disabling the state, non-NULL if we are enabling it.

Implements vl::RenderState.

Definition at line 837 of file Shader.cpp.

References eyePlaneQ(), eyePlaneR(), eyePlaneS(), eyePlaneT(), genModeQ(), genModeR(), genModeS(), genModeT(), objectPlaneQ(), objectPlaneR(), objectPlaneS(), objectPlaneT(), vl::TextureState::textureUnit(), vl::TGM_EYE_LINEAR, vl::TGM_OBJECT_LINEAR, VL_CHECK, VL_CHECK_OGL, vl::VL_glActiveTexture(), and VL_MAX_TEXTURE_UNITS.

void vl::TexGen::setEyePlaneS | ( | fvec4 | plane ) | `[inline]`

Definition at line 1105 of file Shader.hpp.

void vl::TexGen::setObjectPlaneS | ( | fvec4 | plane ) | `[inline]`

Definition at line 1106 of file Shader.hpp.

void vl::TexGen::setGenModeS | ( | ETexGenMode | mode ) | `[inline]`

Definition at line 1107 of file Shader.hpp.

fvec4 vl::TexGen::eyePlaneS | ( | ) | const`[inline]`

Definition at line 1108 of file Shader.hpp.

Referenced by apply().

fvec4 vl::TexGen::objectPlaneS | ( | ) | const`[inline]`

Definition at line 1109 of file Shader.hpp.

Referenced by apply().

ETexGenMode vl::TexGen::genModeS | ( | ) | const`[inline]`

Definition at line 1110 of file Shader.hpp.

Referenced by apply().

void vl::TexGen::setEyePlaneT | ( | fvec4 | plane ) | `[inline]`

Definition at line 1112 of file Shader.hpp.

void vl::TexGen::setObjectPlaneT | ( | fvec4 | plane ) | `[inline]`

Definition at line 1113 of file Shader.hpp.

void vl::TexGen::setGenModeT | ( | ETexGenMode | mode ) | `[inline]`

Definition at line 1114 of file Shader.hpp.

fvec4 vl::TexGen::eyePlaneT | ( | ) | const`[inline]`

Definition at line 1115 of file Shader.hpp.

Referenced by apply().

fvec4 vl::TexGen::objectPlaneT | ( | ) | const`[inline]`

Definition at line 1116 of file Shader.hpp.

Referenced by apply().

ETexGenMode vl::TexGen::genModeT | ( | ) | const`[inline]`

Definition at line 1117 of file Shader.hpp.

Referenced by apply().

void vl::TexGen::setEyePlaneR | ( | fvec4 | plane ) | `[inline]`

Definition at line 1119 of file Shader.hpp.

void vl::TexGen::setObjectPlaneR | ( | fvec4 | plane ) | `[inline]`

Definition at line 1120 of file Shader.hpp.

void vl::TexGen::setGenModeR | ( | ETexGenMode | mode ) | `[inline]`

Definition at line 1121 of file Shader.hpp.

fvec4 vl::TexGen::eyePlaneR | ( | ) | const`[inline]`

Definition at line 1122 of file Shader.hpp.

Referenced by apply().

fvec4 vl::TexGen::objectPlaneR | ( | ) | const`[inline]`

Definition at line 1123 of file Shader.hpp.

Referenced by apply().

ETexGenMode vl::TexGen::genModeR | ( | ) | const`[inline]`

Definition at line 1124 of file Shader.hpp.

Referenced by apply().

void vl::TexGen::setEyePlaneQ | ( | fvec4 | plane ) | `[inline]`

Definition at line 1126 of file Shader.hpp.

void vl::TexGen::setObjectPlaneQ | ( | fvec4 | plane ) | `[inline]`

Definition at line 1127 of file Shader.hpp.

void vl::TexGen::setGenModeQ | ( | ETexGenMode | mode ) | `[inline]`

Definition at line 1128 of file Shader.hpp.

fvec4 vl::TexGen::eyePlaneQ | ( | ) | const`[inline]`

Definition at line 1129 of file Shader.hpp.

Referenced by apply().

fvec4 vl::TexGen::objectPlaneQ | ( | ) | const`[inline]`

Definition at line 1130 of file Shader.hpp.

Referenced by apply().

ETexGenMode vl::TexGen::genModeQ | ( | ) | const`[inline]`

Definition at line 1131 of file Shader.hpp.

Referenced by apply().

## Member Data Documentation

fvec4 vl::TexGen::mEyePlaneS

Definition at line 1134 of file Shader.hpp.

Referenced by TexGen().

fvec4 vl::TexGen::mObjectPlaneS

Definition at line 1135 of file Shader.hpp.

Referenced by TexGen().

fvec4 vl::TexGen::mEyePlaneT

Definition at line 1136 of file Shader.hpp.

Referenced by TexGen().

fvec4 vl::TexGen::mObjectPlaneT

Definition at line 1137 of file Shader.hpp.

Referenced by TexGen().

fvec4 vl::TexGen::mEyePlaneR

Definition at line 1138 of file Shader.hpp.

Referenced by TexGen().

fvec4 vl::TexGen::mObjectPlaneR

Definition at line 1139 of file Shader.hpp.

Referenced by TexGen().

fvec4 vl::TexGen::mEyePlaneQ

Definition at line 1140 of file Shader.hpp.

Referenced by TexGen().

fvec4 vl::TexGen::mObjectPlaneQ

Definition at line 1141 of file Shader.hpp.

Referenced by TexGen().

ETexGenMode vl::TexGen::mGenModeS

Definition at line 1142 of file Shader.hpp.

Referenced by TexGen().

ETexGenMode vl::TexGen::mGenModeT

Definition at line 1143 of file Shader.hpp.

Referenced by TexGen().

ETexGenMode vl::TexGen::mGenModeR

Definition at line 1144 of file Shader.hpp.

Referenced by TexGen().

ETexGenMode vl::TexGen::mGenModeQ

Definition at line 1145 of file Shader.hpp.

Referenced by TexGen().

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

- D:/VL/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vlGraphics/Shader.hpp
- D:/VL/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vlGraphics/Shader.cpp

Visualization Library v2011.05.1142 Reference Documentation
Copyright 2005-2011 Michele Bosi. All rights reserved.
Updated on Thu May 26 2011 22:51:46.
Permission is granted to use this page to write and publish articles regarding Visualization Library.