Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
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>
RenderState wrapping the OpenGL function glTexEnv(), see also http://www.opengl.org/sdk/docs/man/xhtml/glTexEnv.xml for more information.
Definition at line 1011 of file Shader.hpp.
| TexEnv::TexEnv | ( | int | texunit ) |
Definition at line 724 of file Shader.cpp.
References mAlphaScale, mColor, mCombineAlpha, mCombineRGB, mLodBias, mMode, mOperand0Alpha, mOperand0RGB, mOperand1Alpha, mOperand1RGB, mOperand2Alpha, mOperand2RGB, mPointSpriteCoordReplace, mRGBScale, mSource0Alpha, mSource0RGB, mSource1Alpha, mSource1RGB, mSource2Alpha, mSource2RGB, vl::TextureState::mTextureUnit, vl::TEM_MODULATE, vl::TEM_REPLACE, vl::TEO_SRC_ALPHA, vl::TEO_SRC_COLOR, vl::TES_TEXTURE, and VL_DEBUG_SET_OBJECT_NAME.
| 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] |
The parameter cameara is NULL if we are disabling the state, non-NULL if we are enabling it.
Implements vl::RenderState.
Definition at line 755 of file Shader.cpp.
References alphaScale(), color(), combineAlpha(), combineRGB(), mLodBias, mode(), mPointSpriteCoordReplace, operand0Alpha(), operand0RGB(), operand1Alpha(), operand1RGB(), operand2Alpha(), operand2RGB(), rgbScale(), source0Alpha(), source0RGB(), source1Alpha(), source1RGB(), source2Alpha(), source2RGB(), vl::TEM_BLEND, vl::TEM_COMBINE, vl::TEM_INTERPOLATE, vl::TextureState::textureUnit(), VL_CHECK, VL_CHECK_OGL, vl::VL_glActiveTexture(), and VL_MAX_TEXTURE_UNITS.
| 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.
Definition at line 1065 of file Shader.hpp.
Referenced by TexEnv().
| float vl::TexEnv::mRGBScale |
Definition at line 1066 of file Shader.hpp.
Referenced by TexEnv().
| float vl::TexEnv::mAlphaScale |
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().
| float vl::TexEnv::mLodBias |
Definition at line 1083 of file Shader.hpp.
Definition at line 1084 of file Shader.hpp.