1 #ifndef MSP_GL_BLEND_H_
2 #define MSP_GL_BLEND_H_
6 #include <msp/gl/extensions/ext_blend_minmax.h>
14 SUBTRACT = GL_FUNC_SUBTRACT,
15 REVERSE_SUBTRACT = GL_FUNC_REVERSE_SUBTRACT,
24 SRC_COLOR = GL_SRC_COLOR,
25 ONE_MINUS_SRC_COLOR = GL_ONE_MINUS_SRC_COLOR,
26 SRC_ALPHA = GL_SRC_ALPHA,
27 ONE_MINUS_SRC_ALPHA = GL_ONE_MINUS_SRC_ALPHA,
28 DST_COLOR = GL_DST_COLOR,
29 ONE_MINUS_DST_COLOR = GL_ONE_MINUS_DST_COLOR,
30 DST_ALPHA = GL_DST_ALPHA,
31 ONE_MINUS_DST_ALPHA = GL_ONE_MINUS_DST_ALPHA,
32 CONSTANT_COLOR = GL_CONSTANT_COLOR,
33 ONE_MINUS_CONSTANT_COLOR = GL_ONE_MINUS_CONSTANT_COLOR,
34 CONSTANT_ALPHA = GL_CONSTANT_ALPHA,
35 ONE_MINUS_CONSTANT_ALPHA = GL_ONE_MINUS_CONSTANT_ALPHA
39 Blends incoming fragments with those already in the framebuffer.
41 class Blend: public Bindable<Blend>
45 BlendFactor src_factor;
46 BlendFactor dst_factor;
50 Blend(BlendFactor, BlendFactor);
51 Blend(BlendEquation, BlendFactor, BlendFactor);
57 static const Blend &alpha();