# Visualization Library A lightweight C++ OpenGL middleware for 2D/3D graphics | [Home] [Tutorials] [All Classes] [Grouped Classes]

# vl::TexEnv Class Reference

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

`#include <Shader.hpp>`

Inheritance diagram for vl::TexEnv:

List of all members.

## Public Member Functions
| TexEnv (int texunit)
virtual const char * | className ()
| Returns the name of the class.
virtual ERenderState | type () const
virtual void | apply (const Camera *) const
void | setMode (ETexEnvMode mode)
ETexEnvMode | mode () const
void | setCombineRGB (ETexEnvMode combineRGB)
ETexEnvMode | combineRGB () const
void | setCombineAlpha (ETexEnvMode combineAlpha)
ETexEnvMode | combineAlpha () const
void | setColor (fvec4 color)
fvec4 | color () const
void | setRGBScale (float rgbscale)
float | rgbScale () const
void | setAlphaScale (float alphascale)
float | alphaScale () const
void | setSource0RGB (ETexEnvSource source)
void | setSource1RGB (ETexEnvSource source)
void | setSource2RGB (ETexEnvSource source)
ETexEnvSource | source0RGB () const
ETexEnvSource | source1RGB () const
ETexEnvSource | source2RGB () const
void | setSource0Alpha (ETexEnvSource source)
void | setSource1Alpha (ETexEnvSource source)
void | setSource2Alpha (ETexEnvSource source)
ETexEnvSource | source0Alpha () const
ETexEnvSource | source1Alpha () const
ETexEnvSource | source2Alpha () const
void | setOperand0RGB (ETexEnvOperand operand)
void | setOperand1RGB (ETexEnvOperand operand)
void | setOperand2RGB (ETexEnvOperand operand)
ETexEnvOperand | operand0RGB () const
ETexEnvOperand | operand1RGB () const
ETexEnvOperand | operand2RGB () const
void | setOperand0Alpha (ETexEnvOperand operand)
void | setOperand1Alpha (ETexEnvOperand operand)
void | setOperand2Alpha (ETexEnvOperand operand)
ETexEnvOperand | operand0Alpha () const
ETexEnvOperand | operand1Alpha () const
ETexEnvOperand | operand2Alpha () const
void | setPointSpriteCoordReplace (bool replace)
bool | pointSpriteCoordReplace () const
void | setLodBias (float lodbias)
float | lodBias () const
## Public Attributes
fvec4 | mColor
float | mRGBScale
float | mAlphaScale
ETexEnvMode | mMode
ETexEnvMode | mCombineRGB
ETexEnvMode | mCombineAlpha
ETexEnvSource | mSource0RGB
ETexEnvSource | mSource1RGB
ETexEnvSource | mSource2RGB
ETexEnvSource | mSource0Alpha
ETexEnvSource | mSource1Alpha
ETexEnvSource | mSource2Alpha
ETexEnvOperand | mOperand0RGB
ETexEnvOperand | mOperand1RGB
ETexEnvOperand | mOperand2RGB
ETexEnvOperand | mOperand0Alpha
ETexEnvOperand | mOperand1Alpha
ETexEnvOperand | mOperand2Alpha
float | mLodBias
bool | mPointSpriteCoordReplace

## Detailed Description

Wraps the OpenGL function glTexEnv(), see also http://www.opengl.org/sdk/docs/man/xhtml/glTexEnv.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

## Constructor & Destructor Documentation

TexEnv::TexEnv | ( | int | texunit | ) |

## Member Function Documentation

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

Returns the name of the class.

Reimplemented from vl::RenderState.

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

Reimplemented from vl::RenderState.

void TexEnv::apply | ( | const Camera * |  | ) | const`[virtual]`

Implements vl::RenderState.

void vl::TexEnv::setMode | ( | ETexEnvMode | mode | ) | `[inline]`

ETexEnvMode vl::TexEnv::mode | ( |  | ) | const`[inline]`

void vl::TexEnv::setCombineRGB | ( | ETexEnvMode | combineRGB | ) | `[inline]`

ETexEnvMode vl::TexEnv::combineRGB | ( |  | ) | const`[inline]`

void vl::TexEnv::setCombineAlpha | ( | ETexEnvMode | combineAlpha | ) | `[inline]`

ETexEnvMode vl::TexEnv::combineAlpha | ( |  | ) | const`[inline]`

void vl::TexEnv::setColor | ( | fvec4 | color | ) | `[inline]`

fvec4 vl::TexEnv::color | ( |  | ) | const`[inline]`

void vl::TexEnv::setRGBScale | ( | float | rgbscale | ) | `[inline]`

float vl::TexEnv::rgbScale | ( |  | ) | const`[inline]`

