Visualization Library 2.1.0
A 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>
Public Member Functions | |
TexEnv () | |
virtual ERenderState | type () const |
virtual void | apply (int index, const Camera *, OpenGLContext *ctx) const |
The parameter cameara is NULL if we are disabling the state, non-NULL if we are enabling it. More... | |
void | setMode (ETexEnvMode mode) |
ETexEnvMode | mode () const |
void | setCombineRGB (ETexEnvMode combineRGB) |
ETexEnvMode | combineRGB () const |
void | setCombineAlpha (ETexEnvMode combineAlpha) |
ETexEnvMode | combineAlpha () const |
void | setColor (const fvec4 &color) |
const 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 |
virtual ref< RenderState > | clone () const |
Public Member Functions inherited from vl::RenderStateIndexed | |
RenderStateIndexed () | |
Public Member Functions inherited from vl::RenderState | |
RenderState () | |
Public Member Functions inherited from vl::Object | |
Object () | |
Constructor. More... | |
Object (const Object &other) | |
Copy constructor: copies the name, ref count mutex and user data. More... | |
Object & | operator= (const Object &other) |
Copy operator: copies the object's name, ref count mutex and user data. More... | |
const std::string & | objectName () const |
The name of the object, by default set to the object's class name. More... | |
void | setObjectName (const char *name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setObjectName (const std::string &name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setRefCountMutex (IMutex *mutex) |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
IMutex * | refCountMutex () |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
const IMutex * | refCountMutex () const |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
int | referenceCount () const |
Returns the number of references of an object. More... | |
void | incReference () const |
Increments the reference count of an object. More... | |
void | decReference () |
Decrements the reference count of an object and deletes it if both automaticDelete() is true the count reaches 0. More... | |
void | setAutomaticDelete (bool autodel_on) |
If set to true the Object is deleted when its reference count reaches 0. More... | |
bool | automaticDelete () const |
If set to true the Object is deleted when its reference count reaches 0. More... | |
template<class T > | |
T * | as () |
Casts an Object to the specified class. More... | |
template<class T > | |
const T * | as () const |
Casts an Object to the specified class. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from vl::Object | |
virtual | ~Object () |
Protected Attributes inherited from vl::Object | |
std::string | mObjectName |
IMutex * | mRefCountMutex |
int | mReferenceCount |
bool | mAutomaticDelete |
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 853 of file Shader.cpp.
References vl::TEM_MODULATE, vl::TEM_REPLACE, vl::TEO_SRC_ALPHA, vl::TEO_SRC_COLOR, and vl::TES_TEXTURE.
|
inline |
Definition at line 1609 of file Shader.hpp.
|
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 883 of file Shader.cpp.
References vl::Has_GL_Version_1_3, vl::Has_GL_Version_1_4, vl::Has_Point_Sprite, vl::TEM_BLEND, vl::TEM_COMBINE, vl::TEM_INTERPOLATE, VL_CHECK, and VL_CHECK_OGL.
|
inlinevirtual |
Implements vl::RenderState.
Definition at line 1643 of file Shader.hpp.
|
inline |
Definition at line 1605 of file Shader.hpp.
|
inline |
Definition at line 1603 of file Shader.hpp.
|
inline |
Definition at line 1601 of file Shader.hpp.
|
inline |
Definition at line 1641 of file Shader.hpp.
|
inline |
Definition at line 1599 of file Shader.hpp.
|
inline |
Definition at line 1633 of file Shader.hpp.
|
inline |
Definition at line 1627 of file Shader.hpp.
|
inline |
Definition at line 1634 of file Shader.hpp.
|
inline |
Definition at line 1628 of file Shader.hpp.
|
inline |
Definition at line 1635 of file Shader.hpp.
|
inline |
Definition at line 1629 of file Shader.hpp.
|
inline |
Definition at line 1638 of file Shader.hpp.
|
inline |
Definition at line 1607 of file Shader.hpp.
|
inline |
Definition at line 1608 of file Shader.hpp.
|
inline |
Definition at line 1604 of file Shader.hpp.
|
inline |
Definition at line 1602 of file Shader.hpp.
|
inline |
Definition at line 1600 of file Shader.hpp.
|
inline |
Definition at line 1640 of file Shader.hpp.
|
inline |
Definition at line 1598 of file Shader.hpp.
Referenced by vl::Terrain::init().
|
inline |
Definition at line 1630 of file Shader.hpp.
|
inline |
Definition at line 1624 of file Shader.hpp.
|
inline |
Definition at line 1631 of file Shader.hpp.
|
inline |
Definition at line 1625 of file Shader.hpp.
|
inline |
Definition at line 1632 of file Shader.hpp.
|
inline |
Definition at line 1626 of file Shader.hpp.
|
inline |
Definition at line 1637 of file Shader.hpp.
Referenced by vl::VectorGraphics::popScissor().
|
inline |
Definition at line 1606 of file Shader.hpp.
|
inline |
Definition at line 1617 of file Shader.hpp.
|
inline |
Definition at line 1611 of file Shader.hpp.
|
inline |
Definition at line 1618 of file Shader.hpp.
|
inline |
Definition at line 1612 of file Shader.hpp.
|
inline |
Definition at line 1619 of file Shader.hpp.
|
inline |
Definition at line 1613 of file Shader.hpp.
|
inline |
Definition at line 1620 of file Shader.hpp.
|
inline |
Definition at line 1614 of file Shader.hpp.
|
inline |
Definition at line 1621 of file Shader.hpp.
|
inline |
Definition at line 1615 of file Shader.hpp.
|
inline |
Definition at line 1622 of file Shader.hpp.
|
inline |
Definition at line 1616 of file Shader.hpp.
|
inlinevirtual |
Reimplemented from vl::RenderState.
Definition at line 1595 of file Shader.hpp.
References vl::RS_TexEnv.
float vl::TexEnv::mAlphaScale |
Definition at line 1653 of file Shader.hpp.
fvec4 vl::TexEnv::mColor |
Definition at line 1651 of file Shader.hpp.
ETexEnvMode vl::TexEnv::mCombineAlpha |
Definition at line 1656 of file Shader.hpp.
ETexEnvMode vl::TexEnv::mCombineRGB |
Definition at line 1655 of file Shader.hpp.
float vl::TexEnv::mLodBias |
Definition at line 1669 of file Shader.hpp.
ETexEnvMode vl::TexEnv::mMode |
Definition at line 1654 of file Shader.hpp.
ETexEnvOperand vl::TexEnv::mOperand0Alpha |
Definition at line 1666 of file Shader.hpp.
ETexEnvOperand vl::TexEnv::mOperand0RGB |
Definition at line 1663 of file Shader.hpp.
ETexEnvOperand vl::TexEnv::mOperand1Alpha |
Definition at line 1667 of file Shader.hpp.
ETexEnvOperand vl::TexEnv::mOperand1RGB |
Definition at line 1664 of file Shader.hpp.
ETexEnvOperand vl::TexEnv::mOperand2Alpha |
Definition at line 1668 of file Shader.hpp.
ETexEnvOperand vl::TexEnv::mOperand2RGB |
Definition at line 1665 of file Shader.hpp.
bool vl::TexEnv::mPointSpriteCoordReplace |
Definition at line 1670 of file Shader.hpp.
float vl::TexEnv::mRGBScale |
Definition at line 1652 of file Shader.hpp.
ETexEnvSource vl::TexEnv::mSource0Alpha |
Definition at line 1660 of file Shader.hpp.
ETexEnvSource vl::TexEnv::mSource0RGB |
Definition at line 1657 of file Shader.hpp.
ETexEnvSource vl::TexEnv::mSource1Alpha |
Definition at line 1661 of file Shader.hpp.
ETexEnvSource vl::TexEnv::mSource1RGB |
Definition at line 1658 of file Shader.hpp.
ETexEnvSource vl::TexEnv::mSource2Alpha |
Definition at line 1662 of file Shader.hpp.
ETexEnvSource vl::TexEnv::mSource2RGB |
Definition at line 1659 of file Shader.hpp.
Visualization Library 2.1.0 Reference Documentation
Updated on Wed Mar 10 2021 16:02:55.
© Copyright Michele Bosi. All rights reserved.