OpenSceneGraph  3.4.0
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
osg::BlendEquation Class Reference

Encapsulates OpenGL BlendEquation state. More...

Inheritance diagram for osg::BlendEquation:
Inheritance graph
[legend]

List of all members.

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 &copyop=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

Detailed Description

Encapsulates OpenGL BlendEquation state.


Member Enumeration Documentation

Enumerator:
RGBA_MIN 
RGBA_MAX 
ALPHA_MIN 
ALPHA_MAX 
LOGIC_OP 
FUNC_ADD 
FUNC_SUBTRACT 
FUNC_REVERSE_SUBTRACT 

Constructor & Destructor Documentation

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]

Member Function Documentation

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().

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().


Member Data Documentation


The documentation for this class was generated from the following file:

osg logo
Generated at Tue Dec 8 2015 00:16:40 for the OpenSceneGraph by doxygen 1.7.6.1.