13 #ifndef OGLPLUS_CONTEXT_BLENDING_1201040722_HPP
14 #define OGLPLUS_CONTEXT_BLENDING_1201040722_HPP
30 #if OGLPLUS_DOCUMENTATION_ONLY || GL_KHR_blend_equation_advanced
38 OGLPLUS_GLFUNC(BlendBarrierKHR)();
39 OGLPLUS_VERIFY_SIMPLE(BlendBarrierKHR);
79 #if OGLPLUS_DOCUMENTATION_ONLY || GL_VERSION_4_0
97 OGLPLUS_GLFUNC(BlendEquationi)(buffer, GLenum(eq));
117 OGLPLUS_GLFUNC(BlendEquationSeparatei)(
123 BlendEquationSeparatei,
137 OGLPLUS_GLFUNC(
BlendFunc)(GLenum(src), GLenum(dst));
162 #if OGLPLUS_DOCUMENTATION_ONLY || GL_VERSION_4_0
175 OGLPLUS_GLFUNC(BlendFunci)(buffer, GLenum(src), GLenum(dst));
197 OGLPLUS_GLFUNC(BlendFuncSeparatei)(
217 static void BlendColor(GLclampf r, GLclampf g, GLclampf b, GLclampf a)
227 #endif // include guard
Wrapper for blending operations.
Definition: blending.hpp:26
static void BlendEquation(GLuint buffer, OneOf< GLenum, std::tuple< oglplus::BlendEquation, oglplus::BlendEquationAdvanced > > eq)
Sets the blend equation for a particular draw buffer.
Definition: blending.hpp:86
static void BlendFunc(BlendFunction src, BlendFunction dst)
Sets the blend function.
Definition: blending.hpp:135
static void BlendFuncSeparate(GLuint buffer, BlendFunction src_rgb, BlendFunction dst_rgb, BlendFunction src_alpha, BlendFunction dst_alpha)
Sets the blend function separate for RGB and alpha for a buffer.
Definition: blending.hpp:189
static void BlendEquation(OneOf< GLenum, std::tuple< oglplus::BlendEquation, oglplus::BlendEquationAdvanced > > eq)
Sets the blend equation.
Definition: blending.hpp:48
static void BlendEquationSeparate(GLuint buffer, oglplus::BlendEquation eq_rgb, oglplus::BlendEquation eq_alpha)
Sets the blend equation separate for RGB and alpha for a buffer.
Definition: blending.hpp:111
static void BlendFunc(GLuint buffer, BlendFunction src, BlendFunction dst)
Sets the blend function for a particular buffer.
Definition: blending.hpp:169
static void BlendFuncSeparate(BlendFunction src_rgb, BlendFunction dst_rgb, BlendFunction src_alpha, BlendFunction dst_alpha)
Sets the blend function separate for RGB and alpha.
Definition: blending.hpp:146
Helper macro for optional checking of availability of GL function.
BlendEquation
Blend equation enumeration.
Definition: blend_function.hpp:49
BlendFunction
Blend function type enumeration.
Definition: blend_function.hpp:27
Stores a value having one of the listed types in a common representation.
Definition: one_of.hpp:60
static void BlendEquationSeparate(oglplus::BlendEquation eq_rgb, oglplus::BlendEquation eq_alpha)
Sets the blend equation separate for RGB and alpha.
Definition: blending.hpp:67
Exception class for general OpenGL errors.
Definition: basic.hpp:43
OpenGL blending function and equation enumeration.
static void BlendBarrier(void)
Specified boundaries between blending passes.
Definition: blending.hpp:36
static void BlendColor(GLclampf r, GLclampf g, GLclampf b, GLclampf a)
Sets the blend color.
Definition: blending.hpp:217
BlendEquationAdvanced
Advanced blend equation enumeration.
Definition: blend_function.hpp:71