|
Public Types |
| enum | CombineParam {
REPLACE = GL_REPLACE,
MODULATE = GL_MODULATE,
ADD = GL_ADD,
ADD_SIGNED = GL_ADD_SIGNED_ARB,
INTERPOLATE = GL_INTERPOLATE_ARB,
SUBTRACT = GL_SUBTRACT_ARB,
DOT3_RGB = GL_DOT3_RGB_ARB,
DOT3_RGBA = GL_DOT3_RGBA_ARB
} |
| enum | SourceParam {
CONSTANT = GL_CONSTANT_ARB,
PRIMARY_COLOR = GL_PRIMARY_COLOR_ARB,
PREVIOUS = GL_PREVIOUS_ARB,
TEXTURE = GL_TEXTURE,
TEXTURE0 = GL_TEXTURE0,
TEXTURE1 = GL_TEXTURE0+1,
TEXTURE2 = GL_TEXTURE0+2,
TEXTURE3 = GL_TEXTURE0+3,
TEXTURE4 = GL_TEXTURE0+4,
TEXTURE5 = GL_TEXTURE0+5,
TEXTURE6 = GL_TEXTURE0+6,
TEXTURE7 = GL_TEXTURE0+7
} |
| enum | OperandParam { SRC_COLOR = GL_SRC_COLOR,
ONE_MINUS_SRC_COLOR = GL_ONE_MINUS_SRC_COLOR,
SRC_ALPHA = GL_SRC_ALPHA,
ONE_MINUS_SRC_ALPHA = GL_ONE_MINUS_SRC_ALPHA
} |
Public Member Functions |
| | TexEnvCombine () |
| | TexEnvCombine (const TexEnvCombine &texenv, const CopyOp ©op=CopyOp::SHALLOW_COPY) |
| | Copy constructor using CopyOp to manage deep vs shallow copy.
|
| | META_StateAttribute (osg, TexEnvCombine, TEXENV) |
| virtual bool | isTextureAttribute () const |
| | Return true if StateAttribute is a type which controls texturing and needs to be issued w.r.t to specific texture unit.
|
| virtual int | compare (const StateAttribute &sa) const |
| | Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
|
| void | setCombine_RGB (GLint cm) |
| void | setCombine_Alpha (GLint cm) |
| GLint | getCombine_RGB () const |
| GLint | getCombine_Alpha () const |
| void | setSource0_RGB (GLint sp) |
| void | setSource1_RGB (GLint sp) |
| void | setSource2_RGB (GLint sp) |
| void | setSource0_Alpha (GLint sp) |
| void | setSource1_Alpha (GLint sp) |
| void | setSource2_Alpha (GLint sp) |
| GLint | getSource0_RGB () const |
| GLint | getSource1_RGB () const |
| GLint | getSource2_RGB () const |
| GLint | getSource0_Alpha () const |
| GLint | getSource1_Alpha () const |
| GLint | getSource2_Alpha () const |
| void | setOperand0_RGB (GLint op) |
| void | setOperand1_RGB (GLint op) |
| void | setOperand2_RGB (GLint op) |
| void | setOperand0_Alpha (GLint op) |
| void | setOperand1_Alpha (GLint op) |
| void | setOperand2_Alpha (GLint op) |
| GLint | getOperand0_RGB () const |
| GLint | getOperand1_RGB () const |
| GLint | getOperand2_RGB () const |
| GLint | getOperand0_Alpha () const |
| GLint | getOperand1_Alpha () const |
| GLint | getOperand2_Alpha () const |
| void | setScale_RGB (float scale) |
| void | setScale_Alpha (float scale) |
| float | getScale_RGB () const |
| float | getScale_Alpha () const |
| void | setConstantColor (const Vec4 &color) |
| const Vec4 & | getConstantColor () const |
| void | setConstantColorAsLightDirection (const Vec3 &direction) |
| | Set the constant color attribute to the given light direction for use with DOT3 combine operation.
|
| Vec3 | getConstantColorAsLightDirection () const |
| virtual void | apply (State &state) const |
| | apply the OpenGL state attributes.
|
Protected Member Functions |
| virtual | ~TexEnvCombine () |
| bool | needsTexEnvCombiner (GLint value) const |
| void | computeNeedoForTexEnvCombiners () |
Protected Attributes |
| bool | _needsTexEnvCrossbar |
| GLint | _combine_RGB |
| GLint | _combine_Alpha |
| GLint | _source0_RGB |
| GLint | _source1_RGB |
| GLint | _source2_RGB |
| GLint | _source0_Alpha |
| GLint | _source1_Alpha |
| GLint | _source2_Alpha |
| GLint | _operand0_RGB |
| GLint | _operand1_RGB |
| GLint | _operand2_RGB |
| GLint | _operand0_Alpha |
| GLint | _operand1_Alpha |
| GLint | _operand2_Alpha |
| float | _scale_RGB |
| float | _scale_Alpha |
| osg::Vec4 | _constantColor |