OpenSceneGraph 2.8.3
|
Encapsulates OpenGL BlendEquation state. More...
Classes | |
class | Extensions |
Encapsulates queries of extension availability, obtains extension function pointers, and provides convenience wrappers for calling extension functions. More... | |
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 (const BlendEquation &trans, const CopyOp ©op=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 |
virtual void | apply (State &state) const |
apply the OpenGL state attributes. | |
Static Public Member Functions | |
static Extensions * | getExtensions (unsigned int contextID, bool createIfNotInitalized) |
Returns the Extensions object for the given context. | |
static void | setExtensions (unsigned int contextID, Extensions *extensions) |
setExtensions() allows users to override the extensions across graphics contexts. | |
Protected Member Functions | |
virtual | ~BlendEquation () |
Protected Attributes | |
Equation | _equation |
Encapsulates OpenGL BlendEquation state.
osg::BlendEquation::BlendEquation | ( | ) |
osg::BlendEquation::BlendEquation | ( | Equation | equation | ) |
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] |
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.
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.
References COMPARE_StateAttribute_Parameter, and COMPARE_StateAttribute_Types.
Equation osg::BlendEquation::getEquation | ( | ) | const [inline] |
static Extensions* osg::BlendEquation::getExtensions | ( | unsigned int | contextID, |
bool | createIfNotInitalized | ||
) | [static] |
Returns the Extensions object for the given context.
If createIfNotInitalized is true and the Extensions object doesn't exist, getExtensions() creates it on the given context. Returns NULL if createIfNotInitalized is false and the Extensions object doesn't exist.
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().
osg::BlendEquation::META_StateAttribute | ( | osg | , |
BlendEquation | , | ||
BLENDEQUATION | |||
) |
void osg::BlendEquation::setEquation | ( | Equation | equation | ) | [inline] |
static void osg::BlendEquation::setExtensions | ( | unsigned int | contextID, |
Extensions * | extensions | ||
) | [static] |
setExtensions() allows users to override the extensions across graphics contexts.
Typically used when you have different extensions supported across graphics pipes, but need to ensure that they all use the same low common denominator extensions.
Equation osg::BlendEquation::_equation [protected] |
![]() | Generated at Tue Mar 22 2011 13:20:20 for the OpenSceneGraph by doxygen 1.7.3. |