21#ifndef _SO_BLEND_ELEMENT_H
22#define _SO_BLEND_ELEMENT_H
48 ZERO = SbEnums::BLEND_ZERO,
49 ONE = SbEnums::BLEND_ONE,
77 MIN = SbEnums::BLEND_FUNC_MIN,
78 MAX = SbEnums::BLEND_FUNC_MAX
135 virtual void print( FILE* fp )
const;
166 virtual SoElement* copyMatchInfo()
const;
171 static void initClass();
174 static void exitClass();
#define SO_ELEMENT_HEADER(className)
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Stores the curre...
BlendEquation
Blend Equation as defined by OpenGL's glBlendEquation.
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.
virtual void print(FILE *fp) const
Prints element (for debugging).
virtual void push(SoState *state)
Override push() method to keep GL up to date.
BlendFactor
BlendFactor as defined by OpenGL's glBlendFunc.
@ ONE_MINUS_CONSTANT_ALPHA
@ ONE_MINUS_CONSTANT_COLOR
static void set(SoState *state, const BlendElementParameters ¶meters)
Sets the blending parameters.
virtual void pop(SoState *state, const SoElement *prevTopElement)
Override pop() method to keep GL up to date.
static void get(SoState *state, BlendElementParameters ¶meter)
Retrieves the current blending parameters.
Abstract base class for all state elements.
BlendElementParameters packages all the different blending parameters.
BlendFactor destinationAlphaFactor
BlendFactor sourceRGBFactor
bool operator!=(const BlendElementParameters &other) const
BlendFactor destinationRGBFactor
bool operator==(const BlendElementParameters &other) const
BlendFactor sourceAlphaFactor