OpenSceneGraph
3.4.0
|
Encapsulates OpenGL BlendEquation state. More...
Public Types | |
enum | Equation { RGBA_MIN = GL_MIN, RGBA_MAX = GL_MAX, ALPHA_MIN = GL_ALPHA_MIN_SGIX, ALPHA_MAX = GL_ALPHA_MAX_SGIX, LOGIC_OP = GL_LOGIC_OP, FUNC_ADD = GL_FUNC_ADD, FUNC_SUBTRACT = GL_FUNC_SUBTRACT, FUNC_REVERSE_SUBTRACT = GL_FUNC_REVERSE_SUBTRACT } |
Public Member Functions | |
BlendEquation () | |
BlendEquation (Equation equation) | |
BlendEquation (Equation equationRGB, Equation equationAlpha) | |
BlendEquation (const BlendEquation &trans, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
Copy constructor using CopyOp to manage deep vs shallow copy. | |
META_StateAttribute (osg, BlendEquation, BLENDEQUATION) | |
virtual int | compare (const StateAttribute &sa) const |
Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. | |
virtual bool | getModeUsage (StateAttribute::ModeUsage &usage) const |
Return the modes associated with this StateAttribute. | |
void | setEquation (Equation equation) |
Equation | getEquation () const |
void | setEquationRGB (Equation equation) |
Equation | getEquationRGB () const |
void | setEquationAlpha (Equation equation) |
Equation | getEquationAlpha () const |
virtual void | apply (State &state) const |
apply the OpenGL state attributes. | |
Protected Member Functions | |
virtual | ~BlendEquation () |
Protected Attributes | |
Equation | _equationRGB |
Equation | _equationAlpha |
Encapsulates OpenGL BlendEquation state.
osg::BlendEquation::BlendEquation | ( | Equation | equation | ) |
osg::BlendEquation::BlendEquation | ( | Equation | equationRGB, |
Equation | equationAlpha | ||
) |
osg::BlendEquation::BlendEquation | ( | const BlendEquation & | trans, |
const CopyOp & | copyop = CopyOp::SHALLOW_COPY |
||
) | [inline] |
Copy constructor using CopyOp to manage deep vs shallow copy.
virtual osg::BlendEquation::~BlendEquation | ( | ) | [protected, virtual] |
virtual void osg::BlendEquation::apply | ( | State & | ) | const [virtual] |
apply the OpenGL state attributes.
The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state.
Reimplemented from osg::StateAttribute.
Reimplemented in osg::BlendEquationi.
virtual int osg::BlendEquation::compare | ( | const StateAttribute & | sa | ) | const [inline, virtual] |
Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
Implements osg::StateAttribute.
Reimplemented in osg::BlendEquationi.
References COMPARE_StateAttribute_Parameter, and COMPARE_StateAttribute_Types.
Referenced by osg::BlendEquationi::compare().
Equation osg::BlendEquation::getEquation | ( | ) | const [inline] |
Equation osg::BlendEquation::getEquationAlpha | ( | ) | const [inline] |
Equation osg::BlendEquation::getEquationRGB | ( | ) | const [inline] |
virtual bool osg::BlendEquation::getModeUsage | ( | StateAttribute::ModeUsage & | ) | const [inline, virtual] |
Return the modes associated with this StateAttribute.
Reimplemented from osg::StateAttribute.
References osg::StateAttribute::ModeUsage::usesMode().
void osg::BlendEquation::setEquation | ( | Equation | equation | ) | [inline] |
void osg::BlendEquation::setEquationAlpha | ( | Equation | equation | ) | [inline] |
void osg::BlendEquation::setEquationRGB | ( | Equation | equation | ) | [inline] |
Equation osg::BlendEquation::_equationAlpha [protected] |
Equation osg::BlendEquation::_equationRGB [protected] |
![]() | Generated at Tue Dec 8 2015 00:16:40 for the OpenSceneGraph by doxygen 1.7.6.1. |