OpenSceneGraph
3.4.0
|
Encapsulates glBlendFunci function : the index version of glBlendEquation for multiple render target. More...
Public Member Functions | |
BlendFunci () | |
BlendFunci (unsigned int buf, GLenum source, GLenum destination) | |
BlendFunci (unsigned int buf, GLenum source, GLenum destination, GLenum source_alpha, GLenum destination_alpha) | |
BlendFunci (const BlendFunci &cm, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
Copy constructor using CopyOp to manage deep vs shallow copy. | |
META_StateAttribute (osg, BlendFunci, BLENDFUNC) | |
virtual int | compare (const StateAttribute &sa) const |
Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. | |
virtual unsigned int | getMember () const |
Return the buffer index as the member identifier. | |
void | setIndex (unsigned int buf) |
Set the renderbuffer index of the BlendFunci. | |
unsigned int | getIndex () const |
Get the renderbuffer index of the BlendFunci. | |
virtual void | apply (State &state) const |
apply the OpenGL state attributes. | |
Protected Member Functions | |
virtual | ~BlendFunci () |
Protected Attributes | |
unsigned int | _index |
Encapsulates glBlendFunci function : the index version of glBlendEquation for multiple render target.
osg::BlendFunci::BlendFunci | ( | unsigned int | buf, |
GLenum | source, | ||
GLenum | destination | ||
) | [inline] |
osg::BlendFunci::BlendFunci | ( | unsigned int | buf, |
GLenum | source, | ||
GLenum | destination, | ||
GLenum | source_alpha, | ||
GLenum | destination_alpha | ||
) | [inline] |
osg::BlendFunci::BlendFunci | ( | const BlendFunci & | cm, |
const CopyOp & | copyop = CopyOp::SHALLOW_COPY |
||
) | [inline] |
Copy constructor using CopyOp to manage deep vs shallow copy.
virtual osg::BlendFunci::~BlendFunci | ( | ) | [protected, virtual] |
virtual void osg::BlendFunci::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::BlendFunc.
virtual int osg::BlendFunci::compare | ( | const StateAttribute & | sa | ) | const [inline, virtual] |
Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
Reimplemented from osg::BlendFunc.
References osg::BlendFunc::compare(), COMPARE_StateAttribute_Parameter, and COMPARE_StateAttribute_Types.
unsigned int osg::BlendFunci::getIndex | ( | ) | const [inline] |
Get the renderbuffer index of the BlendFunci.
virtual unsigned int osg::BlendFunci::getMember | ( | ) | const [inline, virtual] |
Return the buffer index as the member identifier.
Reimplemented from osg::StateAttribute.
osg::BlendFunci::META_StateAttribute | ( | osg | , |
BlendFunci | , | ||
BLENDFUNC | |||
) |
void osg::BlendFunci::setIndex | ( | unsigned int | buf | ) | [inline] |
Set the renderbuffer index of the BlendFunci.
unsigned int osg::BlendFunci::_index [protected] |
![]() | Generated at Tue Dec 8 2015 00:16:40 for the OpenSceneGraph by doxygen 1.7.6.1. |