Basic Image AlgorithmS Library
2.8.0
|
Defines the function that blends rendered geometry with its background. More...
#include <OpenGLFramework/Base/glfBlendMode.hh>
Public Member Functions | |
void | Bind () const |
Binds the blend mode. More... | |
void | EnableBlending (bool enable) |
Sets whether to enable blending. More... | |
glfBlendMode () | |
void | SetBlendEquation (GLenum equation) |
Sets the blend equation. More... | |
void | SetBlendFunc (GLenum sfactor, GLenum dfactor) |
Sets the blending factors for the source and destination color. More... | |
Static Public Attributes | |
static const glfBlendMode | DEFAULT |
The default blend mode. More... | |
Defines the function that blends rendered geometry with its background.
Definition at line 37 of file glfBlendMode.hh.
glfBlendMode::glfBlendMode | ( | ) |
Definition at line 32 of file glfBlendMode.cpp.
void glfBlendMode::Bind | ( | ) | const |
Binds the blend mode.
Definition at line 56 of file glfBlendMode.cpp.
Referenced by BIAS::glfBatch::SetDefaultRenderStates().
void glfBlendMode::EnableBlending | ( | bool | enable | ) |
Sets whether to enable blending.
If this is false (the default), all other values of the blend mode have no effect.
Definition at line 40 of file glfBlendMode.cpp.
void glfBlendMode::SetBlendEquation | ( | GLenum | equation | ) |
Sets the blend equation.
Valid values are: GL_FUNC_ADD, GL_FUNC_SUBTRACT, GL_FUNC_REVERSE_SUBTRACT, GL_FUNC_MIN, GL_FUNC_MAX. For a description of these, see: http://opengl.org/sdk/docs/man/xhtml/glBlendEquation.xml
Definition at line 45 of file glfBlendMode.cpp.
void glfBlendMode::SetBlendFunc | ( | GLenum | sfactor, |
GLenum | dfactor | ||
) |
Sets the blending factors for the source and destination color.
For a list of valid values and a description, see: http://opengl.org/sdk/docs/man/xhtml/glBlendFunc.xml
Definition at line 50 of file glfBlendMode.cpp.
|
static |
The default blend mode.
Definition at line 70 of file glfBlendMode.hh.
Referenced by BIAS::glfBatch::glfBatch(), and BIAS::glfBatch::SetDefaultRenderStates().