GL++  0.1
OpenGL API C++ Wrapper
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends Groups Pages
glpp::blend_unit Struct Reference

Unit that control blending process. More...

#include <blend_unit.hpp>

Inheritance diagram for glpp::blend_unit:
glpp::noncopyable

Public Member Functions

void enable ()
 Enable blending mode.
void disable ()
 Disable blending mode.
bool is_enabled ()
 Check if blending mode is enabled.
void set_func (blend_factor sfactor, blend_factor dfactor)
 Specify pixel arithmetic.
void set_buffer_func (GLuint buffer_index, blend_factor sfactor, blend_factor dfactor)
 Specify pixel arithmetic per buffer.
void set_func_components (blend_factor srgb, blend_factor drgb, blend_factor salpha, blend_factor dalpha)
 Specify pixel arithmetic for RGB and alpha components separately.
void set_buffer_func_components (GLuint buffer_index, blend_factor srgb, blend_factor drgb, blend_factor salpha, blend_factor dalpha)
 Specify pixel arithmetic for RGB and alpha components separately ( per buffer)
void get_func_rgb (blend_factor &sfactor, blend_factor &dfactor)
 Get pixel arithmetic for RGB components.
void get_func_alpha (blend_factor &sfactor, blend_factor &dfactor)
 Get pixel arithmetic for Alpha components.
void set_const_color (GLfloat r, GLfloat g, GLfloat b, GLfloat a)
 Set constant color that is needed by some blend_factor.
void get_const_color (GLfloat &r, GLfloat &g, GLfloat &b, GLfloat &a)
 Get the constant color that is needed by some blend_factor.
void set_equation (blend_equation mode)
 Specify the equation used for both the RGB blend equation and the Alpha blend equation.
void set_buffer_equation (GLuint buffer_index, blend_equation mode)
 Specify the equation used for both the RGB blend equation and the Alpha blend equation (per buffer)
blend_equation get_equation_rgb ()
 Get the equation used for the RGB blend equation.
blend_equation get_equation_alpha ()
 Get the equation used for the Alpha blend equation.
void set_write_mask (bool red, bool green, bool blue, bool alpha)
void set_buffer_write_mask (GLuint buffer_index, bool red, bool green, bool blue, bool alpha)
void get_write_mask (bool &red, bool &green, bool &blue, bool &alpha)
- Public Member Functions inherited from glpp::noncopyable
 noncopyable (noncopyable &)
noncopyableoperator= (noncopyable &)

Friends

class context
 All units are friend of context.

Detailed Description

Unit that control blending process.

Remarks
non-copyable, non-inheritable

Member Function Documentation

void glpp::blend_unit::disable ( )
void glpp::blend_unit::enable ( )
void glpp::blend_unit::get_const_color ( GLfloat &  r,
GLfloat &  g,
GLfloat &  b,
GLfloat &  a 
)

Get the constant color that is needed by some blend_factor.

http://www.opengl.org/sdk/docs/man4/xhtml/glBlendColor.xml

blend_equation glpp::blend_unit::get_equation_alpha ( )

Get the equation used for the Alpha blend equation.

http://www.opengl.org/sdk/docs/man/xhtml/glBlendEquation.xml

blend_equation glpp::blend_unit::get_equation_rgb ( )

Get the equation used for the RGB blend equation.

http://www.opengl.org/sdk/docs/man/xhtml/glBlendEquation.xml

void glpp::blend_unit::get_func_alpha ( blend_factor &  sfactor,
blend_factor &  dfactor 
)

Get pixel arithmetic for Alpha components.

http://www.opengl.org/sdk/docs/man4/xhtml/glBlendFuncSeparate.xml

void glpp::blend_unit::get_func_rgb ( blend_factor &  sfactor,
blend_factor &  dfactor 
)
bool glpp::blend_unit::is_enabled ( )
void glpp::blend_unit::set_buffer_equation ( GLuint  buffer_index,
blend_equation  mode 
)

Specify the equation used for both the RGB blend equation and the Alpha blend equation (per buffer)

http://www.opengl.org/sdk/docs/man/xhtml/glBlendEquation.xml

void glpp::blend_unit::set_buffer_func ( GLuint  buffer_index,
blend_factor  sfactor,
blend_factor  dfactor 
)

Specify pixel arithmetic per buffer.

http://www.opengl.org/sdk/docs/man4/xhtml/glBlendFunc.xml

void glpp::blend_unit::set_buffer_func_components ( GLuint  buffer_index,
blend_factor  srgb,
blend_factor  drgb,
blend_factor  salpha,
blend_factor  dalpha 
)

Specify pixel arithmetic for RGB and alpha components separately ( per buffer)

http://www.opengl.org/sdk/docs/man4/xhtml/glBlendFuncSeparate.xml

void glpp::blend_unit::set_const_color ( GLfloat  r,
GLfloat  g,
GLfloat  b,
GLfloat  a 
)

Set constant color that is needed by some blend_factor.

http://www.opengl.org/sdk/docs/man4/xhtml/glBlendColor.xml

void glpp::blend_unit::set_equation ( blend_equation  mode)

Specify the equation used for both the RGB blend equation and the Alpha blend equation.

http://www.opengl.org/sdk/docs/man/xhtml/glBlendEquation.xml

void glpp::blend_unit::set_func ( blend_factor  sfactor,
blend_factor  dfactor 
)
void glpp::blend_unit::set_func_components ( blend_factor  srgb,
blend_factor  drgb,
blend_factor  salpha,
blend_factor  dalpha 
)

Specify pixel arithmetic for RGB and alpha components separately.

http://www.opengl.org/sdk/docs/man4/xhtml/glBlendFuncSeparate.xml

void glpp::blend_unit::set_write_mask ( bool  red,
bool  green,
bool  blue,
bool  alpha 
)

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