Stores the current blending mode and parameters. More...
#include <Inventor/elements/SoBlendElement.h>
Classes | |
struct | BlendElementParameters |
BlendElementParameters packages all the different blending parameters. More... | |
Public Types | |
enum | BlendFactor { ZERO = SbEnums::BLEND_ZERO , ONE = SbEnums::BLEND_ONE , SRC_COLOR = SbEnums::BLEND_SRC_COLOR , ONE_MINUS_SRC_COLOR = SbEnums::BLEND_ONE_MINUS_SRC_COLOR , DST_COLOR = SbEnums::BLEND_DST_COLOR , ONE_MINUS_DST_COLOR = SbEnums::BLEND_ONE_MINUS_DST_COLOR , SRC_ALPHA = SbEnums::BLEND_SRC_ALPHA , ONE_MINUS_SRC_ALPHA = SbEnums::BLEND_ONE_MINUS_SRC_ALPHA , DST_ALPHA = SbEnums::BLEND_DST_ALPHA , ONE_MINUS_DST_ALPHA = SbEnums::BLEND_ONE_MINUS_DST_ALPHA , CONSTANT_COLOR = SbEnums::BLEND_CONSTANT_COLOR , ONE_MINUS_CONSTANT_COLOR = SbEnums::BLEND_ONE_MINUS_CONSTANT_COLOR , CONSTANT_ALPHA = SbEnums::BLEND_CONSTANT_ALPHA , ONE_MINUS_CONSTANT_ALPHA = SbEnums::BLEND_ONE_MINUS_CONSTANT_ALPHA , SRC_ALPHA_SATURATE = SbEnums::BLEND_SRC_ALPHA_SATURATE , SRC1_COLOR = SbEnums::BLEND_SRC1_COLOR , ONE_MINUS_SRC1_COLOR = SbEnums::BLEND_ONE_MINUS_SRC1_COLOR , SRC1_ALPHA = SbEnums::BLEND_SRC1_ALPHA , ONE_MINUS_SRC1_ALPHA = SbEnums::BLEND_ONE_MINUS_SRC1_ALPHA } |
BlendFactor as defined by OpenGL's glBlendFunc. More... | |
enum | BlendEquation { FUNC_ADD = SbEnums::BLEND_FUNC_ADD , FUNC_SUBTRACT = SbEnums::BLEND_FUNC_SUBTRACT , FUNC_REVERSE_SUBTRACT = SbEnums::BLEND_FUNC_REVERSE_SUBTRACT , MIN = SbEnums::BLEND_FUNC_MIN , MAX = SbEnums::BLEND_FUNC_MAX } |
Blend Equation as defined by OpenGL's glBlendEquation. More... | |
Public Member Functions | |
virtual void | print (FILE *fp) const |
Prints element (for debugging). | |
virtual void | push (SoState *state) |
Override push() method to keep GL up to date. | |
virtual void | pop (SoState *state, const SoElement *prevTopElement) |
Override pop() method to keep GL up to date. | |
Public Member Functions inherited from SoElement | |
virtual SoType | getTypeId () const |
Returns type identifier for element instance. | |
Public Member Functions inherited from SoTypedObject | |
SbBool | isOfType (const SoType &type) const |
Returns TRUE if this object is of the type specified in type or is derived from that type. | |
template<typename TypedObjectClass > | |
SbBool | isOfType () const |
Returns TRUE if this object is of the type of class TypedObjectClass or is derived from that class. | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Returns the type identifier for this class. | |
static int | getClassStackIndex () |
Returns the stack id for this element. | |
static void | set (SoState *state, const BlendElementParameters ¶meters) |
Sets the blending parameters. | |
static void | setBlending (SoState *state, bool enabled) |
Enable or disable blending. | |
static void | setFunction (SoState *state, const BlendFactor source, const BlendFactor destination) |
Sets the blending function. | |
static void | get (SoState *state, BlendElementParameters ¶meter) |
Retrieves the current blending parameters. | |
Static Public Member Functions inherited from SoElement | |
static SoType | getClassTypeId () |
Returns type identifier for SoElement class. | |
Static Public Member Functions inherited from SoTypedObject | |
static SoType | getClassTypeId () |
Returns the type identifier for this class. | |
Stores the current blending mode and parameters.
This element stores the current blending mode, including source and target factors for RGB and Alpha values, equation and color.
Definition at line 38 of file SoBlendElement.h.
Blend Equation as defined by OpenGL's glBlendEquation.
Enumerator | |
---|---|
FUNC_ADD | |
FUNC_SUBTRACT | |
FUNC_REVERSE_SUBTRACT | |
MIN | |
MAX |
Definition at line 72 of file SoBlendElement.h.
BlendFactor as defined by OpenGL's glBlendFunc.
Definition at line 46 of file SoBlendElement.h.
|
static |
Retrieves the current blending parameters.
|
static |
Returns the stack id for this element.
|
static |
Returns the type identifier for this class.
|
virtual |
Prints element (for debugging).
Reimplemented from SoElement.
|
virtual |
|
static |
Sets the blending parameters.
|
static |
Enable or disable blending.
|
static |
Sets the blending function.
Convenience function to shorten code only setting the blending function withput separating components.