ClanLib  2.3.7
List of all members
CL_BlendMode Class Reference

Blend mode description. More...

#include <blend_mode.h>

Public Member Functions

Construction
 CL_BlendMode ()
 
 ~CL_BlendMode ()
 
Attributes
const CL_Colorfget_blend_color () const
 Returns the constant color used in the blend equations. More...
 
CL_BlendEquation get_blend_equation () const
 Returns the color blend equation. More...
 
CL_BlendEquation get_blend_equation_alpha () const
 Returns the alpha blend equation. More...
 
CL_BlendFunc get_blend_function_src () const
 Returns the source color blend function. More...
 
CL_BlendFunc get_blend_function_dest () const
 Returns the destination color blend function. More...
 
CL_BlendFunc get_blend_function_src_alpha () const
 Returns the source alpha blend function. More...
 
CL_BlendFunc get_blend_function_dest_alpha () const
 Returns the destination alpha blend function. More...
 
bool is_blend_enabled () const
 Returns true if blending mode is enabled. More...
 
Operations
bool operator== (const CL_BlendMode &other) const
 Returns true if the two blend mode are equal in states. More...
 
void enable_blending (bool value)
 Enable/Disable blending. More...
 
void set_blend_color (const CL_Colorf &color)
 Set the constant color used in the blend equations. More...
 
void set_blend_equation (CL_BlendEquation color, CL_BlendEquation alpha)
 Set the constant color used in the blend equations. More...
 
void set_blend_function (CL_BlendFunc src, CL_BlendFunc dest, CL_BlendFunc src_alpha, CL_BlendFunc dest_alpha)
 Set the blend functions. More...
 

Detailed Description

Blend mode description.

Constructor & Destructor Documentation

CL_BlendMode::CL_BlendMode ( )
CL_BlendMode::~CL_BlendMode ( )

Member Function Documentation

void CL_BlendMode::enable_blending ( bool  value)

Enable/Disable blending.

const CL_Colorf& CL_BlendMode::get_blend_color ( ) const

Returns the constant color used in the blend equations.

CL_BlendEquation CL_BlendMode::get_blend_equation ( ) const

Returns the color blend equation.

CL_BlendEquation CL_BlendMode::get_blend_equation_alpha ( ) const

Returns the alpha blend equation.

CL_BlendFunc CL_BlendMode::get_blend_function_dest ( ) const

Returns the destination color blend function.

CL_BlendFunc CL_BlendMode::get_blend_function_dest_alpha ( ) const

Returns the destination alpha blend function.

CL_BlendFunc CL_BlendMode::get_blend_function_src ( ) const

Returns the source color blend function.

CL_BlendFunc CL_BlendMode::get_blend_function_src_alpha ( ) const

Returns the source alpha blend function.

bool CL_BlendMode::is_blend_enabled ( ) const

Returns true if blending mode is enabled.

bool CL_BlendMode::operator== ( const CL_BlendMode other) const

Returns true if the two blend mode are equal in states.

void CL_BlendMode::set_blend_color ( const CL_Colorf color)

Set the constant color used in the blend equations.

void CL_BlendMode::set_blend_equation ( CL_BlendEquation  color,
CL_BlendEquation  alpha 
)

Set the constant color used in the blend equations.

void CL_BlendMode::set_blend_function ( CL_BlendFunc  src,
CL_BlendFunc  dest,
CL_BlendFunc  src_alpha,
CL_BlendFunc  dest_alpha 
)

Set the blend functions.


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