GL++
0.1
OpenGL API C++ Wrapper
|
Unit that control blending process. More...
#include <blend_unit.hpp>
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 &) | |
noncopyable & | operator= (noncopyable &) |
Friends | |
class | context |
All units are friend of context. |
Unit that control blending process.
void glpp::blend_unit::disable | ( | ) |
Disable blending mode.
void glpp::blend_unit::enable | ( | ) |
Enable blending mode.
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.
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 | ||
) |
Get pixel arithmetic for RGB components.
http://www.opengl.org/sdk/docs/man4/xhtml/glBlendFuncSeparate.xml
bool glpp::blend_unit::is_enabled | ( | ) |
Check if blending mode 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.
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.
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 | ||
) |
Specify pixel arithmetic.
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 | ||
) |