13 #ifndef SO_BLEND_MODE_H
14 #define SO_BLEND_MODE_H
16 #include "SoShaderSystem.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
87 void GLRender(SoGLRenderAction *action)
override;
@ ONE_MINUS_CONSTANT_ALPHA
@ ONE_MINUS_CONSTANT_COLOR
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