• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * GStreamer
3  * Copyright (C) 2012 Matthew Waters <ystreet00@gmail.com>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  */
20 /*
21  * Cogl
22  *
23  * An object oriented GL/GLES Abstraction/Utility Layer
24  *
25  * Copyright (C) 2009, 2011 Intel Corporation.
26  *
27  * This library is free software; you can redistribute it and/or
28  * modify it under the terms of the GNU Lesser General Public
29  * License as published by the Free Software Foundation; either
30  * version 2 of the License, or (at your option) any later version.
31  *
32  * This library is distributed in the hope that it will be useful,
33  * but WITHOUT ANY WARRANTY; without even the implied warranty of
34  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
35  * Lesser General Public License for more details.
36  *
37  * You should have received a copy of the GNU Lesser General Public
38  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
39  */
40 
41 GST_GL_EXT_BEGIN (blending,
42                   GST_GL_API_OPENGL | GST_GL_API_OPENGL3 |
43                   GST_GL_API_GLES2,
44                   1, 2,
45                   2, 0,
46                   "\0",
47                   "\0")
48 GST_GL_EXT_FUNCTION (void, BlendEquation,
49                      (GLenum                mode))
50 GST_GL_EXT_FUNCTION (void, BlendColor,
51                      (GLclampf              red,
52                       GLclampf              green,
53                       GLclampf              blue,
54                       GLclampf              alpha))
55 GST_GL_EXT_END ()
56 
57 /* Optional, declared in 1.4 or GLES 1.2 */
58 GST_GL_EXT_BEGIN (blend_func_separate,
59                   GST_GL_API_OPENGL | GST_GL_API_OPENGL3 |
60                   GST_GL_API_GLES2,
61                   1, 4,
62                   2, 0,
63                   "EXT\0",
64                   "blend_func_separate\0")
65 GST_GL_EXT_FUNCTION (void, BlendFuncSeparate,
66                      (GLenum                srcRGB,
67                       GLenum                dstRGB,
68                       GLenum                srcAlpha,
69                       GLenum                dstAlpha))
70 GST_GL_EXT_END ()
71 
72 /* Optional, declared in 2.0 */
73 GST_GL_EXT_BEGIN (blend_equation_separate,
74                   GST_GL_API_OPENGL | GST_GL_API_OPENGL3 |
75                   GST_GL_API_GLES2,
76                   2, 0,
77                   2, 0,
78                   "EXT\0",
79                   "blend_equation_separate\0")
80 GST_GL_EXT_FUNCTION (void, BlendEquationSeparate,
81                      (GLenum                modeRGB,
82                       GLenum                modeAlpha))
83 GST_GL_EXT_END ()
84 
85 /* GL and GLES 2.0 apis */
86 GST_GL_EXT_BEGIN (two_point_zero_api,
87                   GST_GL_API_OPENGL | GST_GL_API_OPENGL3 |
88                   GST_GL_API_GLES2,
89                   2, 0,
90                   2, 0,
91                   "\0",
92                   "\0")
93 GST_GL_EXT_FUNCTION (void, StencilFuncSeparate,
94                      (GLenum face, GLenum func, GLint ref, GLuint mask))
95 GST_GL_EXT_FUNCTION (void, StencilMaskSeparate,
96                      (GLenum face, GLuint mask))
97 GST_GL_EXT_FUNCTION (void, StencilOpSeparate,
98                      (GLenum face, GLenum fail, GLenum zfail, GLenum zpass))
99 GST_GL_EXT_END ()
100