]> git.tdb.fi Git - libs/gl.git/blob - source/blend.h
Add the BLEND constant too
[libs/gl.git] / source / blend.h
1 /* $Id$
2
3 This file is part of libmspgl
4 Copyright © 2008  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_GL_BLEND_H_
9 #define MSP_GL_BLEND_H_
10
11 #include "gl.h"
12
13 namespace Msp {
14 namespace GL {
15
16 enum
17 {
18         BLEND = GL_BLEND
19 };
20
21 enum BlendEquation
22 {
23         ADD              = GL_FUNC_ADD,
24         SUBTRACT         = GL_FUNC_SUBTRACT,
25         REVERSE_SUBTRACT = GL_FUNC_REVERSE_SUBTRACT,
26         MIN              = GL_MIN,
27         MAX              = GL_MAX
28 };
29
30 enum BlendFactor
31 {
32         ZERO = GL_ZERO,
33         ONE = GL_ONE,
34         SRC_COLOR = GL_SRC_COLOR,
35         ONE_MINUS_SRC_COLOR = GL_ONE_MINUS_SRC_COLOR,
36         SRC_ALPHA = GL_SRC_ALPHA,
37         ONE_MINUS_SRC_ALPHA = GL_ONE_MINUS_SRC_ALPHA,
38         DST_COLOR = GL_DST_COLOR,
39         ONE_MINUS_DST_COLOR = GL_ONE_MINUS_DST_COLOR,
40         DST_ALPHA = GL_DST_ALPHA,
41         ONE_MINUS_DST_ALPHA = GL_ONE_MINUS_DST_ALPHA,
42         CONSTANT_COLOR = GL_CONSTANT_COLOR,
43         ONE_MINUS_CONSTANT_COLOR = GL_ONE_MINUS_CONSTANT_COLOR,
44         CONSTANT_ALPHA = GL_CONSTANT_ALPHA,
45         ONE_MINUS_CONSTANT_ALPHA = GL_ONE_MINUS_CONSTANT_ALPHA
46 };
47
48 void blend_equation(BlendEquation eq);
49 void blend_func(BlendFactor src, BlendFactor dst);
50
51 } // namespace GL
52 } // namespace Msp
53
54 #endif