void vl::TexEnv::setAlphaScale | ( | float | alphascale | ) | `[inline]`

float vl::TexEnv::alphaScale | ( |  | ) | const`[inline]`

void vl::TexEnv::setSource0RGB | ( | ETexEnvSource | source | ) | `[inline]`

void vl::TexEnv::setSource1RGB | ( | ETexEnvSource | source | ) | `[inline]`

void vl::TexEnv::setSource2RGB | ( | ETexEnvSource | source | ) | `[inline]`

ETexEnvSource vl::TexEnv::source0RGB | ( |  | ) | const`[inline]`

ETexEnvSource vl::TexEnv::source1RGB | ( |  | ) | const`[inline]`

ETexEnvSource vl::TexEnv::source2RGB | ( |  | ) | const`[inline]`

void vl::TexEnv::setSource0Alpha | ( | ETexEnvSource | source | ) | `[inline]`

void vl::TexEnv::setSource1Alpha | ( | ETexEnvSource | source | ) | `[inline]`

void vl::TexEnv::setSource2Alpha | ( | ETexEnvSource | source | ) | `[inline]`

ETexEnvSource vl::TexEnv::source0Alpha | ( |  | ) | const`[inline]`

ETexEnvSource vl::TexEnv::source1Alpha | ( |  | ) | const`[inline]`

ETexEnvSource vl::TexEnv::source2Alpha | ( |  | ) | const`[inline]`

void vl::TexEnv::setOperand0RGB | ( | ETexEnvOperand | operand | ) | `[inline]`

void vl::TexEnv::setOperand1RGB | ( | ETexEnvOperand | operand | ) | `[inline]`

void vl::TexEnv::setOperand2RGB | ( | ETexEnvOperand | operand | ) | `[inline]`

ETexEnvOperand vl::TexEnv::operand0RGB | ( |  | ) | const`[inline]`

ETexEnvOperand vl::TexEnv::operand1RGB | ( |  | ) | const`[inline]`

ETexEnvOperand vl::TexEnv::operand2RGB | ( |  | ) | const`[inline]`

void vl::TexEnv::setOperand0Alpha | ( | ETexEnvOperand | operand | ) | `[inline]`

void vl::TexEnv::setOperand1Alpha | ( | ETexEnvOperand | operand | ) | `[inline]`

void vl::TexEnv::setOperand2Alpha | ( | ETexEnvOperand | operand | ) | `[inline]`

ETexEnvOperand vl::TexEnv::operand0Alpha | ( |  | ) | const`[inline]`

ETexEnvOperand vl::TexEnv::operand1Alpha | ( |  | ) | const`[inline]`

ETexEnvOperand vl::TexEnv::operand2Alpha | ( |  | ) | const`[inline]`

void vl::TexEnv::setPointSpriteCoordReplace | ( | bool | replace | ) | `[inline]`

bool vl::TexEnv::pointSpriteCoordReplace | ( |  | ) | const`[inline]`

void vl::TexEnv::setLodBias | ( | float | lodbias | ) | `[inline]`

float vl::TexEnv::lodBias | ( |  | ) | const`[inline]`

## Member Data Documentation

fvec4 vl::TexEnv::mColor

float vl::TexEnv::mRGBScale

float vl::TexEnv::mAlphaScale

ETexEnvMode vl::TexEnv::mMode

ETexEnvMode vl::TexEnv::mCombineRGB

ETexEnvMode vl::TexEnv::mCombineAlpha

ETexEnvSource vl::TexEnv::mSource0RGB

ETexEnvSource vl::TexEnv::mSource1RGB

ETexEnvSource vl::TexEnv::mSource2RGB

ETexEnvSource vl::TexEnv::mSource0Alpha

ETexEnvSource vl::TexEnv::mSource1Alpha

ETexEnvSource vl::TexEnv::mSource2Alpha

ETexEnvOperand vl::TexEnv::mOperand0RGB

ETexEnvOperand vl::TexEnv::mOperand1RGB

ETexEnvOperand vl::TexEnv::mOperand2RGB

ETexEnvOperand vl::TexEnv::mOperand0Alpha

ETexEnvOperand vl::TexEnv::mOperand1Alpha

ETexEnvOperand vl::TexEnv::mOperand2Alpha

float vl::TexEnv::mLodBias

bool vl::TexEnv::mPointSpriteCoordReplace

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

- E:/VisualizationLibrary/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vl/Shader.hpp
- E:/VisualizationLibrary/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vl/Shader.cpp

Visualization Library v2009.08 Reference Documentation
Copyright 2005-2009 Michele Bosi. All rights reserved.
Updated on Sun Nov 8 14:29:05 2009.
Permission is granted to use this page to write and publish articles regarding Visualization Library.