Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Attributes | List of all members
BIAS::glfBlendMode Class Reference

Defines the function that blends rendered geometry with its background. More...

#include <OpenGLFramework/Base/glfBlendMode.hh>

+ Collaboration diagram for BIAS::glfBlendMode:

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...
 

Detailed Description

Defines the function that blends rendered geometry with its background.

Author
jkollmann

Definition at line 37 of file glfBlendMode.hh.

Constructor & Destructor Documentation

glfBlendMode::glfBlendMode ( )

Definition at line 32 of file glfBlendMode.cpp.

Member Function Documentation

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.

Member Data Documentation

const glfBlendMode glfBlendMode::DEFAULT
static

The default blend mode.

Definition at line 70 of file glfBlendMode.hh.

Referenced by BIAS::glfBatch::glfBatch(), and BIAS::glfBatch::SetDefaultRenderStates().


The documentation for this class was generated from the following files: