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

Encapsulates glBlendFunci function : the index version of glBlendEquation for multiple render target. More...

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

List of all members.

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

Detailed Description

Encapsulates glBlendFunci function : the index version of glBlendEquation for multiple render target.


Constructor & Destructor Documentation

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]

Member Function Documentation

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.

void osg::BlendFunci::setIndex ( unsigned int  buf) [inline]

Set the renderbuffer index of the BlendFunci.


Member Data Documentation

unsigned int osg::BlendFunci::_index [protected]

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.