Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Attributes | Private 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...
 

Private Attributes

GLenum dfactor_
 
GLboolean enable_
 
GLenum equation_
 
GLenum sfactor_
 

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.

References dfactor_, enable_, equation_, and sfactor_.

Member Function Documentation

void glfBlendMode::Bind ( ) const

Binds the blend mode.

Definition at line 56 of file glfBlendMode.cpp.

References dfactor_, enable_, equation_, and sfactor_.

Referenced by BIAS::glfBatch::BindRenderStates(), and 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.

References enable_.

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.

References equation_.

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.

References dfactor_, and sfactor_.

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

GLenum BIAS::glfBlendMode::dfactor_
private

Definition at line 75 of file glfBlendMode.hh.

Referenced by Bind(), glfBlendMode(), and SetBlendFunc().

GLboolean BIAS::glfBlendMode::enable_
private

Definition at line 73 of file glfBlendMode.hh.

Referenced by Bind(), EnableBlending(), and glfBlendMode().

GLenum BIAS::glfBlendMode::equation_
private

Definition at line 74 of file glfBlendMode.hh.

Referenced by Bind(), glfBlendMode(), and SetBlendEquation().

GLenum BIAS::glfBlendMode::sfactor_
private

Definition at line 75 of file glfBlendMode.hh.

Referenced by Bind(), glfBlendMode(), and SetBlendFunc().


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