1 // Copyright 2016 The SwiftShader Authors. All Rights Reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // entry_points.cpp: GL entry points exports and definition
16
17 #include "main.h"
18 #include "entry_points.h"
19 #include "libEGL/main.h"
20
21 extern "C"
22 {
glActiveTexture(GLenum texture)23 GL_APICALL void GL_APIENTRY glActiveTexture(GLenum texture)
24 {
25 return gl::ActiveTexture(texture);
26 }
27
glAttachShader(GLuint program,GLuint shader)28 GL_APICALL void GL_APIENTRY glAttachShader(GLuint program, GLuint shader)
29 {
30 return gl::AttachShader(program, shader);
31 }
32
glBeginQueryEXT(GLenum target,GLuint name)33 GL_APICALL void GL_APIENTRY glBeginQueryEXT(GLenum target, GLuint name)
34 {
35 return gl::BeginQueryEXT(target, name);
36 }
37
glBindAttribLocation(GLuint program,GLuint index,const GLchar * name)38 GL_APICALL void GL_APIENTRY glBindAttribLocation(GLuint program, GLuint index, const GLchar* name)
39 {
40 return gl::BindAttribLocation(program, index, name);
41 }
42
glBindBuffer(GLenum target,GLuint buffer)43 GL_APICALL void GL_APIENTRY glBindBuffer(GLenum target, GLuint buffer)
44 {
45 return gl::BindBuffer(target, buffer);
46 }
47
glBindFramebuffer(GLenum target,GLuint framebuffer)48 GL_APICALL void GL_APIENTRY glBindFramebuffer(GLenum target, GLuint framebuffer)
49 {
50 return gl::BindFramebuffer(target, framebuffer);
51 }
52
glBindFramebufferOES(GLenum target,GLuint framebuffer)53 GL_APICALL void GL_APIENTRY glBindFramebufferOES(GLenum target, GLuint framebuffer)
54 {
55 return gl::BindFramebuffer(target, framebuffer);
56 }
57
glBindRenderbuffer(GLenum target,GLuint renderbuffer)58 GL_APICALL void GL_APIENTRY glBindRenderbuffer(GLenum target, GLuint renderbuffer)
59 {
60 return gl::BindRenderbuffer(target, renderbuffer);
61 }
62
glBindRenderbufferOES(GLenum target,GLuint renderbuffer)63 GL_APICALL void GL_APIENTRY glBindRenderbufferOES(GLenum target, GLuint renderbuffer)
64 {
65 return gl::BindRenderbuffer(target, renderbuffer);
66 }
67
glBindTexture(GLenum target,GLuint texture)68 GL_APICALL void GL_APIENTRY glBindTexture(GLenum target, GLuint texture)
69 {
70 return gl::BindTexture(target, texture);
71 }
72
glBlendColor(GLclampf red,GLclampf green,GLclampf blue,GLclampf alpha)73 GL_APICALL void GL_APIENTRY glBlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
74 {
75 return gl::BlendColor(red, green, blue, alpha);
76 }
77
glBlendEquation(GLenum mode)78 GL_APICALL void GL_APIENTRY glBlendEquation(GLenum mode)
79 {
80 return gl::BlendEquation(mode);
81 }
82
glBlendEquationSeparate(GLenum modeRGB,GLenum modeAlpha)83 GL_APICALL void GL_APIENTRY glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha)
84 {
85 return gl::BlendEquationSeparate(modeRGB, modeAlpha);
86 }
87
glBlendFunc(GLenum sfactor,GLenum dfactor)88 GL_APICALL void GL_APIENTRY glBlendFunc(GLenum sfactor, GLenum dfactor)
89 {
90 return gl::BlendFunc(sfactor, dfactor);
91 }
92
glBlendFuncSeparate(GLenum srcRGB,GLenum dstRGB,GLenum srcAlpha,GLenum dstAlpha)93 GL_APICALL void GL_APIENTRY glBlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
94 {
95 return gl::BlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
96 }
97
glBufferData(GLenum target,GLsizeiptr size,const GLvoid * data,GLenum usage)98 GL_APICALL void GL_APIENTRY glBufferData(GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage)
99 {
100 return gl::BufferData(target, size, data, usage);
101 }
102
glBufferSubData(GLenum target,GLintptr offset,GLsizeiptr size,const GLvoid * data)103 GL_APICALL void GL_APIENTRY glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data)
104 {
105 return gl::BufferSubData(target, offset, size, data);
106 }
107
glCheckFramebufferStatus(GLenum target)108 GL_APICALL GLenum GL_APIENTRY glCheckFramebufferStatus(GLenum target)
109 {
110 return gl::CheckFramebufferStatus(target);
111 }
112
glCheckFramebufferStatusOES(GLenum target)113 GL_APICALL GLenum GL_APIENTRY glCheckFramebufferStatusOES(GLenum target)
114 {
115 return gl::CheckFramebufferStatus(target);
116 }
117
glClear(GLbitfield mask)118 GL_APICALL void GL_APIENTRY glClear(GLbitfield mask)
119 {
120 return gl::Clear(mask);
121 }
122
glClearColor(GLclampf red,GLclampf green,GLclampf blue,GLclampf alpha)123 GL_APICALL void GL_APIENTRY glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
124 {
125 return gl::ClearColor(red, green, blue, alpha);
126 }
127
glClearDepthf(GLclampf depth)128 GL_APICALL void GL_APIENTRY glClearDepthf(GLclampf depth)
129 {
130 return gl::ClearDepthf(depth);
131 }
132
glClearStencil(GLint s)133 GL_APICALL void GL_APIENTRY glClearStencil(GLint s)
134 {
135 return gl::ClearStencil(s);
136 }
137
glColorMask(GLboolean red,GLboolean green,GLboolean blue,GLboolean alpha)138 GL_APICALL void GL_APIENTRY glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
139 {
140 return gl::ColorMask(red, green, blue, alpha);
141 }
142
glCompileShader(GLuint shader)143 GL_APICALL void GL_APIENTRY glCompileShader(GLuint shader)
144 {
145 return gl::CompileShader(shader);
146 }
147
glCompressedTexImage2D(GLenum target,GLint level,GLenum internalformat,GLsizei width,GLsizei height,GLint border,GLsizei imageSize,const GLvoid * data)148 GL_APICALL void GL_APIENTRY glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height,
149 GLint border, GLsizei imageSize, const GLvoid* data)
150 {
151 return gl::CompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data);
152 }
153
glCompressedTexSubImage2D(GLenum target,GLint level,GLint xoffset,GLint yoffset,GLsizei width,GLsizei height,GLenum format,GLsizei imageSize,const GLvoid * data)154 GL_APICALL void GL_APIENTRY glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height,
155 GLenum format, GLsizei imageSize, const GLvoid* data)
156 {
157 return gl::CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data);
158 }
159
glCopyTexImage2D(GLenum target,GLint level,GLenum internalformat,GLint x,GLint y,GLsizei width,GLsizei height,GLint border)160 GL_APICALL void GL_APIENTRY glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
161 {
162 return gl::CopyTexImage2D(target, level, internalformat, x, y, width, height, border);
163 }
164
glCopyTexSubImage2D(GLenum target,GLint level,GLint xoffset,GLint yoffset,GLint x,GLint y,GLsizei width,GLsizei height)165 GL_APICALL void GL_APIENTRY glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
166 {
167 return gl::CopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
168 }
169
glCreateProgram(void)170 GL_APICALL GLuint GL_APIENTRY glCreateProgram(void)
171 {
172 return gl::CreateProgram();
173 }
174
glCreateShader(GLenum type)175 GL_APICALL GLuint GL_APIENTRY glCreateShader(GLenum type)
176 {
177 return gl::CreateShader(type);
178 }
179
glCullFace(GLenum mode)180 GL_APICALL void GL_APIENTRY glCullFace(GLenum mode)
181 {
182 return gl::CullFace(mode);
183 }
184
glDeleteBuffers(GLsizei n,const GLuint * buffers)185 GL_APICALL void GL_APIENTRY glDeleteBuffers(GLsizei n, const GLuint* buffers)
186 {
187 return gl::DeleteBuffers(n, buffers);
188 }
189
glDeleteFencesNV(GLsizei n,const GLuint * fences)190 GL_APICALL void GL_APIENTRY glDeleteFencesNV(GLsizei n, const GLuint* fences)
191 {
192 return gl::DeleteFencesNV(n, fences);
193 }
194
glDeleteFramebuffers(GLsizei n,const GLuint * framebuffers)195 GL_APICALL void GL_APIENTRY glDeleteFramebuffers(GLsizei n, const GLuint* framebuffers)
196 {
197 return gl::DeleteFramebuffers(n, framebuffers);
198 }
199
glDeleteFramebuffersOES(GLsizei n,const GLuint * framebuffers)200 GL_APICALL void GL_APIENTRY glDeleteFramebuffersOES(GLsizei n, const GLuint* framebuffers)
201 {
202 return gl::DeleteFramebuffers(n, framebuffers);
203 }
204
glDeleteProgram(GLuint program)205 GL_APICALL void GL_APIENTRY glDeleteProgram(GLuint program)
206 {
207 return gl::DeleteProgram(program);
208 }
209
glDeleteQueriesEXT(GLsizei n,const GLuint * ids)210 GL_APICALL void GL_APIENTRY glDeleteQueriesEXT(GLsizei n, const GLuint *ids)
211 {
212 return gl::DeleteQueriesEXT(n, ids);
213 }
214
glDeleteRenderbuffers(GLsizei n,const GLuint * renderbuffers)215 GL_APICALL void GL_APIENTRY glDeleteRenderbuffers(GLsizei n, const GLuint* renderbuffers)
216 {
217 return gl::DeleteRenderbuffers(n, renderbuffers);
218 }
219
glDeleteRenderbuffersOES(GLsizei n,const GLuint * renderbuffers)220 GL_APICALL void GL_APIENTRY glDeleteRenderbuffersOES(GLsizei n, const GLuint* renderbuffers)
221 {
222 return gl::DeleteRenderbuffers(n, renderbuffers);
223 }
224
glDeleteShader(GLuint shader)225 GL_APICALL void GL_APIENTRY glDeleteShader(GLuint shader)
226 {
227 return gl::DeleteShader(shader);
228 }
229
glDeleteTextures(GLsizei n,const GLuint * textures)230 GL_APICALL void GL_APIENTRY glDeleteTextures(GLsizei n, const GLuint* textures)
231 {
232 return gl::DeleteTextures(n, textures);
233 }
234
glDepthFunc(GLenum func)235 GL_APICALL void GL_APIENTRY glDepthFunc(GLenum func)
236 {
237 return gl::DepthFunc(func);
238 }
239
glDepthMask(GLboolean flag)240 GL_APICALL void GL_APIENTRY glDepthMask(GLboolean flag)
241 {
242 return gl::DepthMask(flag);
243 }
244
glDepthRangef(GLclampf zNear,GLclampf zFar)245 GL_APICALL void GL_APIENTRY glDepthRangef(GLclampf zNear, GLclampf zFar)
246 {
247 return gl::DepthRangef(zNear, zFar);
248 }
249
glDetachShader(GLuint program,GLuint shader)250 GL_APICALL void GL_APIENTRY glDetachShader(GLuint program, GLuint shader)
251 {
252 return gl::DetachShader(program, shader);
253 }
254
glDisable(GLenum cap)255 GL_APICALL void GL_APIENTRY glDisable(GLenum cap)
256 {
257 return gl::Disable(cap);
258 }
259
glDisableVertexAttribArray(GLuint index)260 GL_APICALL void GL_APIENTRY glDisableVertexAttribArray(GLuint index)
261 {
262 return gl::DisableVertexAttribArray(index);
263 }
264
glDrawArrays(GLenum mode,GLint first,GLsizei count)265 GL_APICALL void GL_APIENTRY glDrawArrays(GLenum mode, GLint first, GLsizei count)
266 {
267 return gl::DrawArrays(mode, first, count);
268 }
269
glDrawElements(GLenum mode,GLsizei count,GLenum type,const GLvoid * indices)270 GL_APICALL void GL_APIENTRY glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid* indices)
271 {
272 return gl::DrawElements(mode, count, type, indices);
273 }
274
glDrawArraysInstancedEXT(GLenum mode,GLint first,GLsizei count,GLsizei instanceCount)275 GL_APICALL void GL_APIENTRY glDrawArraysInstancedEXT(GLenum mode, GLint first, GLsizei count, GLsizei instanceCount)
276 {
277 return gl::DrawArraysInstancedEXT(mode, first, count, instanceCount);
278 }
279
glDrawElementsInstancedEXT(GLenum mode,GLsizei count,GLenum type,const void * indices,GLsizei instanceCount)280 GL_APICALL void GL_APIENTRY glDrawElementsInstancedEXT(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instanceCount)
281 {
282 return gl::DrawElementsInstancedEXT(mode, count, type, indices, instanceCount);
283 }
284
glVertexAttribDivisorEXT(GLuint index,GLuint divisor)285 GL_APICALL void GL_APIENTRY glVertexAttribDivisorEXT(GLuint index, GLuint divisor)
286 {
287 return gl::VertexAttribDivisorEXT(index, divisor);
288 }
289
glDrawArraysInstancedANGLE(GLenum mode,GLint first,GLsizei count,GLsizei instanceCount)290 GL_APICALL void GL_APIENTRY glDrawArraysInstancedANGLE(GLenum mode, GLint first, GLsizei count, GLsizei instanceCount)
291 {
292 return gl::DrawArraysInstancedANGLE(mode, first, count, instanceCount);
293 }
294
glDrawElementsInstancedANGLE(GLenum mode,GLsizei count,GLenum type,const void * indices,GLsizei instanceCount)295 GL_APICALL void GL_APIENTRY glDrawElementsInstancedANGLE(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instanceCount)
296 {
297 return gl::DrawElementsInstancedANGLE(mode, count, type, indices, instanceCount);
298 }
299
glVertexAttribDivisorANGLE(GLuint index,GLuint divisor)300 GL_APICALL void GL_APIENTRY glVertexAttribDivisorANGLE(GLuint index, GLuint divisor)
301 {
302 return gl::VertexAttribDivisorANGLE(index, divisor);
303 }
304
glEnable(GLenum cap)305 GL_APICALL void GL_APIENTRY glEnable(GLenum cap)
306 {
307 return gl::Enable(cap);
308 }
309
glEnableVertexAttribArray(GLuint index)310 GL_APICALL void GL_APIENTRY glEnableVertexAttribArray(GLuint index)
311 {
312 return gl::EnableVertexAttribArray(index);
313 }
314
glEndQueryEXT(GLenum target)315 GL_APICALL void GL_APIENTRY glEndQueryEXT(GLenum target)
316 {
317 return gl::EndQueryEXT(target);
318 }
319
glFinishFenceNV(GLuint fence)320 GL_APICALL void GL_APIENTRY glFinishFenceNV(GLuint fence)
321 {
322 return gl::FinishFenceNV(fence);
323 }
324
glFinish(void)325 GL_APICALL void GL_APIENTRY glFinish(void)
326 {
327 return gl::Finish();
328 }
329
glFlush(void)330 GL_APICALL void GL_APIENTRY glFlush(void)
331 {
332 return gl::Flush();
333 }
334
glFramebufferRenderbuffer(GLenum target,GLenum attachment,GLenum renderbuffertarget,GLuint renderbuffer)335 GL_APICALL void GL_APIENTRY glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
336 {
337 return gl::FramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer);
338 }
339
glFramebufferRenderbufferOES(GLenum target,GLenum attachment,GLenum renderbuffertarget,GLuint renderbuffer)340 GL_APICALL void GL_APIENTRY glFramebufferRenderbufferOES(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
341 {
342 return gl::FramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer);
343 }
344
glFramebufferTexture2D(GLenum target,GLenum attachment,GLenum textarget,GLuint texture,GLint level)345 GL_APICALL void GL_APIENTRY glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
346 {
347 return gl::FramebufferTexture2D(target, attachment, textarget, texture, level);
348 }
349
glFramebufferTexture2DOES(GLenum target,GLenum attachment,GLenum textarget,GLuint texture,GLint level)350 GL_APICALL void GL_APIENTRY glFramebufferTexture2DOES(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
351 {
352 return gl::FramebufferTexture2D(target, attachment, textarget, texture, level);
353 }
354
glFrontFace(GLenum mode)355 GL_APICALL void GL_APIENTRY glFrontFace(GLenum mode)
356 {
357 return gl::FrontFace(mode);
358 }
359
glGenBuffers(GLsizei n,GLuint * buffers)360 GL_APICALL void GL_APIENTRY glGenBuffers(GLsizei n, GLuint* buffers)
361 {
362 return gl::GenBuffers(n, buffers);
363 }
364
glGenerateMipmap(GLenum target)365 GL_APICALL void GL_APIENTRY glGenerateMipmap(GLenum target)
366 {
367 return gl::GenerateMipmap(target);
368 }
369
glGenerateMipmapOES(GLenum target)370 GL_APICALL void GL_APIENTRY glGenerateMipmapOES(GLenum target)
371 {
372 return gl::GenerateMipmap(target);
373 }
374
glGenFencesNV(GLsizei n,GLuint * fences)375 GL_APICALL void GL_APIENTRY glGenFencesNV(GLsizei n, GLuint* fences)
376 {
377 return gl::GenFencesNV(n, fences);
378 }
379
glGenFramebuffers(GLsizei n,GLuint * framebuffers)380 GL_APICALL void GL_APIENTRY glGenFramebuffers(GLsizei n, GLuint* framebuffers)
381 {
382 return gl::GenFramebuffers(n, framebuffers);
383 }
384
glGenFramebuffersOES(GLsizei n,GLuint * framebuffers)385 GL_APICALL void GL_APIENTRY glGenFramebuffersOES(GLsizei n, GLuint* framebuffers)
386 {
387 return gl::GenFramebuffers(n, framebuffers);
388 }
389
glGenQueriesEXT(GLsizei n,GLuint * ids)390 GL_APICALL void GL_APIENTRY glGenQueriesEXT(GLsizei n, GLuint* ids)
391 {
392 return gl::GenQueriesEXT(n, ids);
393 }
394
glGenRenderbuffers(GLsizei n,GLuint * renderbuffers)395 GL_APICALL void GL_APIENTRY glGenRenderbuffers(GLsizei n, GLuint* renderbuffers)
396 {
397 return gl::GenRenderbuffers(n, renderbuffers);
398 }
399
glGenRenderbuffersOES(GLsizei n,GLuint * renderbuffers)400 GL_APICALL void GL_APIENTRY glGenRenderbuffersOES(GLsizei n, GLuint* renderbuffers)
401 {
402 return gl::GenRenderbuffers(n, renderbuffers);
403 }
404
glGenTextures(GLsizei n,GLuint * textures)405 GL_APICALL void GL_APIENTRY glGenTextures(GLsizei n, GLuint* textures)
406 {
407 return gl::GenTextures(n, textures);
408 }
409
glGetActiveAttrib(GLuint program,GLuint index,GLsizei bufsize,GLsizei * length,GLint * size,GLenum * type,GLchar * name)410 GL_APICALL void GL_APIENTRY glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, GLchar *name)
411 {
412 return gl::GetActiveAttrib(program, index, bufsize, length, size, type, name);
413 }
414
glGetActiveUniform(GLuint program,GLuint index,GLsizei bufsize,GLsizei * length,GLint * size,GLenum * type,GLchar * name)415 GL_APICALL void GL_APIENTRY glGetActiveUniform(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name)
416 {
417 return gl::GetActiveUniform(program, index, bufsize, length, size, type, name);
418 }
419
glGetAttachedShaders(GLuint program,GLsizei maxcount,GLsizei * count,GLuint * shaders)420 GL_APICALL void GL_APIENTRY glGetAttachedShaders(GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders)
421 {
422 return gl::GetAttachedShaders(program, maxcount, count, shaders);
423 }
424
glGetAttribLocation(GLuint program,const GLchar * name)425 GL_APICALL int GL_APIENTRY glGetAttribLocation(GLuint program, const GLchar* name)
426 {
427 return gl::GetAttribLocation(program, name);
428 }
429
glGetBooleanv(GLenum pname,GLboolean * params)430 GL_APICALL void GL_APIENTRY glGetBooleanv(GLenum pname, GLboolean* params)
431 {
432 return gl::GetBooleanv(pname, params);
433 }
434
glGetBufferParameteriv(GLenum target,GLenum pname,GLint * params)435 GL_APICALL void GL_APIENTRY glGetBufferParameteriv(GLenum target, GLenum pname, GLint* params)
436 {
437 return gl::GetBufferParameteriv(target, pname, params);
438 }
439
glGetError(void)440 GL_APICALL GLenum GL_APIENTRY glGetError(void)
441 {
442 return gl::GetError();
443 }
444
glGetFenceivNV(GLuint fence,GLenum pname,GLint * params)445 GL_APICALL void GL_APIENTRY glGetFenceivNV(GLuint fence, GLenum pname, GLint *params)
446 {
447 return gl::GetFenceivNV(fence, pname, params);
448 }
449
glGetFloatv(GLenum pname,GLfloat * params)450 GL_APICALL void GL_APIENTRY glGetFloatv(GLenum pname, GLfloat* params)
451 {
452 return gl::GetFloatv(pname, params);
453 }
454
glGetFramebufferAttachmentParameteriv(GLenum target,GLenum attachment,GLenum pname,GLint * params)455 GL_APICALL void GL_APIENTRY glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint* params)
456 {
457 return gl::GetFramebufferAttachmentParameteriv(target, attachment, pname, params);
458 }
459
glGetFramebufferAttachmentParameterivOES(GLenum target,GLenum attachment,GLenum pname,GLint * params)460 GL_APICALL void GL_APIENTRY glGetFramebufferAttachmentParameterivOES(GLenum target, GLenum attachment, GLenum pname, GLint* params)
461 {
462 return gl::GetFramebufferAttachmentParameteriv(target, attachment, pname, params);
463 }
464
glGetGraphicsResetStatusEXT(void)465 GL_APICALL GLenum GL_APIENTRY glGetGraphicsResetStatusEXT(void)
466 {
467 return gl::GetGraphicsResetStatusEXT();
468 }
469
glGetIntegerv(GLenum pname,GLint * params)470 GL_APICALL void GL_APIENTRY glGetIntegerv(GLenum pname, GLint* params)
471 {
472 return gl::GetIntegerv(pname, params);
473 }
474
glGetProgramiv(GLuint program,GLenum pname,GLint * params)475 GL_APICALL void GL_APIENTRY glGetProgramiv(GLuint program, GLenum pname, GLint* params)
476 {
477 return gl::GetProgramiv(program, pname, params);
478 }
479
glGetProgramInfoLog(GLuint program,GLsizei bufsize,GLsizei * length,GLchar * infolog)480 GL_APICALL void GL_APIENTRY glGetProgramInfoLog(GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog)
481 {
482 return gl::GetProgramInfoLog(program, bufsize, length, infolog);
483 }
484
glGetQueryivEXT(GLenum target,GLenum pname,GLint * params)485 GL_APICALL void GL_APIENTRY glGetQueryivEXT(GLenum target, GLenum pname, GLint *params)
486 {
487 return gl::GetQueryivEXT(target, pname, params);
488 }
489
glGetQueryObjectuivEXT(GLuint name,GLenum pname,GLuint * params)490 GL_APICALL void GL_APIENTRY glGetQueryObjectuivEXT(GLuint name, GLenum pname, GLuint *params)
491 {
492 return gl::GetQueryObjectuivEXT(name, pname, params);
493 }
494
glGetRenderbufferParameteriv(GLenum target,GLenum pname,GLint * params)495 GL_APICALL void GL_APIENTRY glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint* params)
496 {
497 return gl::GetRenderbufferParameteriv(target, pname, params);
498 }
499
glGetRenderbufferParameterivOES(GLenum target,GLenum pname,GLint * params)500 GL_APICALL void GL_APIENTRY glGetRenderbufferParameterivOES(GLenum target, GLenum pname, GLint* params)
501 {
502 return gl::GetRenderbufferParameteriv(target, pname, params);
503 }
504
glGetShaderiv(GLuint shader,GLenum pname,GLint * params)505 GL_APICALL void GL_APIENTRY glGetShaderiv(GLuint shader, GLenum pname, GLint* params)
506 {
507 return gl::GetShaderiv(shader, pname, params);
508 }
509
glGetShaderInfoLog(GLuint shader,GLsizei bufsize,GLsizei * length,GLchar * infolog)510 GL_APICALL void GL_APIENTRY glGetShaderInfoLog(GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog)
511 {
512 return gl::GetShaderInfoLog(shader, bufsize, length, infolog);
513 }
514
glGetShaderPrecisionFormat(GLenum shadertype,GLenum precisiontype,GLint * range,GLint * precision)515 GL_APICALL void GL_APIENTRY glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision)
516 {
517 return gl::GetShaderPrecisionFormat(shadertype, precisiontype, range, precision);
518 }
519
glGetShaderSource(GLuint shader,GLsizei bufsize,GLsizei * length,GLchar * source)520 GL_APICALL void GL_APIENTRY glGetShaderSource(GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source)
521 {
522 return gl::GetShaderSource(shader, bufsize, length, source);
523 }
524
glGetString(GLenum name)525 GL_APICALL const GLubyte* GL_APIENTRY glGetString(GLenum name)
526 {
527 return gl::GetString(name);
528 }
529
glGetTexParameterfv(GLenum target,GLenum pname,GLfloat * params)530 GL_APICALL void GL_APIENTRY glGetTexParameterfv(GLenum target, GLenum pname, GLfloat* params)
531 {
532 return gl::GetTexParameterfv(target, pname, params);
533 }
534
glGetTexParameteriv(GLenum target,GLenum pname,GLint * params)535 GL_APICALL void GL_APIENTRY glGetTexParameteriv(GLenum target, GLenum pname, GLint* params)
536 {
537 return gl::GetTexParameteriv(target, pname, params);
538 }
539
glGetnUniformfvEXT(GLuint program,GLint location,GLsizei bufSize,GLfloat * params)540 GL_APICALL void GL_APIENTRY glGetnUniformfvEXT(GLuint program, GLint location, GLsizei bufSize, GLfloat* params)
541 {
542 return gl::GetnUniformfvEXT(program, location, bufSize, params);
543 }
544
glGetUniformfv(GLuint program,GLint location,GLfloat * params)545 GL_APICALL void GL_APIENTRY glGetUniformfv(GLuint program, GLint location, GLfloat* params)
546 {
547 return gl::GetUniformfv(program, location, params);
548 }
549
glGetnUniformivEXT(GLuint program,GLint location,GLsizei bufSize,GLint * params)550 GL_APICALL void GL_APIENTRY glGetnUniformivEXT(GLuint program, GLint location, GLsizei bufSize, GLint* params)
551 {
552 return gl::GetnUniformivEXT(program, location, bufSize, params);
553 }
554
glGetUniformiv(GLuint program,GLint location,GLint * params)555 GL_APICALL void GL_APIENTRY glGetUniformiv(GLuint program, GLint location, GLint* params)
556 {
557 return gl::GetUniformiv(program, location, params);
558 }
559
glGetUniformLocation(GLuint program,const GLchar * name)560 GL_APICALL int GL_APIENTRY glGetUniformLocation(GLuint program, const GLchar* name)
561 {
562 return gl::GetUniformLocation(program, name);
563 }
564
glGetVertexAttribfv(GLuint index,GLenum pname,GLfloat * params)565 GL_APICALL void GL_APIENTRY glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat* params)
566 {
567 return gl::GetVertexAttribfv(index, pname, params);
568 }
569
glGetVertexAttribiv(GLuint index,GLenum pname,GLint * params)570 GL_APICALL void GL_APIENTRY glGetVertexAttribiv(GLuint index, GLenum pname, GLint* params)
571 {
572 return gl::GetVertexAttribiv(index, pname, params);
573 }
574
glGetVertexAttribPointerv(GLuint index,GLenum pname,GLvoid ** pointer)575 GL_APICALL void GL_APIENTRY glGetVertexAttribPointerv(GLuint index, GLenum pname, GLvoid** pointer)
576 {
577 return gl::GetVertexAttribPointerv(index, pname, pointer);
578 }
579
glHint(GLenum target,GLenum mode)580 GL_APICALL void GL_APIENTRY glHint(GLenum target, GLenum mode)
581 {
582 return gl::Hint(target, mode);
583 }
584
glIsBuffer(GLuint buffer)585 GL_APICALL GLboolean GL_APIENTRY glIsBuffer(GLuint buffer)
586 {
587 return gl::IsBuffer(buffer);
588 }
589
glIsEnabled(GLenum cap)590 GL_APICALL GLboolean GL_APIENTRY glIsEnabled(GLenum cap)
591 {
592 return gl::IsEnabled(cap);
593 }
594
glIsFenceNV(GLuint fence)595 GL_APICALL GLboolean GL_APIENTRY glIsFenceNV(GLuint fence)
596 {
597 return gl::IsFenceNV(fence);
598 }
599
glIsFramebuffer(GLuint framebuffer)600 GL_APICALL GLboolean GL_APIENTRY glIsFramebuffer(GLuint framebuffer)
601 {
602 return gl::IsFramebuffer(framebuffer);
603 }
604
glIsFramebufferOES(GLuint framebuffer)605 GL_APICALL GLboolean GL_APIENTRY glIsFramebufferOES(GLuint framebuffer)
606 {
607 return gl::IsFramebuffer(framebuffer);
608 }
609
glIsProgram(GLuint program)610 GL_APICALL GLboolean GL_APIENTRY glIsProgram(GLuint program)
611 {
612 return gl::IsProgram(program);
613 }
614
glIsQueryEXT(GLuint name)615 GL_APICALL GLboolean GL_APIENTRY glIsQueryEXT(GLuint name)
616 {
617 return gl::IsQueryEXT(name);
618 }
619
glIsRenderbuffer(GLuint renderbuffer)620 GL_APICALL GLboolean GL_APIENTRY glIsRenderbuffer(GLuint renderbuffer)
621 {
622 return gl::IsRenderbuffer(renderbuffer);
623 }
624
glIsRenderbufferOES(GLuint renderbuffer)625 GL_APICALL GLboolean GL_APIENTRY glIsRenderbufferOES(GLuint renderbuffer)
626 {
627 return gl::IsRenderbuffer(renderbuffer);
628 }
629
glIsShader(GLuint shader)630 GL_APICALL GLboolean GL_APIENTRY glIsShader(GLuint shader)
631 {
632 return gl::IsShader(shader);
633 }
634
glIsTexture(GLuint texture)635 GL_APICALL GLboolean GL_APIENTRY glIsTexture(GLuint texture)
636 {
637 return gl::IsTexture(texture);
638 }
639
glLineWidth(GLfloat width)640 GL_APICALL void GL_APIENTRY glLineWidth(GLfloat width)
641 {
642 return gl::LineWidth(width);
643 }
644
glLinkProgram(GLuint program)645 GL_APICALL void GL_APIENTRY glLinkProgram(GLuint program)
646 {
647 return gl::LinkProgram(program);
648 }
649
glPixelStorei(GLenum pname,GLint param)650 GL_APICALL void GL_APIENTRY glPixelStorei(GLenum pname, GLint param)
651 {
652 return gl::PixelStorei(pname, param);
653 }
654
glPolygonOffset(GLfloat factor,GLfloat units)655 GL_APICALL void GL_APIENTRY glPolygonOffset(GLfloat factor, GLfloat units)
656 {
657 return gl::PolygonOffset(factor, units);
658 }
659
glReadnPixelsEXT(GLint x,GLint y,GLsizei width,GLsizei height,GLenum format,GLenum type,GLsizei bufSize,GLvoid * data)660 GL_APICALL void GL_APIENTRY glReadnPixelsEXT(GLint x, GLint y, GLsizei width, GLsizei height,
661 GLenum format, GLenum type, GLsizei bufSize, GLvoid *data)
662 {
663 return gl::ReadnPixelsEXT(x, y, width, height, format, type, bufSize, data);
664 }
665
glReadPixels(GLint x,GLint y,GLsizei width,GLsizei height,GLenum format,GLenum type,GLvoid * pixels)666 GL_APICALL void GL_APIENTRY glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels)
667 {
668 return gl::ReadPixels(x, y, width, height, format, type, pixels);
669 }
670
glReleaseShaderCompiler(void)671 GL_APICALL void GL_APIENTRY glReleaseShaderCompiler(void)
672 {
673 return gl::ReleaseShaderCompiler();
674 }
675
glRenderbufferStorageMultisample(GLenum target,GLsizei samples,GLenum internalformat,GLsizei width,GLsizei height)676 GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height)
677 {
678 return gl::RenderbufferStorageMultisample(target, samples, internalformat, width, height);
679 }
680
glRenderbufferStorageMultisampleANGLE(GLenum target,GLsizei samples,GLenum internalformat,GLsizei width,GLsizei height)681 GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleANGLE(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height)
682 {
683 return gl::RenderbufferStorageMultisampleANGLE(target, samples, internalformat, width, height);
684 }
685
glRenderbufferStorage(GLenum target,GLenum internalformat,GLsizei width,GLsizei height)686 GL_APICALL void GL_APIENTRY glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
687 {
688 return gl::RenderbufferStorage(target, internalformat, width, height);
689 }
690
glRenderbufferStorageOES(GLenum target,GLenum internalformat,GLsizei width,GLsizei height)691 GL_APICALL void GL_APIENTRY glRenderbufferStorageOES(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
692 {
693 return gl::RenderbufferStorage(target, internalformat, width, height);
694 }
695
glSampleCoverage(GLclampf value,GLboolean invert)696 GL_APICALL void GL_APIENTRY glSampleCoverage(GLclampf value, GLboolean invert)
697 {
698 return gl::SampleCoverage(value, invert);
699 }
700
glSetFenceNV(GLuint fence,GLenum condition)701 GL_APICALL void GL_APIENTRY glSetFenceNV(GLuint fence, GLenum condition)
702 {
703 return gl::SetFenceNV(fence, condition);
704 }
705
glScissor(GLint x,GLint y,GLsizei width,GLsizei height)706 GL_APICALL void GL_APIENTRY glScissor(GLint x, GLint y, GLsizei width, GLsizei height)
707 {
708 return gl::Scissor(x, y, width, height);
709 }
710
glShaderBinary(GLsizei n,const GLuint * shaders,GLenum binaryformat,const GLvoid * binary,GLsizei length)711 GL_APICALL void GL_APIENTRY glShaderBinary(GLsizei n, const GLuint* shaders, GLenum binaryformat, const GLvoid* binary, GLsizei length)
712 {
713 return gl::ShaderBinary(n, shaders, binaryformat, binary, length);
714 }
715
glShaderSource(GLuint shader,GLsizei count,const GLchar * const * string,const GLint * length)716 GL_APICALL void GL_APIENTRY glShaderSource(GLuint shader, GLsizei count, const GLchar *const *string, const GLint *length)
717 {
718 return gl::ShaderSource(shader, count, string, length);
719 }
720
glStencilFunc(GLenum func,GLint ref,GLuint mask)721 GL_APICALL void GL_APIENTRY glStencilFunc(GLenum func, GLint ref, GLuint mask)
722 {
723 return gl::StencilFunc(func, ref, mask);
724 }
725
glStencilFuncSeparate(GLenum face,GLenum func,GLint ref,GLuint mask)726 GL_APICALL void GL_APIENTRY glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask)
727 {
728 return gl::StencilFuncSeparate(face, func, ref, mask);
729 }
730
glStencilMask(GLuint mask)731 GL_APICALL void GL_APIENTRY glStencilMask(GLuint mask)
732 {
733 return gl::StencilMask(mask);
734 }
735
glStencilMaskSeparate(GLenum face,GLuint mask)736 GL_APICALL void GL_APIENTRY glStencilMaskSeparate(GLenum face, GLuint mask)
737 {
738 return gl::StencilMaskSeparate(face, mask);
739 }
740
glStencilOp(GLenum fail,GLenum zfail,GLenum zpass)741 GL_APICALL void GL_APIENTRY glStencilOp(GLenum fail, GLenum zfail, GLenum zpass)
742 {
743 return gl::StencilOp(fail, zfail, zpass);
744 }
745
glStencilOpSeparate(GLenum face,GLenum fail,GLenum zfail,GLenum zpass)746 GL_APICALL void GL_APIENTRY glStencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass)
747 {
748 return gl::StencilOpSeparate(face, fail, zfail, zpass);
749 }
750
glTestFenceNV(GLuint fence)751 GLboolean GL_APIENTRY glTestFenceNV(GLuint fence)
752 {
753 return gl::TestFenceNV(fence);
754 }
755
glTexImage2D(GLenum target,GLint level,GLint internalformat,GLsizei width,GLsizei height,GLint border,GLenum format,GLenum type,const GLvoid * pixels)756 GL_APICALL void GL_APIENTRY glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height,
757 GLint border, GLenum format, GLenum type, const GLvoid* pixels)
758 {
759 return gl::TexImage2D(target, level, internalformat, width, height, border, format, type, pixels);
760 }
761
glTexParameterf(GLenum target,GLenum pname,GLfloat param)762 GL_APICALL void GL_APIENTRY glTexParameterf(GLenum target, GLenum pname, GLfloat param)
763 {
764 return gl::TexParameterf(target, pname, param);
765 }
766
glTexParameterfv(GLenum target,GLenum pname,const GLfloat * params)767 GL_APICALL void GL_APIENTRY glTexParameterfv(GLenum target, GLenum pname, const GLfloat* params)
768 {
769 return gl::TexParameterfv(target, pname, params);
770 }
771
glTexParameteri(GLenum target,GLenum pname,GLint param)772 GL_APICALL void GL_APIENTRY glTexParameteri(GLenum target, GLenum pname, GLint param)
773 {
774 return gl::TexParameteri(target, pname, param);
775 }
776
glTexParameteriv(GLenum target,GLenum pname,const GLint * params)777 GL_APICALL void GL_APIENTRY glTexParameteriv(GLenum target, GLenum pname, const GLint* params)
778 {
779 return gl::TexParameteriv(target, pname, params);
780 }
781
glTexSubImage2D(GLenum target,GLint level,GLint xoffset,GLint yoffset,GLsizei width,GLsizei height,GLenum format,GLenum type,const GLvoid * pixels)782 GL_APICALL void GL_APIENTRY glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height,
783 GLenum format, GLenum type, const GLvoid* pixels)
784 {
785 return gl::TexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels);
786 }
787
glUniform1f(GLint location,GLfloat x)788 GL_APICALL void GL_APIENTRY glUniform1f(GLint location, GLfloat x)
789 {
790 return gl::Uniform1f(location, x);
791 }
792
glUniform1fv(GLint location,GLsizei count,const GLfloat * v)793 GL_APICALL void GL_APIENTRY glUniform1fv(GLint location, GLsizei count, const GLfloat* v)
794 {
795 return gl::Uniform1fv(location, count, v);
796 }
797
glUniform1i(GLint location,GLint x)798 GL_APICALL void GL_APIENTRY glUniform1i(GLint location, GLint x)
799 {
800 return gl::Uniform1i(location, x);
801 }
802
glUniform1iv(GLint location,GLsizei count,const GLint * v)803 GL_APICALL void GL_APIENTRY glUniform1iv(GLint location, GLsizei count, const GLint* v)
804 {
805 return gl::Uniform1iv(location, count, v);
806 }
807
glUniform2f(GLint location,GLfloat x,GLfloat y)808 GL_APICALL void GL_APIENTRY glUniform2f(GLint location, GLfloat x, GLfloat y)
809 {
810 return gl::Uniform2f(location, x, y);
811 }
812
glUniform2fv(GLint location,GLsizei count,const GLfloat * v)813 GL_APICALL void GL_APIENTRY glUniform2fv(GLint location, GLsizei count, const GLfloat* v)
814 {
815 return gl::Uniform2fv(location, count, v);
816 }
817
glUniform2i(GLint location,GLint x,GLint y)818 GL_APICALL void GL_APIENTRY glUniform2i(GLint location, GLint x, GLint y)
819 {
820 return gl::Uniform2i(location, x, y);
821 }
822
glUniform2iv(GLint location,GLsizei count,const GLint * v)823 GL_APICALL void GL_APIENTRY glUniform2iv(GLint location, GLsizei count, const GLint* v)
824 {
825 return gl::Uniform2iv(location, count, v);
826 }
827
glUniform3f(GLint location,GLfloat x,GLfloat y,GLfloat z)828 GL_APICALL void GL_APIENTRY glUniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z)
829 {
830 return gl::Uniform3f(location, x, y, z);
831 }
832
glUniform3fv(GLint location,GLsizei count,const GLfloat * v)833 GL_APICALL void GL_APIENTRY glUniform3fv(GLint location, GLsizei count, const GLfloat* v)
834 {
835 return gl::Uniform3fv(location, count, v);
836 }
837
glUniform3i(GLint location,GLint x,GLint y,GLint z)838 GL_APICALL void GL_APIENTRY glUniform3i(GLint location, GLint x, GLint y, GLint z)
839 {
840 return gl::Uniform3i(location, x, y, z);
841 }
842
glUniform3iv(GLint location,GLsizei count,const GLint * v)843 GL_APICALL void GL_APIENTRY glUniform3iv(GLint location, GLsizei count, const GLint* v)
844 {
845 return gl::Uniform3iv(location, count, v);
846 }
847
glUniform4f(GLint location,GLfloat x,GLfloat y,GLfloat z,GLfloat w)848 GL_APICALL void GL_APIENTRY glUniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
849 {
850 return gl::Uniform4f(location, x, y, z, w);
851 }
852
glUniform4fv(GLint location,GLsizei count,const GLfloat * v)853 GL_APICALL void GL_APIENTRY glUniform4fv(GLint location, GLsizei count, const GLfloat* v)
854 {
855 return gl::Uniform4fv(location, count, v);
856 }
857
glUniform4i(GLint location,GLint x,GLint y,GLint z,GLint w)858 GL_APICALL void GL_APIENTRY glUniform4i(GLint location, GLint x, GLint y, GLint z, GLint w)
859 {
860 return gl::Uniform4i(location, x, y, z, w);
861 }
862
glUniform4iv(GLint location,GLsizei count,const GLint * v)863 GL_APICALL void GL_APIENTRY glUniform4iv(GLint location, GLsizei count, const GLint* v)
864 {
865 return gl::Uniform4iv(location, count, v);
866 }
867
glUniformMatrix2fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)868 GL_APICALL void GL_APIENTRY glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
869 {
870 return gl::UniformMatrix2fv(location, count, transpose, value);
871 }
872
glUniformMatrix3fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)873 GL_APICALL void GL_APIENTRY glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
874 {
875 return gl::UniformMatrix3fv(location, count, transpose, value);
876 }
877
glUniformMatrix4fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)878 GL_APICALL void GL_APIENTRY glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
879 {
880 return gl::UniformMatrix4fv(location, count, transpose, value);
881 }
882
glUseProgram(GLuint program)883 GL_APICALL void GL_APIENTRY glUseProgram(GLuint program)
884 {
885 return gl::UseProgram(program);
886 }
887
glValidateProgram(GLuint program)888 GL_APICALL void GL_APIENTRY glValidateProgram(GLuint program)
889 {
890 return gl::ValidateProgram(program);
891 }
892
glVertexAttrib1f(GLuint index,GLfloat x)893 GL_APICALL void GL_APIENTRY glVertexAttrib1f(GLuint index, GLfloat x)
894 {
895 return gl::VertexAttrib1f(index, x);
896 }
897
glVertexAttrib1fv(GLuint index,const GLfloat * values)898 GL_APICALL void GL_APIENTRY glVertexAttrib1fv(GLuint index, const GLfloat* values)
899 {
900 return gl::VertexAttrib1fv(index, values);
901 }
902
glVertexAttrib2f(GLuint index,GLfloat x,GLfloat y)903 GL_APICALL void GL_APIENTRY glVertexAttrib2f(GLuint index, GLfloat x, GLfloat y)
904 {
905 return gl::VertexAttrib2f(index, x, y);
906 }
907
glVertexAttrib2fv(GLuint index,const GLfloat * values)908 GL_APICALL void GL_APIENTRY glVertexAttrib2fv(GLuint index, const GLfloat* values)
909 {
910 return gl::VertexAttrib2fv(index, values);
911 }
912
glVertexAttrib3f(GLuint index,GLfloat x,GLfloat y,GLfloat z)913 GL_APICALL void GL_APIENTRY glVertexAttrib3f(GLuint index, GLfloat x, GLfloat y, GLfloat z)
914 {
915 return gl::VertexAttrib3f(index, x, y, z);
916 }
917
glVertexAttrib3fv(GLuint index,const GLfloat * values)918 GL_APICALL void GL_APIENTRY glVertexAttrib3fv(GLuint index, const GLfloat* values)
919 {
920 return gl::VertexAttrib3fv(index, values);
921 }
922
glVertexAttrib4f(GLuint index,GLfloat x,GLfloat y,GLfloat z,GLfloat w)923 GL_APICALL void GL_APIENTRY glVertexAttrib4f(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
924 {
925 return gl::VertexAttrib4f(index, x, y, z, w);
926 }
927
glVertexAttrib4fv(GLuint index,const GLfloat * values)928 GL_APICALL void GL_APIENTRY glVertexAttrib4fv(GLuint index, const GLfloat* values)
929 {
930 return gl::VertexAttrib4fv(index, values);
931 }
932
glVertexAttribPointer(GLuint index,GLint size,GLenum type,GLboolean normalized,GLsizei stride,const GLvoid * ptr)933 GL_APICALL void GL_APIENTRY glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid* ptr)
934 {
935 return gl::VertexAttribPointer(index, size, type, normalized, stride, ptr);
936 }
937
glViewport(GLint x,GLint y,GLsizei width,GLsizei height)938 GL_APICALL void GL_APIENTRY glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
939 {
940 return gl::Viewport(x, y, width, height);
941 }
942
glBlitFramebufferNV(GLint srcX0,GLint srcY0,GLint srcX1,GLint srcY1,GLint dstX0,GLint dstY0,GLint dstX1,GLint dstY1,GLbitfield mask,GLenum filter)943 GL_APICALL void GL_APIENTRY glBlitFramebufferNV(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter)
944 {
945 return gl::BlitFramebufferNV(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
946 }
947
glBlitFramebufferANGLE(GLint srcX0,GLint srcY0,GLint srcX1,GLint srcY1,GLint dstX0,GLint dstY0,GLint dstX1,GLint dstY1,GLbitfield mask,GLenum filter)948 GL_APICALL void GL_APIENTRY glBlitFramebufferANGLE(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1,
949 GLbitfield mask, GLenum filter)
950 {
951 return gl::BlitFramebufferANGLE(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
952 }
953
glTexImage3DOES(GLenum target,GLint level,GLenum internalformat,GLsizei width,GLsizei height,GLsizei depth,GLint border,GLenum format,GLenum type,const GLvoid * pixels)954 GL_APICALL void GL_APIENTRY glTexImage3DOES(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth,
955 GLint border, GLenum format, GLenum type, const GLvoid* pixels)
956 {
957 return gl::TexImage3DOES(target, level, internalformat, width, height, depth, border, format, type, pixels);
958 }
959
glTexSubImage3DOES(GLenum target,GLint level,GLint xoffset,GLint yoffset,GLint zoffset,GLsizei width,GLsizei height,GLsizei depth,GLenum format,GLenum type,const void * pixels)960 GL_APICALL void GL_APIENTRY glTexSubImage3DOES(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels)
961 {
962 return gl::TexSubImage3DOES(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels);
963 }
964
glCopyTexSubImage3DOES(GLenum target,GLint level,GLint xoffset,GLint yoffset,GLint zoffset,GLint x,GLint y,GLsizei width,GLsizei height)965 GL_APICALL void GL_APIENTRY glCopyTexSubImage3DOES(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)
966 {
967 return gl::CopyTexSubImage3DOES(target, level, xoffset, yoffset, zoffset, x, y, width, height);
968 }
969
glCompressedTexImage3DOES(GLenum target,GLint level,GLenum internalformat,GLsizei width,GLsizei height,GLsizei depth,GLint border,GLsizei imageSize,const void * data)970 GL_APICALL void GL_APIENTRY glCompressedTexImage3DOES(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data)
971 {
972 return gl::CompressedTexImage3DOES(target, level,internalformat, width, height, depth, border, imageSize, data);
973 }
974
glCompressedTexSubImage3DOES(GLenum target,GLint level,GLint xoffset,GLint yoffset,GLint zoffset,GLsizei width,GLsizei height,GLsizei depth,GLenum format,GLsizei imageSize,const void * data)975 GL_APICALL void GL_APIENTRY glCompressedTexSubImage3DOES(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data)
976 {
977 return gl::CompressedTexSubImage3DOES(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data);
978 }
979
glFramebufferTexture3DOES(GLenum target,GLenum attachment,GLenum textarget,GLuint texture,GLint level,GLint zoffset)980 GL_APICALL void GL_APIENTRY glFramebufferTexture3DOES(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset)
981 {
982 return gl::FramebufferTexture3DOES(target, attachment, textarget, texture, level, zoffset);
983 }
984
glEGLImageTargetTexture2DOES(GLenum target,GLeglImageOES image)985 GL_APICALL void GL_APIENTRY glEGLImageTargetTexture2DOES(GLenum target, GLeglImageOES image)
986 {
987 return gl::EGLImageTargetTexture2DOES(target, image);
988 }
989
glEGLImageTargetRenderbufferStorageOES(GLenum target,GLeglImageOES image)990 GL_APICALL void GL_APIENTRY glEGLImageTargetRenderbufferStorageOES(GLenum target, GLeglImageOES image)
991 {
992 return gl::EGLImageTargetRenderbufferStorageOES(target, image);
993 }
994
glDrawBuffersEXT(GLsizei n,const GLenum * bufs)995 GL_APICALL void GL_APIENTRY glDrawBuffersEXT(GLsizei n, const GLenum *bufs)
996 {
997 return gl::DrawBuffersEXT(n, bufs);
998 }
999
glReadBuffer(GLenum src)1000 GL_APICALL void GL_APIENTRY glReadBuffer(GLenum src)
1001 {
1002 return gl::ReadBuffer(src);
1003 }
1004
glDrawRangeElements(GLenum mode,GLuint start,GLuint end,GLsizei count,GLenum type,const void * indices)1005 GL_APICALL void GL_APIENTRY glDrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices)
1006 {
1007 return gl::DrawRangeElements(mode, start, end, count, type, indices);
1008 }
1009
glTexImage3D(GLenum target,GLint level,GLint internalformat,GLsizei width,GLsizei height,GLsizei depth,GLint border,GLenum format,GLenum type,const void * data)1010 GL_APICALL void GL_APIENTRY glTexImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *data)
1011 {
1012 return gl::TexImage3D(target, level, internalformat, width, height, depth, border, format, type, data);
1013 }
1014
glTexSubImage3D(GLenum target,GLint level,GLint xoffset,GLint yoffset,GLint zoffset,GLsizei width,GLsizei height,GLsizei depth,GLenum format,GLenum type,const void * data)1015 GL_APICALL void GL_APIENTRY glTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data)
1016 {
1017 return gl::TexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, data);
1018 }
1019
glCopyTexSubImage3D(GLenum target,GLint level,GLint xoffset,GLint yoffset,GLint zoffset,GLint x,GLint y,GLsizei width,GLsizei height)1020 GL_APICALL void GL_APIENTRY glCopyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)
1021 {
1022 return gl::CopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height);
1023 }
1024
glCompressedTexImage3D(GLenum target,GLint level,GLenum internalformat,GLsizei width,GLsizei height,GLsizei depth,GLint border,GLsizei imageSize,const void * data)1025 GL_APICALL void GL_APIENTRY glCompressedTexImage3D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data)
1026 {
1027 return gl::CompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data);
1028 }
1029
glCompressedTexSubImage3D(GLenum target,GLint level,GLint xoffset,GLint yoffset,GLint zoffset,GLsizei width,GLsizei height,GLsizei depth,GLenum format,GLsizei imageSize,const void * data)1030 GL_APICALL void GL_APIENTRY glCompressedTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data)
1031 {
1032 return gl::CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data);
1033 }
1034
glGenQueries(GLsizei n,GLuint * ids)1035 GL_APICALL void GL_APIENTRY glGenQueries(GLsizei n, GLuint *ids)
1036 {
1037 return gl::GenQueries(n, ids);
1038 }
1039
glDeleteQueries(GLsizei n,const GLuint * ids)1040 GL_APICALL void GL_APIENTRY glDeleteQueries(GLsizei n, const GLuint *ids)
1041 {
1042 return gl::DeleteQueries(n, ids);
1043 }
1044
glIsQuery(GLuint id)1045 GL_APICALL GLboolean GL_APIENTRY glIsQuery(GLuint id)
1046 {
1047 return gl::IsQuery(id);
1048 }
1049
glBeginQuery(GLenum target,GLuint id)1050 GL_APICALL void GL_APIENTRY glBeginQuery(GLenum target, GLuint id)
1051 {
1052 return gl::BeginQuery(target, id);
1053 }
1054
glEndQuery(GLenum target)1055 GL_APICALL void GL_APIENTRY glEndQuery(GLenum target)
1056 {
1057 return gl::EndQuery(target);
1058 }
1059
glGetQueryiv(GLenum target,GLenum pname,GLint * params)1060 GL_APICALL void GL_APIENTRY glGetQueryiv(GLenum target, GLenum pname, GLint *params)
1061 {
1062 return gl::GetQueryiv(target, pname, params);
1063 }
1064
glGetQueryObjectuiv(GLuint id,GLenum pname,GLuint * params)1065 GL_APICALL void GL_APIENTRY glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint *params)
1066 {
1067 return gl::GetQueryObjectuiv(id, pname, params);
1068 }
1069
glUnmapBuffer(GLenum target)1070 GL_APICALL GLboolean GL_APIENTRY glUnmapBuffer(GLenum target)
1071 {
1072 return gl::UnmapBuffer(target);
1073 }
1074
glGetBufferPointerv(GLenum target,GLenum pname,void ** params)1075 GL_APICALL void GL_APIENTRY glGetBufferPointerv(GLenum target, GLenum pname, void **params)
1076 {
1077 return gl::GetBufferPointerv(target, pname, params);
1078 }
1079
glDrawBuffers(GLsizei n,const GLenum * bufs)1080 GL_APICALL void GL_APIENTRY glDrawBuffers(GLsizei n, const GLenum *bufs)
1081 {
1082 return gl::DrawBuffers(n, bufs);
1083 }
1084
glUniformMatrix2x3fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)1085 GL_APICALL void GL_APIENTRY glUniformMatrix2x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
1086 {
1087 return gl::UniformMatrix2x3fv(location, count, transpose, value);
1088 }
1089
glUniformMatrix3x2fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)1090 GL_APICALL void GL_APIENTRY glUniformMatrix3x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
1091 {
1092 return gl::UniformMatrix3x2fv(location, count, transpose, value);
1093 }
1094
glUniformMatrix2x4fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)1095 GL_APICALL void GL_APIENTRY glUniformMatrix2x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
1096 {
1097 return gl::UniformMatrix2x4fv(location, count, transpose, value);
1098 }
1099
glUniformMatrix4x2fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)1100 GL_APICALL void GL_APIENTRY glUniformMatrix4x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
1101 {
1102 return gl::UniformMatrix4x2fv(location, count, transpose, value);
1103 }
1104
glUniformMatrix3x4fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)1105 GL_APICALL void GL_APIENTRY glUniformMatrix3x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
1106 {
1107 return gl::UniformMatrix3x4fv(location, count, transpose, value);
1108 }
1109
glUniformMatrix4x3fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)1110 GL_APICALL void GL_APIENTRY glUniformMatrix4x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
1111 {
1112 return gl::UniformMatrix4x3fv(location, count, transpose, value);
1113 }
1114
glBlitFramebuffer(GLint srcX0,GLint srcY0,GLint srcX1,GLint srcY1,GLint dstX0,GLint dstY0,GLint dstX1,GLint dstY1,GLbitfield mask,GLenum filter)1115 GL_APICALL void GL_APIENTRY glBlitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter)
1116 {
1117 return gl::BlitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
1118 }
1119
glFramebufferTextureLayer(GLenum target,GLenum attachment,GLuint texture,GLint level,GLint layer)1120 GL_APICALL void GL_APIENTRY glFramebufferTextureLayer(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer)
1121 {
1122 return gl::FramebufferTextureLayer(target, attachment, texture, level, layer);
1123 }
1124
glMapBufferRange(GLenum target,GLintptr offset,GLsizeiptr length,GLbitfield access)1125 GL_APICALL void *GL_APIENTRY glMapBufferRange(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access)
1126 {
1127 return gl::MapBufferRange(target, offset, length, access);
1128 }
1129
glFlushMappedBufferRange(GLenum target,GLintptr offset,GLsizeiptr length)1130 GL_APICALL void GL_APIENTRY glFlushMappedBufferRange(GLenum target, GLintptr offset, GLsizeiptr length)
1131 {
1132 return gl::FlushMappedBufferRange(target, offset, length);
1133 }
1134
glBindVertexArray(GLuint array)1135 GL_APICALL void GL_APIENTRY glBindVertexArray(GLuint array)
1136 {
1137 return gl::BindVertexArray(array);
1138 }
1139
glBindVertexArrayOES(GLuint array)1140 GL_APICALL void GL_APIENTRY glBindVertexArrayOES(GLuint array)
1141 {
1142 return gl::BindVertexArrayOES(array);
1143 }
1144
glDeleteVertexArrays(GLsizei n,const GLuint * arrays)1145 GL_APICALL void GL_APIENTRY glDeleteVertexArrays(GLsizei n, const GLuint *arrays)
1146 {
1147 return gl::DeleteVertexArrays(n, arrays);
1148 }
1149
glDeleteVertexArraysOES(GLsizei n,const GLuint * arrays)1150 GL_APICALL void GL_APIENTRY glDeleteVertexArraysOES(GLsizei n, const GLuint *arrays)
1151 {
1152 return gl::DeleteFramebuffersOES(n, arrays);
1153 }
1154
glGenVertexArrays(GLsizei n,GLuint * arrays)1155 GL_APICALL void GL_APIENTRY glGenVertexArrays(GLsizei n, GLuint *arrays)
1156 {
1157 return gl::GenVertexArrays(n, arrays);
1158 }
1159
glGenVertexArraysOES(GLsizei n,GLuint * arrays)1160 GL_APICALL void GL_APIENTRY glGenVertexArraysOES(GLsizei n, GLuint *arrays)
1161 {
1162 return gl::GenVertexArraysOES(n, arrays);
1163 }
1164
glIsVertexArray(GLuint array)1165 GL_APICALL GLboolean GL_APIENTRY glIsVertexArray(GLuint array)
1166 {
1167 return gl::IsVertexArray(array);
1168 }
1169
glIsVertexArrayOES(GLuint array)1170 GL_APICALL GLboolean GL_APIENTRY glIsVertexArrayOES(GLuint array)
1171 {
1172 return gl::IsVertexArrayOES(array);
1173 }
1174
glGetIntegeri_v(GLenum target,GLuint index,GLint * data)1175 GL_APICALL void GL_APIENTRY glGetIntegeri_v(GLenum target, GLuint index, GLint *data)
1176 {
1177 return gl::GetIntegeri_v(target, index, data);
1178 }
1179
glBeginTransformFeedback(GLenum primitiveMode)1180 GL_APICALL void GL_APIENTRY glBeginTransformFeedback(GLenum primitiveMode)
1181 {
1182 return gl::BeginTransformFeedback(primitiveMode);
1183 }
1184
glEndTransformFeedback(void)1185 GL_APICALL void GL_APIENTRY glEndTransformFeedback(void)
1186 {
1187 return gl::EndTransformFeedback();
1188 }
1189
glBindBufferRange(GLenum target,GLuint index,GLuint buffer,GLintptr offset,GLsizeiptr size)1190 GL_APICALL void GL_APIENTRY glBindBufferRange(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size)
1191 {
1192 return gl::BindBufferRange(target, index, buffer, offset, size);
1193 }
1194
glBindBufferBase(GLenum target,GLuint index,GLuint buffer)1195 GL_APICALL void GL_APIENTRY glBindBufferBase(GLenum target, GLuint index, GLuint buffer)
1196 {
1197 return gl::BindBufferBase(target, index, buffer);
1198 }
1199
glTransformFeedbackVaryings(GLuint program,GLsizei count,const GLchar * const * varyings,GLenum bufferMode)1200 GL_APICALL void GL_APIENTRY glTransformFeedbackVaryings(GLuint program, GLsizei count, const GLchar *const *varyings, GLenum bufferMode)
1201 {
1202 return gl::TransformFeedbackVaryings(program, count, varyings, bufferMode);
1203 }
1204
glGetTransformFeedbackVarying(GLuint program,GLuint index,GLsizei bufSize,GLsizei * length,GLsizei * size,GLenum * type,GLchar * name)1205 GL_APICALL void GL_APIENTRY glGetTransformFeedbackVarying(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name)
1206 {
1207 return gl::GetTransformFeedbackVarying(program, index, bufSize, length, size, type, name);
1208 }
1209
glVertexAttribIPointer(GLuint index,GLint size,GLenum type,GLsizei stride,const void * pointer)1210 GL_APICALL void GL_APIENTRY glVertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer)
1211 {
1212 return gl::VertexAttribIPointer(index, size, type, stride, pointer);
1213 }
1214
glGetVertexAttribIiv(GLuint index,GLenum pname,GLint * params)1215 GL_APICALL void GL_APIENTRY glGetVertexAttribIiv(GLuint index, GLenum pname, GLint *params)
1216 {
1217 return gl::GetVertexAttribIiv(index, pname, params);
1218 }
1219
glGetVertexAttribIuiv(GLuint index,GLenum pname,GLuint * params)1220 GL_APICALL void GL_APIENTRY glGetVertexAttribIuiv(GLuint index, GLenum pname, GLuint *params)
1221 {
1222 return gl::GetVertexAttribIuiv(index, pname, params);
1223 }
1224
glVertexAttribI4i(GLuint index,GLint x,GLint y,GLint z,GLint w)1225 GL_APICALL void GL_APIENTRY glVertexAttribI4i(GLuint index, GLint x, GLint y, GLint z, GLint w)
1226 {
1227 return gl::VertexAttribI4i(index, x, y, z, w);
1228 }
1229
glVertexAttribI4ui(GLuint index,GLuint x,GLuint y,GLuint z,GLuint w)1230 GL_APICALL void GL_APIENTRY glVertexAttribI4ui(GLuint index, GLuint x, GLuint y, GLuint z, GLuint w)
1231 {
1232 return gl::VertexAttribI4ui(index, x, y, z, w);
1233 }
1234
glVertexAttribI4iv(GLuint index,const GLint * v)1235 GL_APICALL void GL_APIENTRY glVertexAttribI4iv(GLuint index, const GLint *v)
1236 {
1237 return gl::VertexAttribI4iv(index, v);
1238 }
1239
glVertexAttribI4uiv(GLuint index,const GLuint * v)1240 GL_APICALL void GL_APIENTRY glVertexAttribI4uiv(GLuint index, const GLuint *v)
1241 {
1242 return gl::VertexAttribI4uiv(index, v);
1243 }
1244
glGetUniformuiv(GLuint program,GLint location,GLuint * params)1245 GL_APICALL void GL_APIENTRY glGetUniformuiv(GLuint program, GLint location, GLuint *params)
1246 {
1247 return gl::GetUniformuiv(program, location, params);
1248 }
1249
glGetFragDataLocation(GLuint program,const GLchar * name)1250 GL_APICALL GLint GL_APIENTRY glGetFragDataLocation(GLuint program, const GLchar *name)
1251 {
1252 return gl::GetFragDataLocation(program, name);
1253 }
1254
glUniform1ui(GLint location,GLuint v0)1255 GL_APICALL void GL_APIENTRY glUniform1ui(GLint location, GLuint v0)
1256 {
1257 return gl::Uniform1ui(location, v0);
1258 }
1259
glUniform2ui(GLint location,GLuint v0,GLuint v1)1260 GL_APICALL void GL_APIENTRY glUniform2ui(GLint location, GLuint v0, GLuint v1)
1261 {
1262 return gl::Uniform2ui(location, v0, v1);
1263 }
1264
glUniform3ui(GLint location,GLuint v0,GLuint v1,GLuint v2)1265 GL_APICALL void GL_APIENTRY glUniform3ui(GLint location, GLuint v0, GLuint v1, GLuint v2)
1266 {
1267 return gl::Uniform3ui(location, v0, v1, v2);
1268 }
1269
glUniform4ui(GLint location,GLuint v0,GLuint v1,GLuint v2,GLuint v3)1270 GL_APICALL void GL_APIENTRY glUniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3)
1271 {
1272 return gl::Uniform4ui(location, v0, v1, v2, v3);
1273 }
1274
glUniform1uiv(GLint location,GLsizei count,const GLuint * value)1275 GL_APICALL void GL_APIENTRY glUniform1uiv(GLint location, GLsizei count, const GLuint *value)
1276 {
1277 return gl::Uniform1uiv(location, count, value);
1278 }
1279
glUniform2uiv(GLint location,GLsizei count,const GLuint * value)1280 GL_APICALL void GL_APIENTRY glUniform2uiv(GLint location, GLsizei count, const GLuint *value)
1281 {
1282 return gl::Uniform2uiv(location, count, value);
1283 }
1284
glUniform3uiv(GLint location,GLsizei count,const GLuint * value)1285 GL_APICALL void GL_APIENTRY glUniform3uiv(GLint location, GLsizei count, const GLuint *value)
1286 {
1287 return gl::Uniform3uiv(location, count, value);
1288 }
1289
glUniform4uiv(GLint location,GLsizei count,const GLuint * value)1290 GL_APICALL void GL_APIENTRY glUniform4uiv(GLint location, GLsizei count, const GLuint *value)
1291 {
1292 return gl::Uniform4uiv(location, count, value);
1293 }
1294
glClearBufferiv(GLenum buffer,GLint drawbuffer,const GLint * value)1295 GL_APICALL void GL_APIENTRY glClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint *value)
1296 {
1297 return gl::ClearBufferiv(buffer, drawbuffer, value);
1298 }
1299
glClearBufferuiv(GLenum buffer,GLint drawbuffer,const GLuint * value)1300 GL_APICALL void GL_APIENTRY glClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint *value)
1301 {
1302 return gl::ClearBufferuiv(buffer, drawbuffer, value);
1303 }
1304
glClearBufferfv(GLenum buffer,GLint drawbuffer,const GLfloat * value)1305 GL_APICALL void GL_APIENTRY glClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat *value)
1306 {
1307 return gl::ClearBufferfv(buffer, drawbuffer, value);
1308 }
1309
glClearBufferfi(GLenum buffer,GLint drawbuffer,GLfloat depth,GLint stencil)1310 GL_APICALL void GL_APIENTRY glClearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil)
1311 {
1312 return gl::ClearBufferfi(buffer, drawbuffer, depth, stencil);
1313 }
1314
glGetStringi(GLenum name,GLuint index)1315 GL_APICALL const GLubyte *GL_APIENTRY glGetStringi(GLenum name, GLuint index)
1316 {
1317 return gl::GetStringi(name, index);
1318 }
1319
glCopyBufferSubData(GLenum readTarget,GLenum writeTarget,GLintptr readOffset,GLintptr writeOffset,GLsizeiptr size)1320 GL_APICALL void GL_APIENTRY glCopyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size)
1321 {
1322 return gl::CopyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size);
1323 }
1324
glGetUniformIndices(GLuint program,GLsizei uniformCount,const GLchar * const * uniformNames,GLuint * uniformIndices)1325 GL_APICALL void GL_APIENTRY glGetUniformIndices(GLuint program, GLsizei uniformCount, const GLchar *const *uniformNames, GLuint *uniformIndices)
1326 {
1327 return gl::GetUniformIndices(program, uniformCount, uniformNames, uniformIndices);
1328 }
1329
glGetActiveUniformsiv(GLuint program,GLsizei uniformCount,const GLuint * uniformIndices,GLenum pname,GLint * params)1330 GL_APICALL void GL_APIENTRY glGetActiveUniformsiv(GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params)
1331 {
1332 return gl::GetActiveUniformsiv(program, uniformCount, uniformIndices, pname, params);
1333 }
1334
glGetUniformBlockIndex(GLuint program,const GLchar * uniformBlockName)1335 GL_APICALL GLuint GL_APIENTRY glGetUniformBlockIndex(GLuint program, const GLchar *uniformBlockName)
1336 {
1337 return gl::GetUniformBlockIndex(program, uniformBlockName);
1338 }
1339
glGetActiveUniformBlockiv(GLuint program,GLuint uniformBlockIndex,GLenum pname,GLint * params)1340 GL_APICALL void GL_APIENTRY glGetActiveUniformBlockiv(GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params)
1341 {
1342 return gl::GetActiveUniformBlockiv(program, uniformBlockIndex, pname, params);
1343 }
1344
glGetActiveUniformBlockName(GLuint program,GLuint uniformBlockIndex,GLsizei bufSize,GLsizei * length,GLchar * uniformBlockName)1345 GL_APICALL void GL_APIENTRY glGetActiveUniformBlockName(GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName)
1346 {
1347 return gl::GetActiveUniformBlockName(program, uniformBlockIndex, bufSize, length, uniformBlockName);
1348 }
1349
glUniformBlockBinding(GLuint program,GLuint uniformBlockIndex,GLuint uniformBlockBinding)1350 GL_APICALL void GL_APIENTRY glUniformBlockBinding(GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding)
1351 {
1352 return gl::UniformBlockBinding(program, uniformBlockIndex, uniformBlockBinding);
1353 }
1354
glDrawArraysInstanced(GLenum mode,GLint first,GLsizei count,GLsizei instanceCount)1355 GL_APICALL void GL_APIENTRY glDrawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsizei instanceCount)
1356 {
1357 return gl::DrawArraysInstanced(mode, first, count, instanceCount);
1358 }
1359
glDrawElementsInstanced(GLenum mode,GLsizei count,GLenum type,const void * indices,GLsizei instanceCount)1360 GL_APICALL void GL_APIENTRY glDrawElementsInstanced(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instanceCount)
1361 {
1362 return gl::DrawElementsInstanced(mode, count, type, indices, instanceCount);
1363 }
1364
glFenceSync(GLenum condition,GLbitfield flags)1365 GL_APICALL GLsync GL_APIENTRY glFenceSync(GLenum condition, GLbitfield flags)
1366 {
1367 return gl::FenceSync(condition, flags);
1368 }
1369
glIsSync(GLsync sync)1370 GL_APICALL GLboolean GL_APIENTRY glIsSync(GLsync sync)
1371 {
1372 return gl::IsSync(sync);
1373 }
1374
glDeleteSync(GLsync sync)1375 GL_APICALL void GL_APIENTRY glDeleteSync(GLsync sync)
1376 {
1377 return gl::DeleteSync(sync);
1378 }
1379
glClientWaitSync(GLsync sync,GLbitfield flags,GLuint64 timeout)1380 GL_APICALL GLenum GL_APIENTRY glClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout)
1381 {
1382 return gl::ClientWaitSync(sync, flags, timeout);
1383 }
1384
glWaitSync(GLsync sync,GLbitfield flags,GLuint64 timeout)1385 GL_APICALL void GL_APIENTRY glWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout)
1386 {
1387 return gl::WaitSync(sync, flags, timeout);
1388 }
1389
glGetInteger64v(GLenum pname,GLint64 * data)1390 GL_APICALL void GL_APIENTRY glGetInteger64v(GLenum pname, GLint64 *data)
1391 {
1392 return gl::GetInteger64v(pname, data);
1393 }
1394
glGetSynciv(GLsync sync,GLenum pname,GLsizei bufSize,GLsizei * length,GLint * values)1395 GL_APICALL void GL_APIENTRY glGetSynciv(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values)
1396 {
1397 return gl::GetSynciv(sync, pname, bufSize, length, values);
1398 }
1399
glGetInteger64i_v(GLenum target,GLuint index,GLint64 * data)1400 GL_APICALL void GL_APIENTRY glGetInteger64i_v(GLenum target, GLuint index, GLint64 *data)
1401 {
1402 return gl::GetInteger64i_v(target, index, data);
1403 }
1404
glGetBufferParameteri64v(GLenum target,GLenum pname,GLint64 * params)1405 GL_APICALL void GL_APIENTRY glGetBufferParameteri64v(GLenum target, GLenum pname, GLint64 *params)
1406 {
1407 return gl::GetBufferParameteri64v(target, pname, params);
1408 }
1409
glGenSamplers(GLsizei count,GLuint * samplers)1410 GL_APICALL void GL_APIENTRY glGenSamplers(GLsizei count, GLuint *samplers)
1411 {
1412 return gl::GenSamplers(count, samplers);
1413 }
1414
glDeleteSamplers(GLsizei count,const GLuint * samplers)1415 GL_APICALL void GL_APIENTRY glDeleteSamplers(GLsizei count, const GLuint *samplers)
1416 {
1417 return gl::DeleteSamplers(count, samplers);
1418 }
1419
glIsSampler(GLuint sampler)1420 GL_APICALL GLboolean GL_APIENTRY glIsSampler(GLuint sampler)
1421 {
1422 return gl::IsSampler(sampler);
1423 }
1424
glBindSampler(GLuint unit,GLuint sampler)1425 GL_APICALL void GL_APIENTRY glBindSampler(GLuint unit, GLuint sampler)
1426 {
1427 return gl::BindSampler(unit, sampler);
1428 }
1429
glSamplerParameteri(GLuint sampler,GLenum pname,GLint param)1430 GL_APICALL void GL_APIENTRY glSamplerParameteri(GLuint sampler, GLenum pname, GLint param)
1431 {
1432 return gl::SamplerParameteri(sampler, pname, param);
1433 }
1434
glSamplerParameteriv(GLuint sampler,GLenum pname,const GLint * param)1435 GL_APICALL void GL_APIENTRY glSamplerParameteriv(GLuint sampler, GLenum pname, const GLint *param)
1436 {
1437 return gl::SamplerParameteriv(sampler, pname, param);
1438 }
1439
glSamplerParameterf(GLuint sampler,GLenum pname,GLfloat param)1440 GL_APICALL void GL_APIENTRY glSamplerParameterf(GLuint sampler, GLenum pname, GLfloat param)
1441 {
1442 return gl::SamplerParameterf(sampler, pname, param);
1443 }
1444
glSamplerParameterfv(GLuint sampler,GLenum pname,const GLfloat * param)1445 GL_APICALL void GL_APIENTRY glSamplerParameterfv(GLuint sampler, GLenum pname, const GLfloat *param)
1446 {
1447 return gl::SamplerParameterfv(sampler, pname, param);
1448 }
1449
glGetSamplerParameteriv(GLuint sampler,GLenum pname,GLint * params)1450 GL_APICALL void GL_APIENTRY glGetSamplerParameteriv(GLuint sampler, GLenum pname, GLint *params)
1451 {
1452 return gl::GetSamplerParameteriv(sampler, pname, params);
1453 }
1454
glGetSamplerParameterfv(GLuint sampler,GLenum pname,GLfloat * params)1455 GL_APICALL void GL_APIENTRY glGetSamplerParameterfv(GLuint sampler, GLenum pname, GLfloat *params)
1456 {
1457 return gl::GetSamplerParameterfv(sampler, pname, params);
1458 }
1459
glVertexAttribDivisor(GLuint index,GLuint divisor)1460 GL_APICALL void GL_APIENTRY glVertexAttribDivisor(GLuint index, GLuint divisor)
1461 {
1462 return gl::VertexAttribDivisor(index, divisor);
1463 }
1464
glBindTransformFeedback(GLenum target,GLuint id)1465 GL_APICALL void GL_APIENTRY glBindTransformFeedback(GLenum target, GLuint id)
1466 {
1467 return gl::BindTransformFeedback(target, id);
1468 }
1469
glDeleteTransformFeedbacks(GLsizei n,const GLuint * ids)1470 GL_APICALL void GL_APIENTRY glDeleteTransformFeedbacks(GLsizei n, const GLuint *ids)
1471 {
1472 return gl::DeleteTransformFeedbacks(n, ids);
1473 }
1474
glGenTransformFeedbacks(GLsizei n,GLuint * ids)1475 GL_APICALL void GL_APIENTRY glGenTransformFeedbacks(GLsizei n, GLuint *ids)
1476 {
1477 return gl::GenTransformFeedbacks(n, ids);
1478 }
1479
glIsTransformFeedback(GLuint id)1480 GL_APICALL GLboolean GL_APIENTRY glIsTransformFeedback(GLuint id)
1481 {
1482 return gl::IsTransformFeedback(id);
1483 }
1484
glPauseTransformFeedback(void)1485 GL_APICALL void GL_APIENTRY glPauseTransformFeedback(void)
1486 {
1487 return gl::PauseTransformFeedback();
1488 }
1489
glResumeTransformFeedback(void)1490 GL_APICALL void GL_APIENTRY glResumeTransformFeedback(void)
1491 {
1492 return gl::ResumeTransformFeedback();
1493 }
1494
glGetProgramBinary(GLuint program,GLsizei bufSize,GLsizei * length,GLenum * binaryFormat,void * binary)1495 GL_APICALL void GL_APIENTRY glGetProgramBinary(GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary)
1496 {
1497 return gl::GetProgramBinary(program, bufSize, length, binaryFormat, binary);
1498 }
1499
glProgramBinary(GLuint program,GLenum binaryFormat,const void * binary,GLsizei length)1500 GL_APICALL void GL_APIENTRY glProgramBinary(GLuint program, GLenum binaryFormat, const void *binary, GLsizei length)
1501 {
1502 return gl::ProgramBinary(program, binaryFormat, binary, length);
1503 }
1504
glProgramParameteri(GLuint program,GLenum pname,GLint value)1505 GL_APICALL void GL_APIENTRY glProgramParameteri(GLuint program, GLenum pname, GLint value)
1506 {
1507 return gl::ProgramParameteri(program, pname, value);
1508 }
1509
glInvalidateFramebuffer(GLenum target,GLsizei numAttachments,const GLenum * attachments)1510 GL_APICALL void GL_APIENTRY glInvalidateFramebuffer(GLenum target, GLsizei numAttachments, const GLenum *attachments)
1511 {
1512 return gl::InvalidateFramebuffer(target, numAttachments, attachments);
1513 }
1514
glInvalidateSubFramebuffer(GLenum target,GLsizei numAttachments,const GLenum * attachments,GLint x,GLint y,GLsizei width,GLsizei height)1515 GL_APICALL void GL_APIENTRY glInvalidateSubFramebuffer(GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height)
1516 {
1517 return gl::InvalidateSubFramebuffer(target, numAttachments, attachments, x, y, width, height);
1518 }
1519
glTexStorage2D(GLenum target,GLsizei levels,GLenum internalformat,GLsizei width,GLsizei height)1520 GL_APICALL void GL_APIENTRY glTexStorage2D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height)
1521 {
1522 return gl::TexStorage2D(target, levels, internalformat, width, height);
1523 }
1524
glTexStorage3D(GLenum target,GLsizei levels,GLenum internalformat,GLsizei width,GLsizei height,GLsizei depth)1525 GL_APICALL void GL_APIENTRY glTexStorage3D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth)
1526 {
1527 return gl::TexStorage3D(target, levels, internalformat, width, height, depth);
1528 }
1529
glGetInternalformativ(GLenum target,GLenum internalformat,GLenum pname,GLsizei bufSize,GLint * params)1530 GL_APICALL void GL_APIENTRY glGetInternalformativ(GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint *params)
1531 {
1532 return gl::GetInternalformativ(target, internalformat, pname, bufSize, params);
1533 }
1534 }
1535
1536 egl::Context *es2CreateContext(egl::Display *display, const egl::Context *shareContext, const egl::Config *config);
1537 extern "C" __eglMustCastToProperFunctionPointerType es2GetProcAddress(const char *procname);
1538 egl::Image *createBackBuffer(int width, int height, sw::Format format, int multiSampleDepth);
1539 egl::Image *createBackBufferFromClientBuffer(const egl::ClientBuffer& clientBuffer);
1540 egl::Image *createDepthStencil(int width, int height, sw::Format format, int multiSampleDepth);
1541 sw::FrameBuffer *createFrameBuffer(void *nativeDisplay, EGLNativeWindowType window, int width, int height);
1542
LibGLESv2exports()1543 LibGLESv2exports::LibGLESv2exports()
1544 {
1545 this->glActiveTexture = gl::ActiveTexture;
1546 this->glAttachShader = gl::AttachShader;
1547 this->glBeginQueryEXT = gl::BeginQueryEXT;
1548 this->glBindAttribLocation = gl::BindAttribLocation;
1549 this->glBindBuffer = gl::BindBuffer;
1550 this->glBindFramebuffer = gl::BindFramebuffer;
1551 this->glBindRenderbuffer = gl::BindRenderbuffer;
1552 this->glBindTexture = gl::BindTexture;
1553 this->glBlendColor = gl::BlendColor;
1554 this->glBlendEquation = gl::BlendEquation;
1555 this->glBlendEquationSeparate = gl::BlendEquationSeparate;
1556 this->glBlendFunc = gl::BlendFunc;
1557 this->glBlendFuncSeparate = gl::BlendFuncSeparate;
1558 this->glBufferData = gl::BufferData;
1559 this->glBufferSubData = gl::BufferSubData;
1560 this->glCheckFramebufferStatus = gl::CheckFramebufferStatus;
1561 this->glClear = gl::Clear;
1562 this->glClearColor = gl::ClearColor;
1563 this->glClearDepthf = gl::ClearDepthf;
1564 this->glClearStencil = gl::ClearStencil;
1565 this->glColorMask = gl::ColorMask;
1566 this->glCompileShader = gl::CompileShader;
1567 this->glCompressedTexImage2D = gl::CompressedTexImage2D;
1568 this->glCompressedTexSubImage2D = gl::CompressedTexSubImage2D;
1569 this->glCopyTexImage2D = gl::CopyTexImage2D;
1570 this->glCopyTexSubImage2D = gl::CopyTexSubImage2D;
1571 this->glCreateProgram = gl::CreateProgram;
1572 this->glCreateShader = gl::CreateShader;
1573 this->glCullFace = gl::CullFace;
1574 this->glDeleteBuffers = gl::DeleteBuffers;
1575 this->glDeleteFencesNV = gl::DeleteFencesNV;
1576 this->glDeleteFramebuffers = gl::DeleteFramebuffers;
1577 this->glDeleteProgram = gl::DeleteProgram;
1578 this->glDeleteQueriesEXT = gl::DeleteQueriesEXT;
1579 this->glDeleteRenderbuffers = gl::DeleteRenderbuffers;
1580 this->glDeleteShader = gl::DeleteShader;
1581 this->glDeleteTextures = gl::DeleteTextures;
1582 this->glDepthFunc = gl::DepthFunc;
1583 this->glDepthMask = gl::DepthMask;
1584 this->glDepthRangef = gl::DepthRangef;
1585 this->glDetachShader = gl::DetachShader;
1586 this->glDisable = gl::Disable;
1587 this->glDisableVertexAttribArray = gl::DisableVertexAttribArray;
1588 this->glDrawArrays = gl::DrawArrays;
1589 this->glDrawElements = gl::DrawElements;
1590 this->glDrawArraysInstancedEXT = gl::DrawArraysInstancedEXT;
1591 this->glDrawElementsInstancedEXT = gl::DrawElementsInstancedEXT;
1592 this->glVertexAttribDivisorEXT = gl::VertexAttribDivisorEXT;
1593 this->glDrawArraysInstancedANGLE = gl::DrawArraysInstancedANGLE;
1594 this->glDrawElementsInstancedANGLE = gl::DrawElementsInstancedANGLE;
1595 this->glVertexAttribDivisorANGLE = gl::VertexAttribDivisorANGLE;
1596 this->glEnable = gl::Enable;
1597 this->glEnableVertexAttribArray = gl::EnableVertexAttribArray;
1598 this->glEndQueryEXT = gl::EndQueryEXT;
1599 this->glFinishFenceNV = gl::FinishFenceNV;
1600 this->glFinish = gl::Finish;
1601 this->glFlush = gl::Flush;
1602 this->glFramebufferRenderbuffer = gl::FramebufferRenderbuffer;
1603 this->glFramebufferTexture2D = gl::FramebufferTexture2D;
1604 this->glFrontFace = gl::FrontFace;
1605 this->glGenBuffers = gl::GenBuffers;
1606 this->glGenerateMipmap = gl::GenerateMipmap;
1607 this->glGenFencesNV = gl::GenFencesNV;
1608 this->glGenFramebuffers = gl::GenFramebuffers;
1609 this->glGenQueriesEXT = gl::GenQueriesEXT;
1610 this->glGenRenderbuffers = gl::GenRenderbuffers;
1611 this->glGenTextures = gl::GenTextures;
1612 this->glGetActiveAttrib = gl::GetActiveAttrib;
1613 this->glGetActiveUniform = gl::GetActiveUniform;
1614 this->glGetAttachedShaders = gl::GetAttachedShaders;
1615 this->glGetAttribLocation = gl::GetAttribLocation;
1616 this->glGetBooleanv = gl::GetBooleanv;
1617 this->glGetBufferParameteriv = gl::GetBufferParameteriv;
1618 this->glGetError = gl::GetError;
1619 this->glGetFenceivNV = gl::GetFenceivNV;
1620 this->glGetFloatv = gl::GetFloatv;
1621 this->glGetFramebufferAttachmentParameteriv = gl::GetFramebufferAttachmentParameteriv;
1622 this->glGetGraphicsResetStatusEXT = gl::GetGraphicsResetStatusEXT;
1623 this->glGetIntegerv = gl::GetIntegerv;
1624 this->glGetProgramiv = gl::GetProgramiv;
1625 this->glGetProgramInfoLog = gl::GetProgramInfoLog;
1626 this->glGetQueryivEXT = gl::GetQueryivEXT;
1627 this->glGetQueryObjectuivEXT = gl::GetQueryObjectuivEXT;
1628 this->glGetRenderbufferParameteriv = gl::GetRenderbufferParameteriv;
1629 this->glGetShaderiv = gl::GetShaderiv;
1630 this->glGetShaderInfoLog = gl::GetShaderInfoLog;
1631 this->glGetShaderPrecisionFormat = gl::GetShaderPrecisionFormat;
1632 this->glGetShaderSource = gl::GetShaderSource;
1633 this->glGetString = gl::GetString;
1634 this->glGetTexParameterfv = gl::GetTexParameterfv;
1635 this->glGetTexParameteriv = gl::GetTexParameteriv;
1636 this->glGetnUniformfvEXT = gl::GetnUniformfvEXT;
1637 this->glGetUniformfv = gl::GetUniformfv;
1638 this->glGetnUniformivEXT = gl::GetnUniformivEXT;
1639 this->glGetUniformiv = gl::GetUniformiv;
1640 this->glGetUniformLocation = gl::GetUniformLocation;
1641 this->glGetVertexAttribfv = gl::GetVertexAttribfv;
1642 this->glGetVertexAttribiv = gl::GetVertexAttribiv;
1643 this->glGetVertexAttribPointerv = gl::GetVertexAttribPointerv;
1644 this->glHint = gl::Hint;
1645 this->glIsBuffer = gl::IsBuffer;
1646 this->glIsEnabled = gl::IsEnabled;
1647 this->glIsFenceNV = gl::IsFenceNV;
1648 this->glIsFramebuffer = gl::IsFramebuffer;
1649 this->glIsProgram = gl::IsProgram;
1650 this->glIsQueryEXT = gl::IsQueryEXT;
1651 this->glIsRenderbuffer = gl::IsRenderbuffer;
1652 this->glIsShader = gl::IsShader;
1653 this->glIsTexture = gl::IsTexture;
1654 this->glLineWidth = gl::LineWidth;
1655 this->glLinkProgram = gl::LinkProgram;
1656 this->glPixelStorei = gl::PixelStorei;
1657 this->glPolygonOffset = gl::PolygonOffset;
1658 this->glReadnPixelsEXT = gl::ReadnPixelsEXT;
1659 this->glReadPixels = gl::ReadPixels;
1660 this->glReleaseShaderCompiler = gl::ReleaseShaderCompiler;
1661 this->glRenderbufferStorageMultisample = gl::RenderbufferStorageMultisample;
1662 this->glRenderbufferStorageMultisampleANGLE = gl::RenderbufferStorageMultisampleANGLE;
1663 this->glRenderbufferStorage = gl::RenderbufferStorage;
1664 this->glSampleCoverage = gl::SampleCoverage;
1665 this->glSetFenceNV = gl::SetFenceNV;
1666 this->glScissor = gl::Scissor;
1667 this->glShaderBinary = gl::ShaderBinary;
1668 this->glShaderSource = gl::ShaderSource;
1669 this->glStencilFunc = gl::StencilFunc;
1670 this->glStencilFuncSeparate = gl::StencilFuncSeparate;
1671 this->glStencilMask = gl::StencilMask;
1672 this->glStencilMaskSeparate = gl::StencilMaskSeparate;
1673 this->glStencilOp = gl::StencilOp;
1674 this->glStencilOpSeparate = gl::StencilOpSeparate;
1675 this->glTestFenceNV = gl::TestFenceNV;
1676 this->glTexImage2D = gl::TexImage2D;
1677 this->glTexParameterf = gl::TexParameterf;
1678 this->glTexParameterfv = gl::TexParameterfv;
1679 this->glTexParameteri = gl::TexParameteri;
1680 this->glTexParameteriv = gl::TexParameteriv;
1681 this->glTexSubImage2D = gl::TexSubImage2D;
1682 this->glUniform1f = gl::Uniform1f;
1683 this->glUniform1fv = gl::Uniform1fv;
1684 this->glUniform1i = gl::Uniform1i;
1685 this->glUniform1iv = gl::Uniform1iv;
1686 this->glUniform2f = gl::Uniform2f;
1687 this->glUniform2fv = gl::Uniform2fv;
1688 this->glUniform2i = gl::Uniform2i;
1689 this->glUniform2iv = gl::Uniform2iv;
1690 this->glUniform3f = gl::Uniform3f;
1691 this->glUniform3fv = gl::Uniform3fv;
1692 this->glUniform3i = gl::Uniform3i;
1693 this->glUniform3iv = gl::Uniform3iv;
1694 this->glUniform4f = gl::Uniform4f;
1695 this->glUniform4fv = gl::Uniform4fv;
1696 this->glUniform4i = gl::Uniform4i;
1697 this->glUniform4iv = gl::Uniform4iv;
1698 this->glUniformMatrix2fv = gl::UniformMatrix2fv;
1699 this->glUniformMatrix3fv = gl::UniformMatrix3fv;
1700 this->glUniformMatrix4fv = gl::UniformMatrix4fv;
1701 this->glUseProgram = gl::UseProgram;
1702 this->glValidateProgram = gl::ValidateProgram;
1703 this->glVertexAttrib1f = gl::VertexAttrib1f;
1704 this->glVertexAttrib1fv = gl::VertexAttrib1fv;
1705 this->glVertexAttrib2f = gl::VertexAttrib2f;
1706 this->glVertexAttrib2fv = gl::VertexAttrib2fv;
1707 this->glVertexAttrib3f = gl::VertexAttrib3f;
1708 this->glVertexAttrib3fv = gl::VertexAttrib3fv;
1709 this->glVertexAttrib4f = gl::VertexAttrib4f;
1710 this->glVertexAttrib4fv = gl::VertexAttrib4fv;
1711 this->glVertexAttribPointer = gl::VertexAttribPointer;
1712 this->glViewport = gl::Viewport;
1713 this->glBlitFramebufferNV = gl::BlitFramebufferNV;
1714 this->glBlitFramebufferANGLE = gl::BlitFramebufferANGLE;
1715 this->glTexImage3DOES = gl::TexImage3DOES;
1716 this->glTexSubImage3DOES = gl::TexSubImage3DOES;
1717 this->glCopyTexSubImage3DOES = gl::CopyTexSubImage3DOES;
1718 this->glCompressedTexImage3DOES = gl::CompressedTexImage3DOES;
1719 this->glCompressedTexSubImage3DOES = gl::CompressedTexSubImage3DOES;
1720 this->glFramebufferTexture3DOES = gl::FramebufferTexture3DOES;
1721 this->glEGLImageTargetTexture2DOES = gl::EGLImageTargetTexture2DOES;
1722 this->glEGLImageTargetRenderbufferStorageOES = gl::EGLImageTargetRenderbufferStorageOES;
1723 this->glIsRenderbufferOES = gl::IsRenderbufferOES;
1724 this->glBindRenderbufferOES = gl::BindRenderbufferOES;
1725 this->glDeleteRenderbuffersOES = gl::DeleteRenderbuffersOES;
1726 this->glGenRenderbuffersOES = gl::GenRenderbuffersOES;
1727 this->glRenderbufferStorageOES = gl::RenderbufferStorageOES;
1728 this->glGetRenderbufferParameterivOES = gl::GetRenderbufferParameterivOES;
1729 this->glIsFramebufferOES = gl::IsFramebufferOES;
1730 this->glBindFramebufferOES = gl::BindFramebufferOES;
1731 this->glDeleteFramebuffersOES = gl::DeleteFramebuffersOES;
1732 this->glGenFramebuffersOES = gl::GenFramebuffersOES;
1733 this->glCheckFramebufferStatusOES = gl::CheckFramebufferStatusOES;
1734 this->glFramebufferRenderbufferOES = gl::FramebufferRenderbufferOES;
1735 this->glFramebufferTexture2DOES = gl::FramebufferTexture2DOES;
1736 this->glGetFramebufferAttachmentParameterivOES = gl::GetFramebufferAttachmentParameterivOES;
1737 this->glGenerateMipmapOES = gl::GenerateMipmapOES;
1738 this->glDrawBuffersEXT = gl::DrawBuffersEXT;
1739
1740 this->es2CreateContext = ::es2CreateContext;
1741 this->es2GetProcAddress = ::es2GetProcAddress;
1742 this->createBackBuffer = ::createBackBuffer;
1743 this->createBackBufferFromClientBuffer = ::createBackBufferFromClientBuffer;
1744 this->createDepthStencil = ::createDepthStencil;
1745 this->createFrameBuffer = ::createFrameBuffer;
1746 }
1747
libGLESv2_swiftshader()1748 extern "C" GL_APICALL LibGLESv2exports *libGLESv2_swiftshader()
1749 {
1750 static LibGLESv2exports libGLESv2;
1751 return &libGLESv2;
1752 }
1753
1754 LibEGL libEGL;
1755 LibGLES_CM libGLES_CM;
1756