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

Encapsulates OpenGL blend/transparency state. More...

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

List of all members.

Public Member Functions

 BlendColor ()
 BlendColor (const osg::Vec4 &constantColor)
 BlendColor (const BlendColor &trans, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 Copy constructor using CopyOp to manage deep vs shallow copy.
 META_StateAttribute (osg, BlendColor, BLENDCOLOR)
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 setConstantColor (const osg::Vec4 &color)
osg::Vec4getConstantColor ()
const osg::Vec4getConstantColor () const
virtual void apply (State &state) const
 apply the OpenGL state attributes.

Protected Member Functions

virtual ~BlendColor ()

Protected Attributes

osg::Vec4 _constantColor

Detailed Description

Encapsulates OpenGL blend/transparency state.


Constructor & Destructor Documentation

osg::BlendColor::BlendColor ( const osg::Vec4 constantColor)
osg::BlendColor::BlendColor ( const BlendColor trans,
const CopyOp copyop = CopyOp::SHALLOW_COPY 
) [inline]

Copy constructor using CopyOp to manage deep vs shallow copy.

virtual osg::BlendColor::~BlendColor ( ) [protected, virtual]

Member Function Documentation

virtual void osg::BlendColor::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.

virtual int osg::BlendColor::compare ( const StateAttribute sa) const [inline, virtual]

Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.

Implements osg::StateAttribute.

References COMPARE_StateAttribute_Parameter, and COMPARE_StateAttribute_Types.

const osg::Vec4& osg::BlendColor::getConstantColor ( ) const [inline]
virtual bool osg::BlendColor::getModeUsage ( StateAttribute::ModeUsage ) const [inline, virtual]

Return the modes associated with this StateAttribute.

Reimplemented from osg::StateAttribute.

References osg::StateAttribute::ModeUsage::usesMode().

void osg::BlendColor::setConstantColor ( const osg::Vec4 color) [inline]

Member Data Documentation


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

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