OpenSceneGraph
3.4.0
|
Encapsulates OpenGL blend/transparency state. More...
Public Member Functions | |
BlendColor () | |
BlendColor (const osg::Vec4 &constantColor) | |
BlendColor (const BlendColor &trans, const CopyOp ©op=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::Vec4 & | getConstantColor () |
const osg::Vec4 & | getConstantColor () const |
virtual void | apply (State &state) const |
apply the OpenGL state attributes. | |
Protected Member Functions | |
virtual | ~BlendColor () |
Protected Attributes | |
osg::Vec4 | _constantColor |
Encapsulates OpenGL blend/transparency state.
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] |
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.
osg::Vec4& osg::BlendColor::getConstantColor | ( | ) | [inline] |
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().
osg::BlendColor::META_StateAttribute | ( | osg | , |
BlendColor | , | ||
BLENDCOLOR | |||
) |
void osg::BlendColor::setConstantColor | ( | const osg::Vec4 & | color | ) | [inline] |
osg::Vec4 osg::BlendColor::_constantColor [protected] |
![]() | Generated at Tue Dec 8 2015 00:16:40 for the OpenSceneGraph by doxygen 1.7.6.1. |