1 #ifndef MSP_GL_BLEND_H_
2 #define MSP_GL_BLEND_H_
13 SUBTRACT = GL_FUNC_SUBTRACT,
14 REVERSE_SUBTRACT = GL_FUNC_REVERSE_SUBTRACT,
23 SRC_COLOR = GL_SRC_COLOR,
24 ONE_MINUS_SRC_COLOR = GL_ONE_MINUS_SRC_COLOR,
25 SRC_ALPHA = GL_SRC_ALPHA,
26 ONE_MINUS_SRC_ALPHA = GL_ONE_MINUS_SRC_ALPHA,
27 DST_COLOR = GL_DST_COLOR,
28 ONE_MINUS_DST_COLOR = GL_ONE_MINUS_DST_COLOR,
29 DST_ALPHA = GL_DST_ALPHA,
30 ONE_MINUS_DST_ALPHA = GL_ONE_MINUS_DST_ALPHA,
31 CONSTANT_COLOR = GL_CONSTANT_COLOR,
32 ONE_MINUS_CONSTANT_COLOR = GL_ONE_MINUS_CONSTANT_COLOR,
33 CONSTANT_ALPHA = GL_CONSTANT_ALPHA,
34 ONE_MINUS_CONSTANT_ALPHA = GL_ONE_MINUS_CONSTANT_ALPHA
38 Blends incoming fragments with those already in the framebuffer.
40 class Blend: public Bindable<Blend>
44 BlendFactor src_factor;
45 BlendFactor dst_factor;
49 Blend(BlendFactor, BlendFactor);
50 Blend(BlendEquation, BlendFactor, BlendFactor);
56 static const Blend &alpha();