Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [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 1589 of file Shader.hpp.
TexEnv::TexEnv | ( | ) |
Definition at line 885 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::TEM_MODULATE, vl::TEM_REPLACE, vl::TEO_SRC_ALPHA, vl::TEO_SRC_COLOR, vl::TES_TEXTURE, and VL_DEBUG_SET_OBJECT_NAME.
virtual ERenderState vl::TexEnv::type | ( | ) | const [inline, virtual] |
Reimplemented from vl::RenderState.
Definition at line 1595 of file Shader.hpp.
References vl::RS_TexEnv.
void TexEnv::apply | ( | int | index, |
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 915 of file Shader.cpp.
References alphaScale(), color(), combineAlpha(), combineRGB(), vl::Has_GL_Version_1_3, vl::Has_GL_Version_1_4, vl::Has_Point_Sprite, 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_CHECK, VL_CHECK_OGL, and VL_MAX_TEXTURE_UNITS.
void vl::TexEnv::setMode | ( | ETexEnvMode | mode ) | [inline] |
Definition at line 1598 of file Shader.hpp.
ETexEnvMode vl::TexEnv::mode | ( | ) | const [inline] |
Definition at line 1599 of file Shader.hpp.
Referenced by apply().
void vl::TexEnv::setCombineRGB | ( | ETexEnvMode | combineRGB ) | [inline] |
Definition at line 1600 of file Shader.hpp.
ETexEnvMode vl::TexEnv::combineRGB | ( | ) | const [inline] |
Definition at line 1601 of file Shader.hpp.
Referenced by apply().
void vl::TexEnv::setCombineAlpha | ( | ETexEnvMode | combineAlpha ) | [inline] |
Definition at line 1602 of file Shader.hpp.
ETexEnvMode vl::TexEnv::combineAlpha | ( | ) | const [inline] |
Definition at line 1603 of file Shader.hpp.
Referenced by apply().
void vl::TexEnv::setColor | ( | fvec4 | color ) | [inline] |
Definition at line 1604 of file Shader.hpp.
fvec4 vl::TexEnv::color | ( | ) | const [inline] |
Definition at line 1605 of file Shader.hpp.
Referenced by apply().
void vl::TexEnv::setRGBScale | ( | float | rgbscale ) | [inline] |
Definition at line 1606 of file Shader.hpp.
float vl::TexEnv::rgbScale | ( | ) | const [inline] |
Definition at line 1607 of file Shader.hpp.
Referenced by apply().
void vl::TexEnv::setAlphaScale | ( | float | alphascale ) | [inline] |
Definition at line 1608 of file Shader.hpp.
float vl::TexEnv::alphaScale | ( | ) | const [inline] |
Definition at line 1609 of file Shader.hpp.
Referenced by apply().
void vl::TexEnv::setSource0RGB | ( | ETexEnvSource | source ) | [inline] |
Definition at line 1611 of file Shader.hpp.
void vl::TexEnv::setSource1RGB | ( | ETexEnvSource | source ) | [inline] |
Definition at line 1612 of file Shader.hpp.
void vl::TexEnv::setSource2RGB | ( | ETexEnvSource | source ) | [inline] |
Definition at line 1613 of file Shader.hpp.
ETexEnvSource vl::TexEnv::source0RGB | ( | ) | const [inline] |
Definition at line 1614 of file Shader.hpp.
Referenced by apply().
ETexEnvSource vl::TexEnv::source1RGB | ( | ) | const [inline] |
Definition at line 1615 of file Shader.hpp.
Referenced by apply().
ETexEnvSource vl::TexEnv::source2RGB | ( | ) | const [inline] |
Definition at line 1616 of file Shader.hpp.
Referenced by apply().
void vl::TexEnv::setSource0Alpha | ( | ETexEnvSource | source ) | [inline] |
Definition at line 1617 of file Shader.hpp.
void vl::TexEnv::setSource1Alpha | ( | ETexEnvSource | source ) | [inline] |
Definition at line 1618 of file Shader.hpp.
void vl::TexEnv::setSource2Alpha | ( | ETexEnvSource | source ) | [inline] |
Definition at line 1619 of file Shader.hpp.
ETexEnvSource vl::TexEnv::source0Alpha | ( | ) | const [inline] |
Definition at line 1620 of file Shader.hpp.
Referenced by apply().
ETexEnvSource vl::TexEnv::source1Alpha | ( | ) | const [inline] |
Definition at line 1621 of file Shader.hpp.
Referenced by apply().
ETexEnvSource vl::TexEnv::source2Alpha | ( | ) | const [inline] |
Definition at line 1622 of file Shader.hpp.
Referenced by apply().
void vl::TexEnv::setOperand0RGB | ( | ETexEnvOperand | operand ) | [inline] |
Definition at line 1624 of file Shader.hpp.
void vl::TexEnv::setOperand1RGB | ( | ETexEnvOperand | operand ) | [inline] |
Definition at line 1625 of file Shader.hpp.
void vl::TexEnv::setOperand2RGB | ( | ETexEnvOperand | operand ) | [inline] |
Definition at line 1626 of file Shader.hpp.
ETexEnvOperand vl::TexEnv::operand0RGB | ( | ) | const [inline] |
Definition at line 1627 of file Shader.hpp.
Referenced by apply().
ETexEnvOperand vl::TexEnv::operand1RGB | ( | ) | const [inline] |
Definition at line 1628 of file Shader.hpp.
Referenced by apply().
ETexEnvOperand vl::TexEnv::operand2RGB | ( | ) | const [inline] |
Definition at line 1629 of file Shader.hpp.
Referenced by apply().
void vl::TexEnv::setOperand0Alpha | ( | ETexEnvOperand | operand ) | [inline] |
Definition at line 1630 of file Shader.hpp.
void vl::TexEnv::setOperand1Alpha | ( | ETexEnvOperand | operand ) | [inline] |
Definition at line 1631 of file Shader.hpp.
void vl::TexEnv::setOperand2Alpha | ( | ETexEnvOperand | operand ) | [inline] |
Definition at line 1632 of file Shader.hpp.
ETexEnvOperand vl::TexEnv::operand0Alpha | ( | ) | const [inline] |
Definition at line 1633 of file Shader.hpp.
Referenced by apply().
ETexEnvOperand vl::TexEnv::operand1Alpha | ( | ) | const [inline] |
Definition at line 1634 of file Shader.hpp.
Referenced by apply().
ETexEnvOperand vl::TexEnv::operand2Alpha | ( | ) | const [inline] |
Definition at line 1635 of file Shader.hpp.
Referenced by apply().
void vl::TexEnv::setPointSpriteCoordReplace | ( | bool | replace ) | [inline] |
Definition at line 1637 of file Shader.hpp.
bool vl::TexEnv::pointSpriteCoordReplace | ( | ) | const [inline] |
Definition at line 1638 of file Shader.hpp.
void vl::TexEnv::setLodBias | ( | float | lodbias ) | [inline] |
Definition at line 1640 of file Shader.hpp.
float vl::TexEnv::lodBias | ( | ) | const [inline] |
Definition at line 1641 of file Shader.hpp.
virtual ref<RenderState> vl::TexEnv::clone | ( | ) | const [inline, virtual] |
Implements vl::RenderState.
Definition at line 1643 of file Shader.hpp.
Definition at line 1651 of file Shader.hpp.
Referenced by TexEnv().
float vl::TexEnv::mRGBScale |
Definition at line 1652 of file Shader.hpp.
Referenced by TexEnv().
float vl::TexEnv::mAlphaScale |
Definition at line 1653 of file Shader.hpp.
Referenced by TexEnv().
Definition at line 1654 of file Shader.hpp.
Referenced by TexEnv().
Definition at line 1655 of file Shader.hpp.
Referenced by TexEnv().
Definition at line 1656 of file Shader.hpp.
Referenced by TexEnv().
Definition at line 1657 of file Shader.hpp.
Referenced by TexEnv().
Definition at line 1658 of file Shader.hpp.
Referenced by TexEnv().
Definition at line 1659 of file Shader.hpp.
Referenced by TexEnv().
Definition at line 1660 of file Shader.hpp.
Referenced by TexEnv().
Definition at line 1661 of file Shader.hpp.
Referenced by TexEnv().
Definition at line 1662 of file Shader.hpp.
Referenced by TexEnv().
Definition at line 1663 of file Shader.hpp.
Referenced by TexEnv().
Definition at line 1664 of file Shader.hpp.
Referenced by TexEnv().
Definition at line 1665 of file Shader.hpp.
Referenced by TexEnv().
Definition at line 1666 of file Shader.hpp.
Referenced by TexEnv().
Definition at line 1667 of file Shader.hpp.
Referenced by TexEnv().
Definition at line 1668 of file Shader.hpp.
Referenced by TexEnv().
float vl::TexEnv::mLodBias |
Definition at line 1669 of file Shader.hpp.
Definition at line 1670 of file Shader.hpp.