13 #ifndef SO_BLEND_MODE_H
14 #define SO_BLEND_MODE_H
17 #include <Inventor/nodes/SoSubNode.h>
18 #include <Inventor/fields/SoSFBool.h>
19 #include <Inventor/fields/SoSFEnum.h>
20 #include <Inventor/fields/SoSFFloat.h>
21 #include <Inventor/fields/SoSFColor.h>
22 #include <Inventor/system/SbOpenGL.h>
27 typedef SoNode inherited;
47 SUBTRACT = GL_FUNC_SUBTRACT,
48 REVERSE_SUBTRACT = GL_FUNC_REVERSE_SUBTRACT
54 SRC_COLOR = GL_SRC_COLOR,
55 ONE_MINUS_SRC_COLOR = GL_ONE_MINUS_SRC_COLOR,
56 DST_COLOR = GL_DST_COLOR,
57 ONE_MINUS_DST_COLOR = GL_ONE_MINUS_DST_COLOR,
58 SRC_ALPHA = GL_SRC_ALPHA,
59 ONE_MINUS_SRC_ALPHA = GL_ONE_MINUS_SRC_ALPHA,
60 DST_ALPHA = GL_DST_ALPHA,
61 ONE_MINUS_DST_ALPHA = GL_ONE_MINUS_DST_ALPHA,
62 CONSTANT_COLOR = GL_CONSTANT_COLOR,
63 ONE_MINUS_CONSTANT_COLOR = GL_ONE_MINUS_CONSTANT_COLOR,
64 CONSTANT_ALPHA = GL_CONSTANT_ALPHA,
65 ONE_MINUS_CONSTANT_ALPHA = GL_ONE_MINUS_CONSTANT_ALPHA,
66 SRC_ALPHA_SATURATE = GL_SRC_ALPHA_SATURATE
87 void GLRender(SoGLRenderAction *action)
override;
#define INVENTOR_SHADER_API
Define class export specifier.
Class SoBlendMode to manage the blending state in an Open Inventor node.
SoBlendMode()
Constructor.
SoSFEnum blendFunctionSrc
SoSFEnum blendFunctionDst
static void initClass()
Initialize class with runtime type system.
SoSFEnum alphaBlendFunctionSrc
SoSFEnum alphaBlendFunctionDst
SoSFColor constantBlendColor
@ BLEND_PREMULTIPLIED_BLEND
void GLRender(SoGLRenderAction *action) override
Add this node to element in state.
SoSFFloat constantBlendAlpha