1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
|
/*
* GStreamer
* Copyright (C) 2012 Matthew Waters <ystreet00@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
/*
* Cogl
*
* An object oriented GL/GLES Abstraction/Utility Layer
*
* Copyright (C) 2009, 2011 Intel Corporation.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
GST_GL_EXT_BEGIN (offscreen,
GST_GL_API_OPENGL | GST_GL_API_OPENGL3 |
GST_GL_API_GLES2,
3, 0,
2, 0,
/* for some reason the ARB version of this
extension doesn't have an ARB suffix for the
functions */
"ARB:\0EXT\0OES\0",
"framebuffer_object\0")
GST_GL_EXT_FUNCTION (void, GenRenderbuffers,
(GLsizei n,
GLuint *renderbuffers))
GST_GL_EXT_FUNCTION (void, DeleteRenderbuffers,
(GLsizei n,
const GLuint *renderbuffers))
GST_GL_EXT_FUNCTION (void, BindRenderbuffer,
(GLenum target,
GLuint renderbuffer))
GST_GL_EXT_FUNCTION (void, RenderbufferStorage,
(GLenum target,
GLenum internalformat,
GLsizei width,
GLsizei height))
GST_GL_EXT_FUNCTION (void, GenFramebuffers,
(GLsizei n,
GLuint *framebuffers))
GST_GL_EXT_FUNCTION (void, BindFramebuffer,
(GLenum target,
GLuint framebuffer))
GST_GL_EXT_FUNCTION (void, FramebufferTexture2D,
(GLenum target,
GLenum attachment,
GLenum textarget,
GLuint texture,
GLint level))
GST_GL_EXT_FUNCTION (void, FramebufferRenderbuffer,
(GLenum target,
GLenum attachment,
GLenum renderbuffertarget,
GLuint renderbuffer))
GST_GL_EXT_FUNCTION (GLboolean, IsRenderbuffer,
(GLuint renderbuffer))
GST_GL_EXT_FUNCTION (GLenum, CheckFramebufferStatus,
(GLenum target))
GST_GL_EXT_FUNCTION (void, DeleteFramebuffers,
(GLsizei n,
const GLuint *framebuffers))
GST_GL_EXT_FUNCTION (void, GenerateMipmap,
(GLenum target))
GST_GL_EXT_FUNCTION (void, GetFramebufferAttachmentParameteriv,
(GLenum target,
GLenum attachment,
GLenum pname,
GLint *params))
GST_GL_EXT_FUNCTION (void, GetRenderbufferParameteriv,
(GLenum target,
GLenum pname,
GLint *params))
GST_GL_EXT_FUNCTION (GLboolean, IsFramebuffer,
(GLuint framebuffer))
GST_GL_EXT_END ()
GST_GL_EXT_BEGIN (offscreen_blit,
GST_GL_API_OPENGL | GST_GL_API_OPENGL3 |
GST_GL_API_GLES2,
3, 0,
3, 0,
"EXT\0ANGLE\0",
"framebuffer_blit\0")
GST_GL_EXT_FUNCTION (void, BlitFramebuffer,
(GLint srcX0,
GLint srcY0,
GLint srcX1,
GLint srcY1,
GLint dstX0,
GLint dstY0,
GLint dstX1,
GLint dstY1,
GLbitfield mask,
GLenum filter))
GST_GL_EXT_END ()
GST_GL_EXT_BEGIN (framebuffer_discard,
GST_GL_API_NONE,
255, 255,
255, 255, /* not in either GLES */
"EXT\0",
"framebuffer_discard\0")
GST_GL_EXT_FUNCTION (void, DiscardFramebuffer,
(GLenum target,
GLsizei numAttachments,
const GLenum *attachments))
GST_GL_EXT_END ()
GST_GL_EXT_BEGIN (read_buffer,
GST_GL_API_OPENGL | GST_GL_API_OPENGL3 |
GST_GL_API_GLES2,
1, 0,
3, 0,
"NV\0",
"read_buffer\0")
GST_GL_EXT_FUNCTION (void, ReadBuffer,
(GLenum mode))
GST_GL_EXT_END ()
GST_GL_EXT_BEGIN (draw_buffers,
GST_GL_API_OPENGL | GST_GL_API_OPENGL3 |
GST_GL_API_GLES2,
2, 1,
3, 0,
"ARB\0ATI\0NV\0",
"draw_buffers\0")
GST_GL_EXT_FUNCTION (void, DrawBuffers,
(GLsizei n, const GLenum *bufs))
GST_GL_EXT_END ()
|