Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics
[Home] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Public Attributes

vl::TexEnv Class Reference

RenderState wrapping 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:
vl::TextureState vl::RenderState vl::Object

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 *, OpenGLContext *ctx) const
 The parameter cameara is NULL if we are disabling the state, non-NULL if we are enabling it.
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

RenderState wrapping 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

Definition at line 1011 of file Shader.hpp.


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::TextureState.

Definition at line 1015 of file Shader.hpp.

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

Reimplemented from vl::RenderState.

Definition at line 1016 of file Shader.hpp.

References vl::RS_TexEnv0.

void TexEnv::apply ( const Camera camera,
OpenGLContext ctx 
) const [virtual]
void vl::TexEnv::setMode ( ETexEnvMode  mode ) [inline]

Definition at line 1019 of file Shader.hpp.

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

Definition at line 1020 of file Shader.hpp.

Referenced by apply().

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

Definition at line 1021 of file Shader.hpp.

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

Definition at line 1022 of file Shader.hpp.

Referenced by apply().

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

Definition at line 1023 of file Shader.hpp.

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

Definition at line 1024 of file Shader.hpp.

Referenced by apply().

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

Definition at line 1025 of file Shader.hpp.

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

Definition at line 1026 of file Shader.hpp.

Referenced by apply().

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

Definition at line 1027 of file Shader.hpp.

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

Definition at line 1028 of file Shader.hpp.

Referenced by apply().

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

Definition at line 1029 of file Shader.hpp.

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

Definition at line 1030 of file Shader.hpp.

Referenced by apply().

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

Definition at line 1032 of file Shader.hpp.

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

Definition at line 1033 of file Shader.hpp.

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

Definition at line 1034 of file Shader.hpp.

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

Definition at line 1035 of file Shader.hpp.

Referenced by apply().

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

Definition at line 1036 of file Shader.hpp.

Referenced by apply().

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

Definition at line 1037 of file Shader.hpp.

Referenced by apply().

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

Definition at line 1038 of file Shader.hpp.

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

Definition at line 1039 of file Shader.hpp.

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

Definition at line 1040 of file Shader.hpp.

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

Definition at line 1041 of file Shader.hpp.

Referenced by apply().

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

Definition at line 1042 of file Shader.hpp.

Referenced by apply().

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

Definition at line 1043 of file Shader.hpp.

Referenced by apply().

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

Definition at line 1045 of file Shader.hpp.

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

Definition at line 1046 of file Shader.hpp.

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

Definition at line 1047 of file Shader.hpp.

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

Definition at line 1048 of file Shader.hpp.

Referenced by apply().

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

Definition at line 1049 of file Shader.hpp.

Referenced by apply().

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

Definition at line 1050 of file Shader.hpp.

Referenced by apply().

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

Definition at line 1051 of file Shader.hpp.

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

Definition at line 1052 of file Shader.hpp.

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

Definition at line 1053 of file Shader.hpp.

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

Definition at line 1054 of file Shader.hpp.

Referenced by apply().

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

Definition at line 1055 of file Shader.hpp.

Referenced by apply().

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

Definition at line 1056 of file Shader.hpp.

Referenced by apply().

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

Definition at line 1058 of file Shader.hpp.

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

Definition at line 1059 of file Shader.hpp.

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

Definition at line 1061 of file Shader.hpp.

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

Definition at line 1062 of file Shader.hpp.


Member Data Documentation

Definition at line 1065 of file Shader.hpp.

Referenced by TexEnv().

Definition at line 1066 of file Shader.hpp.

Referenced by TexEnv().

Definition at line 1067 of file Shader.hpp.

Referenced by TexEnv().

Definition at line 1068 of file Shader.hpp.

Referenced by TexEnv().

Definition at line 1069 of file Shader.hpp.

Referenced by TexEnv().

Definition at line 1070 of file Shader.hpp.

Referenced by TexEnv().

Definition at line 1071 of file Shader.hpp.

Referenced by TexEnv().

Definition at line 1072 of file Shader.hpp.

Referenced by TexEnv().

Definition at line 1073 of file Shader.hpp.

Referenced by TexEnv().

Definition at line 1074 of file Shader.hpp.

Referenced by TexEnv().

Definition at line 1075 of file Shader.hpp.

Referenced by TexEnv().

Definition at line 1076 of file Shader.hpp.

Referenced by TexEnv().

Definition at line 1077 of file Shader.hpp.

Referenced by TexEnv().

Definition at line 1078 of file Shader.hpp.

Referenced by TexEnv().

Definition at line 1079 of file Shader.hpp.

Referenced by TexEnv().

Definition at line 1080 of file Shader.hpp.

Referenced by TexEnv().

Definition at line 1081 of file Shader.hpp.

Referenced by TexEnv().

Definition at line 1082 of file Shader.hpp.

Referenced by TexEnv().

Definition at line 1083 of file Shader.hpp.

Referenced by apply(), and TexEnv().

Definition at line 1084 of file Shader.hpp.

Referenced by apply(), and TexEnv().


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

Visualization Library v2011.05.1144 Reference Documentation
Copyright 2005-2011 Michele Bosi. All rights reserved.
Updated on Tue Sep 13 2011 21:59:18.
Permission is granted to use this page to write and publish articles regarding Visualization Library.