1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // This file is auto-generated from
6 // ui/gl/generate_bindings.py
7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename
13 #include "ui/gl/gl_mock.h"
17 // This is called mainly to prevent the compiler combining the code of mock
18 // functions with identical contents, so that their function pointers will be
20 void MakeFunctionUnique(const char* func_name
) {
21 VLOG(2) << "Calling mock " << func_name
;
24 void GL_BINDING_CALL
MockGLInterface::Mock_glActiveTexture(GLenum texture
) {
25 MakeFunctionUnique("glActiveTexture");
26 interface_
->ActiveTexture(texture
);
30 MockGLInterface::Mock_glAttachShader(GLuint program
, GLuint shader
) {
31 MakeFunctionUnique("glAttachShader");
32 interface_
->AttachShader(program
, shader
);
36 MockGLInterface::Mock_glBeginQuery(GLenum target
, GLuint id
) {
37 MakeFunctionUnique("glBeginQuery");
38 interface_
->BeginQuery(target
, id
);
42 MockGLInterface::Mock_glBeginQueryARB(GLenum target
, GLuint id
) {
43 MakeFunctionUnique("glBeginQueryARB");
44 interface_
->BeginQuery(target
, id
);
48 MockGLInterface::Mock_glBeginQueryEXT(GLenum target
, GLuint id
) {
49 MakeFunctionUnique("glBeginQueryEXT");
50 interface_
->BeginQuery(target
, id
);
54 MockGLInterface::Mock_glBeginTransformFeedback(GLenum primitiveMode
) {
55 MakeFunctionUnique("glBeginTransformFeedback");
56 interface_
->BeginTransformFeedback(primitiveMode
);
60 MockGLInterface::Mock_glBindAttribLocation(GLuint program
,
63 MakeFunctionUnique("glBindAttribLocation");
64 interface_
->BindAttribLocation(program
, index
, name
);
68 MockGLInterface::Mock_glBindBuffer(GLenum target
, GLuint buffer
) {
69 MakeFunctionUnique("glBindBuffer");
70 interface_
->BindBuffer(target
, buffer
);
73 void GL_BINDING_CALL
MockGLInterface::Mock_glBindBufferBase(GLenum target
,
76 MakeFunctionUnique("glBindBufferBase");
77 interface_
->BindBufferBase(target
, index
, buffer
);
80 void GL_BINDING_CALL
MockGLInterface::Mock_glBindBufferRange(GLenum target
,
85 MakeFunctionUnique("glBindBufferRange");
86 interface_
->BindBufferRange(target
, index
, buffer
, offset
, size
);
90 MockGLInterface::Mock_glBindFragDataLocation(GLuint program
,
93 MakeFunctionUnique("glBindFragDataLocation");
94 interface_
->BindFragDataLocation(program
, colorNumber
, name
);
98 MockGLInterface::Mock_glBindFragDataLocationIndexed(GLuint program
,
102 MakeFunctionUnique("glBindFragDataLocationIndexed");
103 interface_
->BindFragDataLocationIndexed(program
, colorNumber
, index
, name
);
107 MockGLInterface::Mock_glBindFramebuffer(GLenum target
, GLuint framebuffer
) {
108 MakeFunctionUnique("glBindFramebuffer");
109 interface_
->BindFramebufferEXT(target
, framebuffer
);
113 MockGLInterface::Mock_glBindFramebufferEXT(GLenum target
, GLuint framebuffer
) {
114 MakeFunctionUnique("glBindFramebufferEXT");
115 interface_
->BindFramebufferEXT(target
, framebuffer
);
119 MockGLInterface::Mock_glBindRenderbuffer(GLenum target
, GLuint renderbuffer
) {
120 MakeFunctionUnique("glBindRenderbuffer");
121 interface_
->BindRenderbufferEXT(target
, renderbuffer
);
125 MockGLInterface::Mock_glBindRenderbufferEXT(GLenum target
,
126 GLuint renderbuffer
) {
127 MakeFunctionUnique("glBindRenderbufferEXT");
128 interface_
->BindRenderbufferEXT(target
, renderbuffer
);
132 MockGLInterface::Mock_glBindSampler(GLuint unit
, GLuint sampler
) {
133 MakeFunctionUnique("glBindSampler");
134 interface_
->BindSampler(unit
, sampler
);
138 MockGLInterface::Mock_glBindTexture(GLenum target
, GLuint texture
) {
139 MakeFunctionUnique("glBindTexture");
140 interface_
->BindTexture(target
, texture
);
144 MockGLInterface::Mock_glBindTransformFeedback(GLenum target
, GLuint id
) {
145 MakeFunctionUnique("glBindTransformFeedback");
146 interface_
->BindTransformFeedback(target
, id
);
149 void GL_BINDING_CALL
MockGLInterface::Mock_glBindVertexArray(GLuint array
) {
150 MakeFunctionUnique("glBindVertexArray");
151 interface_
->BindVertexArrayOES(array
);
155 MockGLInterface::Mock_glBindVertexArrayAPPLE(GLuint array
) {
156 MakeFunctionUnique("glBindVertexArrayAPPLE");
157 interface_
->BindVertexArrayOES(array
);
160 void GL_BINDING_CALL
MockGLInterface::Mock_glBindVertexArrayOES(GLuint array
) {
161 MakeFunctionUnique("glBindVertexArrayOES");
162 interface_
->BindVertexArrayOES(array
);
165 void GL_BINDING_CALL
MockGLInterface::Mock_glBlendBarrierKHR(void) {
166 MakeFunctionUnique("glBlendBarrierKHR");
167 interface_
->BlendBarrierKHR();
170 void GL_BINDING_CALL
MockGLInterface::Mock_glBlendBarrierNV(void) {
171 MakeFunctionUnique("glBlendBarrierNV");
172 interface_
->BlendBarrierKHR();
175 void GL_BINDING_CALL
MockGLInterface::Mock_glBlendColor(GLclampf red
,
179 MakeFunctionUnique("glBlendColor");
180 interface_
->BlendColor(red
, green
, blue
, alpha
);
183 void GL_BINDING_CALL
MockGLInterface::Mock_glBlendEquation(GLenum mode
) {
184 MakeFunctionUnique("glBlendEquation");
185 interface_
->BlendEquation(mode
);
189 MockGLInterface::Mock_glBlendEquationSeparate(GLenum modeRGB
,
191 MakeFunctionUnique("glBlendEquationSeparate");
192 interface_
->BlendEquationSeparate(modeRGB
, modeAlpha
);
196 MockGLInterface::Mock_glBlendFunc(GLenum sfactor
, GLenum dfactor
) {
197 MakeFunctionUnique("glBlendFunc");
198 interface_
->BlendFunc(sfactor
, dfactor
);
202 MockGLInterface::Mock_glBlendFuncSeparate(GLenum srcRGB
,
206 MakeFunctionUnique("glBlendFuncSeparate");
207 interface_
->BlendFuncSeparate(srcRGB
, dstRGB
, srcAlpha
, dstAlpha
);
210 void GL_BINDING_CALL
MockGLInterface::Mock_glBlitFramebuffer(GLint srcX0
,
220 MakeFunctionUnique("glBlitFramebuffer");
221 interface_
->BlitFramebufferEXT(srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
,
222 dstX1
, dstY1
, mask
, filter
);
226 MockGLInterface::Mock_glBlitFramebufferANGLE(GLint srcX0
,
236 MakeFunctionUnique("glBlitFramebufferANGLE");
237 interface_
->BlitFramebufferANGLE(srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
,
238 dstX1
, dstY1
, mask
, filter
);
241 void GL_BINDING_CALL
MockGLInterface::Mock_glBlitFramebufferEXT(GLint srcX0
,
251 MakeFunctionUnique("glBlitFramebufferEXT");
252 interface_
->BlitFramebufferEXT(srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
,
253 dstX1
, dstY1
, mask
, filter
);
256 void GL_BINDING_CALL
MockGLInterface::Mock_glBufferData(GLenum target
,
260 MakeFunctionUnique("glBufferData");
261 interface_
->BufferData(target
, size
, data
, usage
);
264 void GL_BINDING_CALL
MockGLInterface::Mock_glBufferSubData(GLenum target
,
268 MakeFunctionUnique("glBufferSubData");
269 interface_
->BufferSubData(target
, offset
, size
, data
);
272 GLenum GL_BINDING_CALL
273 MockGLInterface::Mock_glCheckFramebufferStatus(GLenum target
) {
274 MakeFunctionUnique("glCheckFramebufferStatus");
275 return interface_
->CheckFramebufferStatusEXT(target
);
278 GLenum GL_BINDING_CALL
279 MockGLInterface::Mock_glCheckFramebufferStatusEXT(GLenum target
) {
280 MakeFunctionUnique("glCheckFramebufferStatusEXT");
281 return interface_
->CheckFramebufferStatusEXT(target
);
284 void GL_BINDING_CALL
MockGLInterface::Mock_glClear(GLbitfield mask
) {
285 MakeFunctionUnique("glClear");
286 interface_
->Clear(mask
);
289 void GL_BINDING_CALL
MockGLInterface::Mock_glClearBufferfi(GLenum buffer
,
293 MakeFunctionUnique("glClearBufferfi");
294 interface_
->ClearBufferfi(buffer
, drawbuffer
, depth
, stencil
);
298 MockGLInterface::Mock_glClearBufferfv(GLenum buffer
,
300 const GLfloat
* value
) {
301 MakeFunctionUnique("glClearBufferfv");
302 interface_
->ClearBufferfv(buffer
, drawbuffer
, value
);
305 void GL_BINDING_CALL
MockGLInterface::Mock_glClearBufferiv(GLenum buffer
,
307 const GLint
* value
) {
308 MakeFunctionUnique("glClearBufferiv");
309 interface_
->ClearBufferiv(buffer
, drawbuffer
, value
);
313 MockGLInterface::Mock_glClearBufferuiv(GLenum buffer
,
315 const GLuint
* value
) {
316 MakeFunctionUnique("glClearBufferuiv");
317 interface_
->ClearBufferuiv(buffer
, drawbuffer
, value
);
320 void GL_BINDING_CALL
MockGLInterface::Mock_glClearColor(GLclampf red
,
324 MakeFunctionUnique("glClearColor");
325 interface_
->ClearColor(red
, green
, blue
, alpha
);
328 void GL_BINDING_CALL
MockGLInterface::Mock_glClearDepth(GLclampd depth
) {
329 MakeFunctionUnique("glClearDepth");
330 interface_
->ClearDepth(depth
);
333 void GL_BINDING_CALL
MockGLInterface::Mock_glClearDepthf(GLclampf depth
) {
334 MakeFunctionUnique("glClearDepthf");
335 interface_
->ClearDepthf(depth
);
338 void GL_BINDING_CALL
MockGLInterface::Mock_glClearStencil(GLint s
) {
339 MakeFunctionUnique("glClearStencil");
340 interface_
->ClearStencil(s
);
343 GLenum GL_BINDING_CALL
344 MockGLInterface::Mock_glClientWaitSync(GLsync sync
,
347 MakeFunctionUnique("glClientWaitSync");
348 return interface_
->ClientWaitSync(sync
, flags
, timeout
);
351 void GL_BINDING_CALL
MockGLInterface::Mock_glColorMask(GLboolean red
,
355 MakeFunctionUnique("glColorMask");
356 interface_
->ColorMask(red
, green
, blue
, alpha
);
359 void GL_BINDING_CALL
MockGLInterface::Mock_glCompileShader(GLuint shader
) {
360 MakeFunctionUnique("glCompileShader");
361 interface_
->CompileShader(shader
);
365 MockGLInterface::Mock_glCompressedTexImage2D(GLenum target
,
367 GLenum internalformat
,
373 MakeFunctionUnique("glCompressedTexImage2D");
374 interface_
->CompressedTexImage2D(target
, level
, internalformat
, width
, height
,
375 border
, imageSize
, data
);
379 MockGLInterface::Mock_glCompressedTexImage3D(GLenum target
,
381 GLenum internalformat
,
388 MakeFunctionUnique("glCompressedTexImage3D");
389 interface_
->CompressedTexImage3D(target
, level
, internalformat
, width
, height
,
390 depth
, border
, imageSize
, data
);
394 MockGLInterface::Mock_glCompressedTexSubImage2D(GLenum target
,
403 MakeFunctionUnique("glCompressedTexSubImage2D");
404 interface_
->CompressedTexSubImage2D(target
, level
, xoffset
, yoffset
, width
,
405 height
, format
, imageSize
, data
);
409 MockGLInterface::Mock_glCopyBufferSubData(GLenum readTarget
,
412 GLintptr writeOffset
,
414 MakeFunctionUnique("glCopyBufferSubData");
415 interface_
->CopyBufferSubData(readTarget
, writeTarget
, readOffset
,
420 MockGLInterface::Mock_glCopyTexImage2D(GLenum target
,
422 GLenum internalformat
,
428 MakeFunctionUnique("glCopyTexImage2D");
429 interface_
->CopyTexImage2D(target
, level
, internalformat
, x
, y
, width
, height
,
433 void GL_BINDING_CALL
MockGLInterface::Mock_glCopyTexSubImage2D(GLenum target
,
441 MakeFunctionUnique("glCopyTexSubImage2D");
442 interface_
->CopyTexSubImage2D(target
, level
, xoffset
, yoffset
, x
, y
, width
,
446 void GL_BINDING_CALL
MockGLInterface::Mock_glCopyTexSubImage3D(GLenum target
,
455 MakeFunctionUnique("glCopyTexSubImage3D");
456 interface_
->CopyTexSubImage3D(target
, level
, xoffset
, yoffset
, zoffset
, x
, y
,
460 GLuint GL_BINDING_CALL
MockGLInterface::Mock_glCreateProgram(void) {
461 MakeFunctionUnique("glCreateProgram");
462 return interface_
->CreateProgram();
465 GLuint GL_BINDING_CALL
MockGLInterface::Mock_glCreateShader(GLenum type
) {
466 MakeFunctionUnique("glCreateShader");
467 return interface_
->CreateShader(type
);
470 void GL_BINDING_CALL
MockGLInterface::Mock_glCullFace(GLenum mode
) {
471 MakeFunctionUnique("glCullFace");
472 interface_
->CullFace(mode
);
476 MockGLInterface::Mock_glDeleteBuffers(GLsizei n
, const GLuint
* buffers
) {
477 MakeFunctionUnique("glDeleteBuffers");
478 interface_
->DeleteBuffersARB(n
, buffers
);
482 MockGLInterface::Mock_glDeleteFencesAPPLE(GLsizei n
, const GLuint
* fences
) {
483 MakeFunctionUnique("glDeleteFencesAPPLE");
484 interface_
->DeleteFencesAPPLE(n
, fences
);
488 MockGLInterface::Mock_glDeleteFencesNV(GLsizei n
, const GLuint
* fences
) {
489 MakeFunctionUnique("glDeleteFencesNV");
490 interface_
->DeleteFencesNV(n
, fences
);
494 MockGLInterface::Mock_glDeleteFramebuffers(GLsizei n
,
495 const GLuint
* framebuffers
) {
496 MakeFunctionUnique("glDeleteFramebuffers");
497 interface_
->DeleteFramebuffersEXT(n
, framebuffers
);
501 MockGLInterface::Mock_glDeleteFramebuffersEXT(GLsizei n
,
502 const GLuint
* framebuffers
) {
503 MakeFunctionUnique("glDeleteFramebuffersEXT");
504 interface_
->DeleteFramebuffersEXT(n
, framebuffers
);
507 void GL_BINDING_CALL
MockGLInterface::Mock_glDeleteProgram(GLuint program
) {
508 MakeFunctionUnique("glDeleteProgram");
509 interface_
->DeleteProgram(program
);
513 MockGLInterface::Mock_glDeleteQueries(GLsizei n
, const GLuint
* ids
) {
514 MakeFunctionUnique("glDeleteQueries");
515 interface_
->DeleteQueries(n
, ids
);
519 MockGLInterface::Mock_glDeleteQueriesARB(GLsizei n
, const GLuint
* ids
) {
520 MakeFunctionUnique("glDeleteQueriesARB");
521 interface_
->DeleteQueries(n
, ids
);
525 MockGLInterface::Mock_glDeleteQueriesEXT(GLsizei n
, const GLuint
* ids
) {
526 MakeFunctionUnique("glDeleteQueriesEXT");
527 interface_
->DeleteQueries(n
, ids
);
531 MockGLInterface::Mock_glDeleteRenderbuffers(GLsizei n
,
532 const GLuint
* renderbuffers
) {
533 MakeFunctionUnique("glDeleteRenderbuffers");
534 interface_
->DeleteRenderbuffersEXT(n
, renderbuffers
);
538 MockGLInterface::Mock_glDeleteRenderbuffersEXT(GLsizei n
,
539 const GLuint
* renderbuffers
) {
540 MakeFunctionUnique("glDeleteRenderbuffersEXT");
541 interface_
->DeleteRenderbuffersEXT(n
, renderbuffers
);
545 MockGLInterface::Mock_glDeleteSamplers(GLsizei n
, const GLuint
* samplers
) {
546 MakeFunctionUnique("glDeleteSamplers");
547 interface_
->DeleteSamplers(n
, samplers
);
550 void GL_BINDING_CALL
MockGLInterface::Mock_glDeleteShader(GLuint shader
) {
551 MakeFunctionUnique("glDeleteShader");
552 interface_
->DeleteShader(shader
);
555 void GL_BINDING_CALL
MockGLInterface::Mock_glDeleteSync(GLsync sync
) {
556 MakeFunctionUnique("glDeleteSync");
557 interface_
->DeleteSync(sync
);
561 MockGLInterface::Mock_glDeleteTextures(GLsizei n
, const GLuint
* textures
) {
562 MakeFunctionUnique("glDeleteTextures");
563 interface_
->DeleteTextures(n
, textures
);
567 MockGLInterface::Mock_glDeleteTransformFeedbacks(GLsizei n
, const GLuint
* ids
) {
568 MakeFunctionUnique("glDeleteTransformFeedbacks");
569 interface_
->DeleteTransformFeedbacks(n
, ids
);
573 MockGLInterface::Mock_glDeleteVertexArrays(GLsizei n
, const GLuint
* arrays
) {
574 MakeFunctionUnique("glDeleteVertexArrays");
575 interface_
->DeleteVertexArraysOES(n
, arrays
);
579 MockGLInterface::Mock_glDeleteVertexArraysAPPLE(GLsizei n
,
580 const GLuint
* arrays
) {
581 MakeFunctionUnique("glDeleteVertexArraysAPPLE");
582 interface_
->DeleteVertexArraysOES(n
, arrays
);
586 MockGLInterface::Mock_glDeleteVertexArraysOES(GLsizei n
, const GLuint
* arrays
) {
587 MakeFunctionUnique("glDeleteVertexArraysOES");
588 interface_
->DeleteVertexArraysOES(n
, arrays
);
591 void GL_BINDING_CALL
MockGLInterface::Mock_glDepthFunc(GLenum func
) {
592 MakeFunctionUnique("glDepthFunc");
593 interface_
->DepthFunc(func
);
596 void GL_BINDING_CALL
MockGLInterface::Mock_glDepthMask(GLboolean flag
) {
597 MakeFunctionUnique("glDepthMask");
598 interface_
->DepthMask(flag
);
602 MockGLInterface::Mock_glDepthRange(GLclampd zNear
, GLclampd zFar
) {
603 MakeFunctionUnique("glDepthRange");
604 interface_
->DepthRange(zNear
, zFar
);
608 MockGLInterface::Mock_glDepthRangef(GLclampf zNear
, GLclampf zFar
) {
609 MakeFunctionUnique("glDepthRangef");
610 interface_
->DepthRangef(zNear
, zFar
);
614 MockGLInterface::Mock_glDetachShader(GLuint program
, GLuint shader
) {
615 MakeFunctionUnique("glDetachShader");
616 interface_
->DetachShader(program
, shader
);
619 void GL_BINDING_CALL
MockGLInterface::Mock_glDisable(GLenum cap
) {
620 MakeFunctionUnique("glDisable");
621 interface_
->Disable(cap
);
625 MockGLInterface::Mock_glDisableVertexAttribArray(GLuint index
) {
626 MakeFunctionUnique("glDisableVertexAttribArray");
627 interface_
->DisableVertexAttribArray(index
);
631 MockGLInterface::Mock_glDiscardFramebufferEXT(GLenum target
,
632 GLsizei numAttachments
,
633 const GLenum
* attachments
) {
634 MakeFunctionUnique("glDiscardFramebufferEXT");
635 interface_
->DiscardFramebufferEXT(target
, numAttachments
, attachments
);
639 MockGLInterface::Mock_glDrawArrays(GLenum mode
, GLint first
, GLsizei count
) {
640 MakeFunctionUnique("glDrawArrays");
641 interface_
->DrawArrays(mode
, first
, count
);
645 MockGLInterface::Mock_glDrawArraysInstanced(GLenum mode
,
649 MakeFunctionUnique("glDrawArraysInstanced");
650 interface_
->DrawArraysInstancedANGLE(mode
, first
, count
, primcount
);
654 MockGLInterface::Mock_glDrawArraysInstancedANGLE(GLenum mode
,
658 MakeFunctionUnique("glDrawArraysInstancedANGLE");
659 interface_
->DrawArraysInstancedANGLE(mode
, first
, count
, primcount
);
663 MockGLInterface::Mock_glDrawArraysInstancedARB(GLenum mode
,
667 MakeFunctionUnique("glDrawArraysInstancedARB");
668 interface_
->DrawArraysInstancedANGLE(mode
, first
, count
, primcount
);
671 void GL_BINDING_CALL
MockGLInterface::Mock_glDrawBuffer(GLenum mode
) {
672 MakeFunctionUnique("glDrawBuffer");
673 interface_
->DrawBuffer(mode
);
677 MockGLInterface::Mock_glDrawBuffers(GLsizei n
, const GLenum
* bufs
) {
678 MakeFunctionUnique("glDrawBuffers");
679 interface_
->DrawBuffersARB(n
, bufs
);
683 MockGLInterface::Mock_glDrawBuffersARB(GLsizei n
, const GLenum
* bufs
) {
684 MakeFunctionUnique("glDrawBuffersARB");
685 interface_
->DrawBuffersARB(n
, bufs
);
689 MockGLInterface::Mock_glDrawBuffersEXT(GLsizei n
, const GLenum
* bufs
) {
690 MakeFunctionUnique("glDrawBuffersEXT");
691 interface_
->DrawBuffersARB(n
, bufs
);
694 void GL_BINDING_CALL
MockGLInterface::Mock_glDrawElements(GLenum mode
,
697 const void* indices
) {
698 MakeFunctionUnique("glDrawElements");
699 interface_
->DrawElements(mode
, count
, type
, indices
);
703 MockGLInterface::Mock_glDrawElementsInstanced(GLenum mode
,
708 MakeFunctionUnique("glDrawElementsInstanced");
709 interface_
->DrawElementsInstancedANGLE(mode
, count
, type
, indices
, primcount
);
713 MockGLInterface::Mock_glDrawElementsInstancedANGLE(GLenum mode
,
718 MakeFunctionUnique("glDrawElementsInstancedANGLE");
719 interface_
->DrawElementsInstancedANGLE(mode
, count
, type
, indices
, primcount
);
723 MockGLInterface::Mock_glDrawElementsInstancedARB(GLenum mode
,
728 MakeFunctionUnique("glDrawElementsInstancedARB");
729 interface_
->DrawElementsInstancedANGLE(mode
, count
, type
, indices
, primcount
);
733 MockGLInterface::Mock_glDrawRangeElements(GLenum mode
,
738 const void* indices
) {
739 MakeFunctionUnique("glDrawRangeElements");
740 interface_
->DrawRangeElements(mode
, start
, end
, count
, type
, indices
);
744 MockGLInterface::Mock_glEGLImageTargetRenderbufferStorageOES(
746 GLeglImageOES image
) {
747 MakeFunctionUnique("glEGLImageTargetRenderbufferStorageOES");
748 interface_
->EGLImageTargetRenderbufferStorageOES(target
, image
);
752 MockGLInterface::Mock_glEGLImageTargetTexture2DOES(GLenum target
,
753 GLeglImageOES image
) {
754 MakeFunctionUnique("glEGLImageTargetTexture2DOES");
755 interface_
->EGLImageTargetTexture2DOES(target
, image
);
758 void GL_BINDING_CALL
MockGLInterface::Mock_glEnable(GLenum cap
) {
759 MakeFunctionUnique("glEnable");
760 interface_
->Enable(cap
);
764 MockGLInterface::Mock_glEnableVertexAttribArray(GLuint index
) {
765 MakeFunctionUnique("glEnableVertexAttribArray");
766 interface_
->EnableVertexAttribArray(index
);
769 void GL_BINDING_CALL
MockGLInterface::Mock_glEndQuery(GLenum target
) {
770 MakeFunctionUnique("glEndQuery");
771 interface_
->EndQuery(target
);
774 void GL_BINDING_CALL
MockGLInterface::Mock_glEndQueryARB(GLenum target
) {
775 MakeFunctionUnique("glEndQueryARB");
776 interface_
->EndQuery(target
);
779 void GL_BINDING_CALL
MockGLInterface::Mock_glEndQueryEXT(GLenum target
) {
780 MakeFunctionUnique("glEndQueryEXT");
781 interface_
->EndQuery(target
);
784 void GL_BINDING_CALL
MockGLInterface::Mock_glEndTransformFeedback(void) {
785 MakeFunctionUnique("glEndTransformFeedback");
786 interface_
->EndTransformFeedback();
789 GLsync GL_BINDING_CALL
790 MockGLInterface::Mock_glFenceSync(GLenum condition
, GLbitfield flags
) {
791 MakeFunctionUnique("glFenceSync");
792 return interface_
->FenceSync(condition
, flags
);
795 void GL_BINDING_CALL
MockGLInterface::Mock_glFinish(void) {
796 MakeFunctionUnique("glFinish");
797 interface_
->Finish();
800 void GL_BINDING_CALL
MockGLInterface::Mock_glFinishFenceAPPLE(GLuint fence
) {
801 MakeFunctionUnique("glFinishFenceAPPLE");
802 interface_
->FinishFenceAPPLE(fence
);
805 void GL_BINDING_CALL
MockGLInterface::Mock_glFinishFenceNV(GLuint fence
) {
806 MakeFunctionUnique("glFinishFenceNV");
807 interface_
->FinishFenceNV(fence
);
810 void GL_BINDING_CALL
MockGLInterface::Mock_glFlush(void) {
811 MakeFunctionUnique("glFlush");
816 MockGLInterface::Mock_glFlushMappedBufferRange(GLenum target
,
819 MakeFunctionUnique("glFlushMappedBufferRange");
820 interface_
->FlushMappedBufferRange(target
, offset
, length
);
824 MockGLInterface::Mock_glFramebufferRenderbuffer(GLenum target
,
826 GLenum renderbuffertarget
,
827 GLuint renderbuffer
) {
828 MakeFunctionUnique("glFramebufferRenderbuffer");
829 interface_
->FramebufferRenderbufferEXT(target
, attachment
, renderbuffertarget
,
834 MockGLInterface::Mock_glFramebufferRenderbufferEXT(GLenum target
,
836 GLenum renderbuffertarget
,
837 GLuint renderbuffer
) {
838 MakeFunctionUnique("glFramebufferRenderbufferEXT");
839 interface_
->FramebufferRenderbufferEXT(target
, attachment
, renderbuffertarget
,
844 MockGLInterface::Mock_glFramebufferTexture2D(GLenum target
,
849 MakeFunctionUnique("glFramebufferTexture2D");
850 interface_
->FramebufferTexture2DEXT(target
, attachment
, textarget
, texture
,
855 MockGLInterface::Mock_glFramebufferTexture2DEXT(GLenum target
,
860 MakeFunctionUnique("glFramebufferTexture2DEXT");
861 interface_
->FramebufferTexture2DEXT(target
, attachment
, textarget
, texture
,
866 MockGLInterface::Mock_glFramebufferTexture2DMultisampleEXT(GLenum target
,
872 MakeFunctionUnique("glFramebufferTexture2DMultisampleEXT");
873 interface_
->FramebufferTexture2DMultisampleEXT(target
, attachment
, textarget
,
874 texture
, level
, samples
);
878 MockGLInterface::Mock_glFramebufferTexture2DMultisampleIMG(GLenum target
,
884 MakeFunctionUnique("glFramebufferTexture2DMultisampleIMG");
885 interface_
->FramebufferTexture2DMultisampleIMG(target
, attachment
, textarget
,
886 texture
, level
, samples
);
890 MockGLInterface::Mock_glFramebufferTextureLayer(GLenum target
,
895 MakeFunctionUnique("glFramebufferTextureLayer");
896 interface_
->FramebufferTextureLayer(target
, attachment
, texture
, level
,
900 void GL_BINDING_CALL
MockGLInterface::Mock_glFrontFace(GLenum mode
) {
901 MakeFunctionUnique("glFrontFace");
902 interface_
->FrontFace(mode
);
906 MockGLInterface::Mock_glGenBuffers(GLsizei n
, GLuint
* buffers
) {
907 MakeFunctionUnique("glGenBuffers");
908 interface_
->GenBuffersARB(n
, buffers
);
912 MockGLInterface::Mock_glGenFencesAPPLE(GLsizei n
, GLuint
* fences
) {
913 MakeFunctionUnique("glGenFencesAPPLE");
914 interface_
->GenFencesAPPLE(n
, fences
);
918 MockGLInterface::Mock_glGenFencesNV(GLsizei n
, GLuint
* fences
) {
919 MakeFunctionUnique("glGenFencesNV");
920 interface_
->GenFencesNV(n
, fences
);
924 MockGLInterface::Mock_glGenFramebuffers(GLsizei n
, GLuint
* framebuffers
) {
925 MakeFunctionUnique("glGenFramebuffers");
926 interface_
->GenFramebuffersEXT(n
, framebuffers
);
930 MockGLInterface::Mock_glGenFramebuffersEXT(GLsizei n
, GLuint
* framebuffers
) {
931 MakeFunctionUnique("glGenFramebuffersEXT");
932 interface_
->GenFramebuffersEXT(n
, framebuffers
);
936 MockGLInterface::Mock_glGenQueries(GLsizei n
, GLuint
* ids
) {
937 MakeFunctionUnique("glGenQueries");
938 interface_
->GenQueries(n
, ids
);
942 MockGLInterface::Mock_glGenQueriesARB(GLsizei n
, GLuint
* ids
) {
943 MakeFunctionUnique("glGenQueriesARB");
944 interface_
->GenQueries(n
, ids
);
948 MockGLInterface::Mock_glGenQueriesEXT(GLsizei n
, GLuint
* ids
) {
949 MakeFunctionUnique("glGenQueriesEXT");
950 interface_
->GenQueries(n
, ids
);
954 MockGLInterface::Mock_glGenRenderbuffers(GLsizei n
, GLuint
* renderbuffers
) {
955 MakeFunctionUnique("glGenRenderbuffers");
956 interface_
->GenRenderbuffersEXT(n
, renderbuffers
);
960 MockGLInterface::Mock_glGenRenderbuffersEXT(GLsizei n
, GLuint
* renderbuffers
) {
961 MakeFunctionUnique("glGenRenderbuffersEXT");
962 interface_
->GenRenderbuffersEXT(n
, renderbuffers
);
966 MockGLInterface::Mock_glGenSamplers(GLsizei n
, GLuint
* samplers
) {
967 MakeFunctionUnique("glGenSamplers");
968 interface_
->GenSamplers(n
, samplers
);
972 MockGLInterface::Mock_glGenTextures(GLsizei n
, GLuint
* textures
) {
973 MakeFunctionUnique("glGenTextures");
974 interface_
->GenTextures(n
, textures
);
978 MockGLInterface::Mock_glGenTransformFeedbacks(GLsizei n
, GLuint
* ids
) {
979 MakeFunctionUnique("glGenTransformFeedbacks");
980 interface_
->GenTransformFeedbacks(n
, ids
);
984 MockGLInterface::Mock_glGenVertexArrays(GLsizei n
, GLuint
* arrays
) {
985 MakeFunctionUnique("glGenVertexArrays");
986 interface_
->GenVertexArraysOES(n
, arrays
);
990 MockGLInterface::Mock_glGenVertexArraysAPPLE(GLsizei n
, GLuint
* arrays
) {
991 MakeFunctionUnique("glGenVertexArraysAPPLE");
992 interface_
->GenVertexArraysOES(n
, arrays
);
996 MockGLInterface::Mock_glGenVertexArraysOES(GLsizei n
, GLuint
* arrays
) {
997 MakeFunctionUnique("glGenVertexArraysOES");
998 interface_
->GenVertexArraysOES(n
, arrays
);
1001 void GL_BINDING_CALL
MockGLInterface::Mock_glGenerateMipmap(GLenum target
) {
1002 MakeFunctionUnique("glGenerateMipmap");
1003 interface_
->GenerateMipmapEXT(target
);
1006 void GL_BINDING_CALL
MockGLInterface::Mock_glGenerateMipmapEXT(GLenum target
) {
1007 MakeFunctionUnique("glGenerateMipmapEXT");
1008 interface_
->GenerateMipmapEXT(target
);
1011 void GL_BINDING_CALL
MockGLInterface::Mock_glGetActiveAttrib(GLuint program
,
1018 MakeFunctionUnique("glGetActiveAttrib");
1019 interface_
->GetActiveAttrib(program
, index
, bufsize
, length
, size
, type
,
1023 void GL_BINDING_CALL
MockGLInterface::Mock_glGetActiveUniform(GLuint program
,
1030 MakeFunctionUnique("glGetActiveUniform");
1031 interface_
->GetActiveUniform(program
, index
, bufsize
, length
, size
, type
,
1035 void GL_BINDING_CALL
1036 MockGLInterface::Mock_glGetActiveUniformBlockName(GLuint program
,
1037 GLuint uniformBlockIndex
,
1040 char* uniformBlockName
) {
1041 MakeFunctionUnique("glGetActiveUniformBlockName");
1042 interface_
->GetActiveUniformBlockName(program
, uniformBlockIndex
, bufSize
,
1043 length
, uniformBlockName
);
1046 void GL_BINDING_CALL
1047 MockGLInterface::Mock_glGetActiveUniformBlockiv(GLuint program
,
1048 GLuint uniformBlockIndex
,
1051 MakeFunctionUnique("glGetActiveUniformBlockiv");
1052 interface_
->GetActiveUniformBlockiv(program
, uniformBlockIndex
, pname
,
1056 void GL_BINDING_CALL
1057 MockGLInterface::Mock_glGetActiveUniformsiv(GLuint program
,
1058 GLsizei uniformCount
,
1059 const GLuint
* uniformIndices
,
1062 MakeFunctionUnique("glGetActiveUniformsiv");
1063 interface_
->GetActiveUniformsiv(program
, uniformCount
, uniformIndices
, pname
,
1067 void GL_BINDING_CALL
1068 MockGLInterface::Mock_glGetAttachedShaders(GLuint program
,
1072 MakeFunctionUnique("glGetAttachedShaders");
1073 interface_
->GetAttachedShaders(program
, maxcount
, count
, shaders
);
1076 GLint GL_BINDING_CALL
1077 MockGLInterface::Mock_glGetAttribLocation(GLuint program
, const char* name
) {
1078 MakeFunctionUnique("glGetAttribLocation");
1079 return interface_
->GetAttribLocation(program
, name
);
1082 void GL_BINDING_CALL
1083 MockGLInterface::Mock_glGetBooleanv(GLenum pname
, GLboolean
* params
) {
1084 MakeFunctionUnique("glGetBooleanv");
1085 interface_
->GetBooleanv(pname
, params
);
1088 void GL_BINDING_CALL
1089 MockGLInterface::Mock_glGetBufferParameteriv(GLenum target
,
1092 MakeFunctionUnique("glGetBufferParameteriv");
1093 interface_
->GetBufferParameteriv(target
, pname
, params
);
1096 GLenum GL_BINDING_CALL
MockGLInterface::Mock_glGetError(void) {
1097 MakeFunctionUnique("glGetError");
1098 return interface_
->GetError();
1101 void GL_BINDING_CALL
MockGLInterface::Mock_glGetFenceivNV(GLuint fence
,
1104 MakeFunctionUnique("glGetFenceivNV");
1105 interface_
->GetFenceivNV(fence
, pname
, params
);
1108 void GL_BINDING_CALL
1109 MockGLInterface::Mock_glGetFloatv(GLenum pname
, GLfloat
* params
) {
1110 MakeFunctionUnique("glGetFloatv");
1111 interface_
->GetFloatv(pname
, params
);
1114 GLint GL_BINDING_CALL
1115 MockGLInterface::Mock_glGetFragDataLocation(GLuint program
, const char* name
) {
1116 MakeFunctionUnique("glGetFragDataLocation");
1117 return interface_
->GetFragDataLocation(program
, name
);
1120 void GL_BINDING_CALL
1121 MockGLInterface::Mock_glGetFramebufferAttachmentParameteriv(GLenum target
,
1125 MakeFunctionUnique("glGetFramebufferAttachmentParameteriv");
1126 interface_
->GetFramebufferAttachmentParameterivEXT(target
, attachment
, pname
,
1130 void GL_BINDING_CALL
1131 MockGLInterface::Mock_glGetFramebufferAttachmentParameterivEXT(
1136 MakeFunctionUnique("glGetFramebufferAttachmentParameterivEXT");
1137 interface_
->GetFramebufferAttachmentParameterivEXT(target
, attachment
, pname
,
1141 GLenum GL_BINDING_CALL
MockGLInterface::Mock_glGetGraphicsResetStatus(void) {
1142 MakeFunctionUnique("glGetGraphicsResetStatus");
1143 return interface_
->GetGraphicsResetStatusARB();
1146 GLenum GL_BINDING_CALL
MockGLInterface::Mock_glGetGraphicsResetStatusARB(void) {
1147 MakeFunctionUnique("glGetGraphicsResetStatusARB");
1148 return interface_
->GetGraphicsResetStatusARB();
1151 GLenum GL_BINDING_CALL
MockGLInterface::Mock_glGetGraphicsResetStatusEXT(void) {
1152 MakeFunctionUnique("glGetGraphicsResetStatusEXT");
1153 return interface_
->GetGraphicsResetStatusARB();
1156 GLenum GL_BINDING_CALL
MockGLInterface::Mock_glGetGraphicsResetStatusKHR(void) {
1157 MakeFunctionUnique("glGetGraphicsResetStatusKHR");
1158 return interface_
->GetGraphicsResetStatusARB();
1161 void GL_BINDING_CALL
MockGLInterface::Mock_glGetInteger64i_v(GLenum target
,
1164 MakeFunctionUnique("glGetInteger64i_v");
1165 interface_
->GetInteger64i_v(target
, index
, data
);
1168 void GL_BINDING_CALL
1169 MockGLInterface::Mock_glGetInteger64v(GLenum pname
, GLint64
* params
) {
1170 MakeFunctionUnique("glGetInteger64v");
1171 interface_
->GetInteger64v(pname
, params
);
1174 void GL_BINDING_CALL
MockGLInterface::Mock_glGetIntegeri_v(GLenum target
,
1177 MakeFunctionUnique("glGetIntegeri_v");
1178 interface_
->GetIntegeri_v(target
, index
, data
);
1181 void GL_BINDING_CALL
1182 MockGLInterface::Mock_glGetIntegerv(GLenum pname
, GLint
* params
) {
1183 MakeFunctionUnique("glGetIntegerv");
1184 interface_
->GetIntegerv(pname
, params
);
1187 void GL_BINDING_CALL
1188 MockGLInterface::Mock_glGetInternalformativ(GLenum target
,
1189 GLenum internalformat
,
1193 MakeFunctionUnique("glGetInternalformativ");
1194 interface_
->GetInternalformativ(target
, internalformat
, pname
, bufSize
,
1198 void GL_BINDING_CALL
1199 MockGLInterface::Mock_glGetProgramBinary(GLuint program
,
1202 GLenum
* binaryFormat
,
1204 MakeFunctionUnique("glGetProgramBinary");
1205 interface_
->GetProgramBinary(program
, bufSize
, length
, binaryFormat
, binary
);
1208 void GL_BINDING_CALL
1209 MockGLInterface::Mock_glGetProgramBinaryOES(GLuint program
,
1212 GLenum
* binaryFormat
,
1214 MakeFunctionUnique("glGetProgramBinaryOES");
1215 interface_
->GetProgramBinary(program
, bufSize
, length
, binaryFormat
, binary
);
1218 void GL_BINDING_CALL
MockGLInterface::Mock_glGetProgramInfoLog(GLuint program
,
1222 MakeFunctionUnique("glGetProgramInfoLog");
1223 interface_
->GetProgramInfoLog(program
, bufsize
, length
, infolog
);
1226 GLint GL_BINDING_CALL
1227 MockGLInterface::Mock_glGetProgramResourceLocation(GLuint program
,
1228 GLenum programInterface
,
1230 MakeFunctionUnique("glGetProgramResourceLocation");
1231 return interface_
->GetProgramResourceLocation(program
, programInterface
,
1235 void GL_BINDING_CALL
MockGLInterface::Mock_glGetProgramiv(GLuint program
,
1238 MakeFunctionUnique("glGetProgramiv");
1239 interface_
->GetProgramiv(program
, pname
, params
);
1242 void GL_BINDING_CALL
1243 MockGLInterface::Mock_glGetQueryObjecti64v(GLuint id
,
1246 MakeFunctionUnique("glGetQueryObjecti64v");
1247 interface_
->GetQueryObjecti64v(id
, pname
, params
);
1250 void GL_BINDING_CALL
1251 MockGLInterface::Mock_glGetQueryObjecti64vEXT(GLuint id
,
1254 MakeFunctionUnique("glGetQueryObjecti64vEXT");
1255 interface_
->GetQueryObjecti64v(id
, pname
, params
);
1258 void GL_BINDING_CALL
MockGLInterface::Mock_glGetQueryObjectiv(GLuint id
,
1261 MakeFunctionUnique("glGetQueryObjectiv");
1262 interface_
->GetQueryObjectiv(id
, pname
, params
);
1265 void GL_BINDING_CALL
1266 MockGLInterface::Mock_glGetQueryObjectivARB(GLuint id
,
1269 MakeFunctionUnique("glGetQueryObjectivARB");
1270 interface_
->GetQueryObjectiv(id
, pname
, params
);
1273 void GL_BINDING_CALL
1274 MockGLInterface::Mock_glGetQueryObjectivEXT(GLuint id
,
1277 MakeFunctionUnique("glGetQueryObjectivEXT");
1278 interface_
->GetQueryObjectiv(id
, pname
, params
);
1281 void GL_BINDING_CALL
1282 MockGLInterface::Mock_glGetQueryObjectui64v(GLuint id
,
1285 MakeFunctionUnique("glGetQueryObjectui64v");
1286 interface_
->GetQueryObjectui64v(id
, pname
, params
);
1289 void GL_BINDING_CALL
1290 MockGLInterface::Mock_glGetQueryObjectui64vEXT(GLuint id
,
1293 MakeFunctionUnique("glGetQueryObjectui64vEXT");
1294 interface_
->GetQueryObjectui64v(id
, pname
, params
);
1297 void GL_BINDING_CALL
MockGLInterface::Mock_glGetQueryObjectuiv(GLuint id
,
1300 MakeFunctionUnique("glGetQueryObjectuiv");
1301 interface_
->GetQueryObjectuiv(id
, pname
, params
);
1304 void GL_BINDING_CALL
1305 MockGLInterface::Mock_glGetQueryObjectuivARB(GLuint id
,
1308 MakeFunctionUnique("glGetQueryObjectuivARB");
1309 interface_
->GetQueryObjectuiv(id
, pname
, params
);
1312 void GL_BINDING_CALL
1313 MockGLInterface::Mock_glGetQueryObjectuivEXT(GLuint id
,
1316 MakeFunctionUnique("glGetQueryObjectuivEXT");
1317 interface_
->GetQueryObjectuiv(id
, pname
, params
);
1320 void GL_BINDING_CALL
1321 MockGLInterface::Mock_glGetQueryiv(GLenum target
, GLenum pname
, GLint
* params
) {
1322 MakeFunctionUnique("glGetQueryiv");
1323 interface_
->GetQueryiv(target
, pname
, params
);
1326 void GL_BINDING_CALL
MockGLInterface::Mock_glGetQueryivARB(GLenum target
,
1329 MakeFunctionUnique("glGetQueryivARB");
1330 interface_
->GetQueryiv(target
, pname
, params
);
1333 void GL_BINDING_CALL
MockGLInterface::Mock_glGetQueryivEXT(GLenum target
,
1336 MakeFunctionUnique("glGetQueryivEXT");
1337 interface_
->GetQueryiv(target
, pname
, params
);
1340 void GL_BINDING_CALL
1341 MockGLInterface::Mock_glGetRenderbufferParameteriv(GLenum target
,
1344 MakeFunctionUnique("glGetRenderbufferParameteriv");
1345 interface_
->GetRenderbufferParameterivEXT(target
, pname
, params
);
1348 void GL_BINDING_CALL
1349 MockGLInterface::Mock_glGetRenderbufferParameterivEXT(GLenum target
,
1352 MakeFunctionUnique("glGetRenderbufferParameterivEXT");
1353 interface_
->GetRenderbufferParameterivEXT(target
, pname
, params
);
1356 void GL_BINDING_CALL
1357 MockGLInterface::Mock_glGetSamplerParameterfv(GLuint sampler
,
1360 MakeFunctionUnique("glGetSamplerParameterfv");
1361 interface_
->GetSamplerParameterfv(sampler
, pname
, params
);
1364 void GL_BINDING_CALL
1365 MockGLInterface::Mock_glGetSamplerParameteriv(GLuint sampler
,
1368 MakeFunctionUnique("glGetSamplerParameteriv");
1369 interface_
->GetSamplerParameteriv(sampler
, pname
, params
);
1372 void GL_BINDING_CALL
MockGLInterface::Mock_glGetShaderInfoLog(GLuint shader
,
1376 MakeFunctionUnique("glGetShaderInfoLog");
1377 interface_
->GetShaderInfoLog(shader
, bufsize
, length
, infolog
);
1380 void GL_BINDING_CALL
1381 MockGLInterface::Mock_glGetShaderPrecisionFormat(GLenum shadertype
,
1382 GLenum precisiontype
,
1385 MakeFunctionUnique("glGetShaderPrecisionFormat");
1386 interface_
->GetShaderPrecisionFormat(shadertype
, precisiontype
, range
,
1390 void GL_BINDING_CALL
MockGLInterface::Mock_glGetShaderSource(GLuint shader
,
1394 MakeFunctionUnique("glGetShaderSource");
1395 interface_
->GetShaderSource(shader
, bufsize
, length
, source
);
1398 void GL_BINDING_CALL
MockGLInterface::Mock_glGetShaderiv(GLuint shader
,
1401 MakeFunctionUnique("glGetShaderiv");
1402 interface_
->GetShaderiv(shader
, pname
, params
);
1405 const GLubyte
* GL_BINDING_CALL
MockGLInterface::Mock_glGetString(GLenum name
) {
1406 MakeFunctionUnique("glGetString");
1407 return interface_
->GetString(name
);
1410 const GLubyte
* GL_BINDING_CALL
1411 MockGLInterface::Mock_glGetStringi(GLenum name
, GLuint index
) {
1412 MakeFunctionUnique("glGetStringi");
1413 return interface_
->GetStringi(name
, index
);
1416 void GL_BINDING_CALL
MockGLInterface::Mock_glGetSynciv(GLsync sync
,
1421 MakeFunctionUnique("glGetSynciv");
1422 interface_
->GetSynciv(sync
, pname
, bufSize
, length
, values
);
1425 void GL_BINDING_CALL
1426 MockGLInterface::Mock_glGetTexLevelParameterfv(GLenum target
,
1430 MakeFunctionUnique("glGetTexLevelParameterfv");
1431 interface_
->GetTexLevelParameterfv(target
, level
, pname
, params
);
1434 void GL_BINDING_CALL
1435 MockGLInterface::Mock_glGetTexLevelParameteriv(GLenum target
,
1439 MakeFunctionUnique("glGetTexLevelParameteriv");
1440 interface_
->GetTexLevelParameteriv(target
, level
, pname
, params
);
1443 void GL_BINDING_CALL
1444 MockGLInterface::Mock_glGetTexParameterfv(GLenum target
,
1447 MakeFunctionUnique("glGetTexParameterfv");
1448 interface_
->GetTexParameterfv(target
, pname
, params
);
1451 void GL_BINDING_CALL
MockGLInterface::Mock_glGetTexParameteriv(GLenum target
,
1454 MakeFunctionUnique("glGetTexParameteriv");
1455 interface_
->GetTexParameteriv(target
, pname
, params
);
1458 void GL_BINDING_CALL
1459 MockGLInterface::Mock_glGetTransformFeedbackVarying(GLuint program
,
1466 MakeFunctionUnique("glGetTransformFeedbackVarying");
1467 interface_
->GetTransformFeedbackVarying(program
, index
, bufSize
, length
, size
,
1471 void GL_BINDING_CALL
1472 MockGLInterface::Mock_glGetTranslatedShaderSourceANGLE(GLuint shader
,
1476 MakeFunctionUnique("glGetTranslatedShaderSourceANGLE");
1477 interface_
->GetTranslatedShaderSourceANGLE(shader
, bufsize
, length
, source
);
1480 GLuint GL_BINDING_CALL
1481 MockGLInterface::Mock_glGetUniformBlockIndex(GLuint program
,
1482 const char* uniformBlockName
) {
1483 MakeFunctionUnique("glGetUniformBlockIndex");
1484 return interface_
->GetUniformBlockIndex(program
, uniformBlockName
);
1487 void GL_BINDING_CALL
1488 MockGLInterface::Mock_glGetUniformIndices(GLuint program
,
1489 GLsizei uniformCount
,
1490 const char* const* uniformNames
,
1491 GLuint
* uniformIndices
) {
1492 MakeFunctionUnique("glGetUniformIndices");
1493 interface_
->GetUniformIndices(program
, uniformCount
, uniformNames
,
1497 GLint GL_BINDING_CALL
1498 MockGLInterface::Mock_glGetUniformLocation(GLuint program
, const char* name
) {
1499 MakeFunctionUnique("glGetUniformLocation");
1500 return interface_
->GetUniformLocation(program
, name
);
1503 void GL_BINDING_CALL
MockGLInterface::Mock_glGetUniformfv(GLuint program
,
1506 MakeFunctionUnique("glGetUniformfv");
1507 interface_
->GetUniformfv(program
, location
, params
);
1510 void GL_BINDING_CALL
MockGLInterface::Mock_glGetUniformiv(GLuint program
,
1513 MakeFunctionUnique("glGetUniformiv");
1514 interface_
->GetUniformiv(program
, location
, params
);
1517 void GL_BINDING_CALL
1518 MockGLInterface::Mock_glGetVertexAttribPointerv(GLuint index
,
1521 MakeFunctionUnique("glGetVertexAttribPointerv");
1522 interface_
->GetVertexAttribPointerv(index
, pname
, pointer
);
1525 void GL_BINDING_CALL
1526 MockGLInterface::Mock_glGetVertexAttribfv(GLuint index
,
1529 MakeFunctionUnique("glGetVertexAttribfv");
1530 interface_
->GetVertexAttribfv(index
, pname
, params
);
1533 void GL_BINDING_CALL
MockGLInterface::Mock_glGetVertexAttribiv(GLuint index
,
1536 MakeFunctionUnique("glGetVertexAttribiv");
1537 interface_
->GetVertexAttribiv(index
, pname
, params
);
1540 void GL_BINDING_CALL
MockGLInterface::Mock_glHint(GLenum target
, GLenum mode
) {
1541 MakeFunctionUnique("glHint");
1542 interface_
->Hint(target
, mode
);
1545 void GL_BINDING_CALL
1546 MockGLInterface::Mock_glInsertEventMarkerEXT(GLsizei length
,
1547 const char* marker
) {
1548 MakeFunctionUnique("glInsertEventMarkerEXT");
1549 interface_
->InsertEventMarkerEXT(length
, marker
);
1552 void GL_BINDING_CALL
1553 MockGLInterface::Mock_glInvalidateFramebuffer(GLenum target
,
1554 GLsizei numAttachments
,
1555 const GLenum
* attachments
) {
1556 MakeFunctionUnique("glInvalidateFramebuffer");
1557 interface_
->InvalidateFramebuffer(target
, numAttachments
, attachments
);
1560 void GL_BINDING_CALL
1561 MockGLInterface::Mock_glInvalidateSubFramebuffer(GLenum target
,
1562 GLsizei numAttachments
,
1563 const GLenum
* attachments
,
1568 MakeFunctionUnique("glInvalidateSubFramebuffer");
1569 interface_
->InvalidateSubFramebuffer(target
, numAttachments
, attachments
, x
,
1573 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glIsBuffer(GLuint buffer
) {
1574 MakeFunctionUnique("glIsBuffer");
1575 return interface_
->IsBuffer(buffer
);
1578 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glIsEnabled(GLenum cap
) {
1579 MakeFunctionUnique("glIsEnabled");
1580 return interface_
->IsEnabled(cap
);
1583 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glIsFenceAPPLE(GLuint fence
) {
1584 MakeFunctionUnique("glIsFenceAPPLE");
1585 return interface_
->IsFenceAPPLE(fence
);
1588 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glIsFenceNV(GLuint fence
) {
1589 MakeFunctionUnique("glIsFenceNV");
1590 return interface_
->IsFenceNV(fence
);
1593 GLboolean GL_BINDING_CALL
1594 MockGLInterface::Mock_glIsFramebuffer(GLuint framebuffer
) {
1595 MakeFunctionUnique("glIsFramebuffer");
1596 return interface_
->IsFramebufferEXT(framebuffer
);
1599 GLboolean GL_BINDING_CALL
1600 MockGLInterface::Mock_glIsFramebufferEXT(GLuint framebuffer
) {
1601 MakeFunctionUnique("glIsFramebufferEXT");
1602 return interface_
->IsFramebufferEXT(framebuffer
);
1605 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glIsProgram(GLuint program
) {
1606 MakeFunctionUnique("glIsProgram");
1607 return interface_
->IsProgram(program
);
1610 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glIsQuery(GLuint query
) {
1611 MakeFunctionUnique("glIsQuery");
1612 return interface_
->IsQuery(query
);
1615 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glIsQueryARB(GLuint query
) {
1616 MakeFunctionUnique("glIsQueryARB");
1617 return interface_
->IsQuery(query
);
1620 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glIsQueryEXT(GLuint query
) {
1621 MakeFunctionUnique("glIsQueryEXT");
1622 return interface_
->IsQuery(query
);
1625 GLboolean GL_BINDING_CALL
1626 MockGLInterface::Mock_glIsRenderbuffer(GLuint renderbuffer
) {
1627 MakeFunctionUnique("glIsRenderbuffer");
1628 return interface_
->IsRenderbufferEXT(renderbuffer
);
1631 GLboolean GL_BINDING_CALL
1632 MockGLInterface::Mock_glIsRenderbufferEXT(GLuint renderbuffer
) {
1633 MakeFunctionUnique("glIsRenderbufferEXT");
1634 return interface_
->IsRenderbufferEXT(renderbuffer
);
1637 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glIsSampler(GLuint sampler
) {
1638 MakeFunctionUnique("glIsSampler");
1639 return interface_
->IsSampler(sampler
);
1642 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glIsShader(GLuint shader
) {
1643 MakeFunctionUnique("glIsShader");
1644 return interface_
->IsShader(shader
);
1647 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glIsSync(GLsync sync
) {
1648 MakeFunctionUnique("glIsSync");
1649 return interface_
->IsSync(sync
);
1652 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glIsTexture(GLuint texture
) {
1653 MakeFunctionUnique("glIsTexture");
1654 return interface_
->IsTexture(texture
);
1657 GLboolean GL_BINDING_CALL
1658 MockGLInterface::Mock_glIsTransformFeedback(GLuint id
) {
1659 MakeFunctionUnique("glIsTransformFeedback");
1660 return interface_
->IsTransformFeedback(id
);
1663 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glIsVertexArray(GLuint array
) {
1664 MakeFunctionUnique("glIsVertexArray");
1665 return interface_
->IsVertexArrayOES(array
);
1668 GLboolean GL_BINDING_CALL
1669 MockGLInterface::Mock_glIsVertexArrayAPPLE(GLuint array
) {
1670 MakeFunctionUnique("glIsVertexArrayAPPLE");
1671 return interface_
->IsVertexArrayOES(array
);
1674 GLboolean GL_BINDING_CALL
1675 MockGLInterface::Mock_glIsVertexArrayOES(GLuint array
) {
1676 MakeFunctionUnique("glIsVertexArrayOES");
1677 return interface_
->IsVertexArrayOES(array
);
1680 void GL_BINDING_CALL
MockGLInterface::Mock_glLineWidth(GLfloat width
) {
1681 MakeFunctionUnique("glLineWidth");
1682 interface_
->LineWidth(width
);
1685 void GL_BINDING_CALL
MockGLInterface::Mock_glLinkProgram(GLuint program
) {
1686 MakeFunctionUnique("glLinkProgram");
1687 interface_
->LinkProgram(program
);
1690 void* GL_BINDING_CALL
1691 MockGLInterface::Mock_glMapBuffer(GLenum target
, GLenum access
) {
1692 MakeFunctionUnique("glMapBuffer");
1693 return interface_
->MapBuffer(target
, access
);
1696 void* GL_BINDING_CALL
1697 MockGLInterface::Mock_glMapBufferOES(GLenum target
, GLenum access
) {
1698 MakeFunctionUnique("glMapBufferOES");
1699 return interface_
->MapBuffer(target
, access
);
1702 void* GL_BINDING_CALL
1703 MockGLInterface::Mock_glMapBufferRange(GLenum target
,
1706 GLbitfield access
) {
1707 MakeFunctionUnique("glMapBufferRange");
1708 return interface_
->MapBufferRange(target
, offset
, length
, access
);
1711 void* GL_BINDING_CALL
1712 MockGLInterface::Mock_glMapBufferRangeEXT(GLenum target
,
1715 GLbitfield access
) {
1716 MakeFunctionUnique("glMapBufferRangeEXT");
1717 return interface_
->MapBufferRange(target
, offset
, length
, access
);
1720 void GL_BINDING_CALL
1721 MockGLInterface::Mock_glMatrixLoadIdentityEXT(GLenum matrixMode
) {
1722 MakeFunctionUnique("glMatrixLoadIdentityEXT");
1723 interface_
->MatrixLoadIdentityEXT(matrixMode
);
1726 void GL_BINDING_CALL
1727 MockGLInterface::Mock_glMatrixLoadfEXT(GLenum matrixMode
, const GLfloat
* m
) {
1728 MakeFunctionUnique("glMatrixLoadfEXT");
1729 interface_
->MatrixLoadfEXT(matrixMode
, m
);
1732 void GL_BINDING_CALL
MockGLInterface::Mock_glPauseTransformFeedback(void) {
1733 MakeFunctionUnique("glPauseTransformFeedback");
1734 interface_
->PauseTransformFeedback();
1737 void GL_BINDING_CALL
1738 MockGLInterface::Mock_glPixelStorei(GLenum pname
, GLint param
) {
1739 MakeFunctionUnique("glPixelStorei");
1740 interface_
->PixelStorei(pname
, param
);
1743 void GL_BINDING_CALL
1744 MockGLInterface::Mock_glPointParameteri(GLenum pname
, GLint param
) {
1745 MakeFunctionUnique("glPointParameteri");
1746 interface_
->PointParameteri(pname
, param
);
1749 void GL_BINDING_CALL
1750 MockGLInterface::Mock_glPolygonOffset(GLfloat factor
, GLfloat units
) {
1751 MakeFunctionUnique("glPolygonOffset");
1752 interface_
->PolygonOffset(factor
, units
);
1755 void GL_BINDING_CALL
MockGLInterface::Mock_glPopGroupMarkerEXT(void) {
1756 MakeFunctionUnique("glPopGroupMarkerEXT");
1757 interface_
->PopGroupMarkerEXT();
1760 void GL_BINDING_CALL
MockGLInterface::Mock_glProgramBinary(GLuint program
,
1761 GLenum binaryFormat
,
1762 const GLvoid
* binary
,
1764 MakeFunctionUnique("glProgramBinary");
1765 interface_
->ProgramBinary(program
, binaryFormat
, binary
, length
);
1768 void GL_BINDING_CALL
1769 MockGLInterface::Mock_glProgramBinaryOES(GLuint program
,
1770 GLenum binaryFormat
,
1771 const GLvoid
* binary
,
1773 MakeFunctionUnique("glProgramBinaryOES");
1774 interface_
->ProgramBinary(program
, binaryFormat
, binary
, length
);
1777 void GL_BINDING_CALL
MockGLInterface::Mock_glProgramParameteri(GLuint program
,
1780 MakeFunctionUnique("glProgramParameteri");
1781 interface_
->ProgramParameteri(program
, pname
, value
);
1784 void GL_BINDING_CALL
1785 MockGLInterface::Mock_glPushGroupMarkerEXT(GLsizei length
, const char* marker
) {
1786 MakeFunctionUnique("glPushGroupMarkerEXT");
1787 interface_
->PushGroupMarkerEXT(length
, marker
);
1790 void GL_BINDING_CALL
1791 MockGLInterface::Mock_glQueryCounter(GLuint id
, GLenum target
) {
1792 MakeFunctionUnique("glQueryCounter");
1793 interface_
->QueryCounter(id
, target
);
1796 void GL_BINDING_CALL
1797 MockGLInterface::Mock_glQueryCounterEXT(GLuint id
, GLenum target
) {
1798 MakeFunctionUnique("glQueryCounterEXT");
1799 interface_
->QueryCounter(id
, target
);
1802 void GL_BINDING_CALL
MockGLInterface::Mock_glReadBuffer(GLenum src
) {
1803 MakeFunctionUnique("glReadBuffer");
1804 interface_
->ReadBuffer(src
);
1807 void GL_BINDING_CALL
MockGLInterface::Mock_glReadPixels(GLint x
,
1814 MakeFunctionUnique("glReadPixels");
1815 interface_
->ReadPixels(x
, y
, width
, height
, format
, type
, pixels
);
1818 void GL_BINDING_CALL
MockGLInterface::Mock_glReleaseShaderCompiler(void) {
1819 MakeFunctionUnique("glReleaseShaderCompiler");
1820 interface_
->ReleaseShaderCompiler();
1823 void GL_BINDING_CALL
1824 MockGLInterface::Mock_glRenderbufferStorage(GLenum target
,
1825 GLenum internalformat
,
1828 MakeFunctionUnique("glRenderbufferStorage");
1829 interface_
->RenderbufferStorageEXT(target
, internalformat
, width
, height
);
1832 void GL_BINDING_CALL
1833 MockGLInterface::Mock_glRenderbufferStorageEXT(GLenum target
,
1834 GLenum internalformat
,
1837 MakeFunctionUnique("glRenderbufferStorageEXT");
1838 interface_
->RenderbufferStorageEXT(target
, internalformat
, width
, height
);
1841 void GL_BINDING_CALL
1842 MockGLInterface::Mock_glRenderbufferStorageMultisample(GLenum target
,
1844 GLenum internalformat
,
1847 MakeFunctionUnique("glRenderbufferStorageMultisample");
1848 interface_
->RenderbufferStorageMultisample(target
, samples
, internalformat
,
1852 void GL_BINDING_CALL
1853 MockGLInterface::Mock_glRenderbufferStorageMultisampleANGLE(
1856 GLenum internalformat
,
1859 MakeFunctionUnique("glRenderbufferStorageMultisampleANGLE");
1860 interface_
->RenderbufferStorageMultisampleANGLE(
1861 target
, samples
, internalformat
, width
, height
);
1864 void GL_BINDING_CALL
1865 MockGLInterface::Mock_glRenderbufferStorageMultisampleEXT(GLenum target
,
1867 GLenum internalformat
,
1870 MakeFunctionUnique("glRenderbufferStorageMultisampleEXT");
1871 interface_
->RenderbufferStorageMultisampleEXT(target
, samples
, internalformat
,
1875 void GL_BINDING_CALL
1876 MockGLInterface::Mock_glRenderbufferStorageMultisampleIMG(GLenum target
,
1878 GLenum internalformat
,
1881 MakeFunctionUnique("glRenderbufferStorageMultisampleIMG");
1882 interface_
->RenderbufferStorageMultisampleIMG(target
, samples
, internalformat
,
1886 void GL_BINDING_CALL
MockGLInterface::Mock_glResumeTransformFeedback(void) {
1887 MakeFunctionUnique("glResumeTransformFeedback");
1888 interface_
->ResumeTransformFeedback();
1891 void GL_BINDING_CALL
1892 MockGLInterface::Mock_glSampleCoverage(GLclampf value
, GLboolean invert
) {
1893 MakeFunctionUnique("glSampleCoverage");
1894 interface_
->SampleCoverage(value
, invert
);
1897 void GL_BINDING_CALL
MockGLInterface::Mock_glSamplerParameterf(GLuint sampler
,
1900 MakeFunctionUnique("glSamplerParameterf");
1901 interface_
->SamplerParameterf(sampler
, pname
, param
);
1904 void GL_BINDING_CALL
1905 MockGLInterface::Mock_glSamplerParameterfv(GLuint sampler
,
1907 const GLfloat
* params
) {
1908 MakeFunctionUnique("glSamplerParameterfv");
1909 interface_
->SamplerParameterfv(sampler
, pname
, params
);
1912 void GL_BINDING_CALL
MockGLInterface::Mock_glSamplerParameteri(GLuint sampler
,
1915 MakeFunctionUnique("glSamplerParameteri");
1916 interface_
->SamplerParameteri(sampler
, pname
, param
);
1919 void GL_BINDING_CALL
1920 MockGLInterface::Mock_glSamplerParameteriv(GLuint sampler
,
1922 const GLint
* params
) {
1923 MakeFunctionUnique("glSamplerParameteriv");
1924 interface_
->SamplerParameteriv(sampler
, pname
, params
);
1927 void GL_BINDING_CALL
MockGLInterface::Mock_glScissor(GLint x
,
1931 MakeFunctionUnique("glScissor");
1932 interface_
->Scissor(x
, y
, width
, height
);
1935 void GL_BINDING_CALL
MockGLInterface::Mock_glSetFenceAPPLE(GLuint fence
) {
1936 MakeFunctionUnique("glSetFenceAPPLE");
1937 interface_
->SetFenceAPPLE(fence
);
1940 void GL_BINDING_CALL
1941 MockGLInterface::Mock_glSetFenceNV(GLuint fence
, GLenum condition
) {
1942 MakeFunctionUnique("glSetFenceNV");
1943 interface_
->SetFenceNV(fence
, condition
);
1946 void GL_BINDING_CALL
MockGLInterface::Mock_glShaderBinary(GLsizei n
,
1947 const GLuint
* shaders
,
1948 GLenum binaryformat
,
1951 MakeFunctionUnique("glShaderBinary");
1952 interface_
->ShaderBinary(n
, shaders
, binaryformat
, binary
, length
);
1955 void GL_BINDING_CALL
1956 MockGLInterface::Mock_glShaderSource(GLuint shader
,
1958 const char* const* str
,
1959 const GLint
* length
) {
1960 MakeFunctionUnique("glShaderSource");
1961 interface_
->ShaderSource(shader
, count
, str
, length
);
1964 void GL_BINDING_CALL
1965 MockGLInterface::Mock_glStencilFunc(GLenum func
, GLint ref
, GLuint mask
) {
1966 MakeFunctionUnique("glStencilFunc");
1967 interface_
->StencilFunc(func
, ref
, mask
);
1970 void GL_BINDING_CALL
MockGLInterface::Mock_glStencilFuncSeparate(GLenum face
,
1974 MakeFunctionUnique("glStencilFuncSeparate");
1975 interface_
->StencilFuncSeparate(face
, func
, ref
, mask
);
1978 void GL_BINDING_CALL
MockGLInterface::Mock_glStencilMask(GLuint mask
) {
1979 MakeFunctionUnique("glStencilMask");
1980 interface_
->StencilMask(mask
);
1983 void GL_BINDING_CALL
1984 MockGLInterface::Mock_glStencilMaskSeparate(GLenum face
, GLuint mask
) {
1985 MakeFunctionUnique("glStencilMaskSeparate");
1986 interface_
->StencilMaskSeparate(face
, mask
);
1989 void GL_BINDING_CALL
1990 MockGLInterface::Mock_glStencilOp(GLenum fail
, GLenum zfail
, GLenum zpass
) {
1991 MakeFunctionUnique("glStencilOp");
1992 interface_
->StencilOp(fail
, zfail
, zpass
);
1995 void GL_BINDING_CALL
MockGLInterface::Mock_glStencilOpSeparate(GLenum face
,
1999 MakeFunctionUnique("glStencilOpSeparate");
2000 interface_
->StencilOpSeparate(face
, fail
, zfail
, zpass
);
2003 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glTestFenceAPPLE(GLuint fence
) {
2004 MakeFunctionUnique("glTestFenceAPPLE");
2005 return interface_
->TestFenceAPPLE(fence
);
2008 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glTestFenceNV(GLuint fence
) {
2009 MakeFunctionUnique("glTestFenceNV");
2010 return interface_
->TestFenceNV(fence
);
2013 void GL_BINDING_CALL
MockGLInterface::Mock_glTexImage2D(GLenum target
,
2015 GLint internalformat
,
2021 const void* pixels
) {
2022 MakeFunctionUnique("glTexImage2D");
2023 interface_
->TexImage2D(target
, level
, internalformat
, width
, height
, border
,
2024 format
, type
, pixels
);
2027 void GL_BINDING_CALL
MockGLInterface::Mock_glTexImage3D(GLenum target
,
2029 GLint internalformat
,
2036 const void* pixels
) {
2037 MakeFunctionUnique("glTexImage3D");
2038 interface_
->TexImage3D(target
, level
, internalformat
, width
, height
, depth
,
2039 border
, format
, type
, pixels
);
2042 void GL_BINDING_CALL
MockGLInterface::Mock_glTexParameterf(GLenum target
,
2045 MakeFunctionUnique("glTexParameterf");
2046 interface_
->TexParameterf(target
, pname
, param
);
2049 void GL_BINDING_CALL
2050 MockGLInterface::Mock_glTexParameterfv(GLenum target
,
2052 const GLfloat
* params
) {
2053 MakeFunctionUnique("glTexParameterfv");
2054 interface_
->TexParameterfv(target
, pname
, params
);
2057 void GL_BINDING_CALL
MockGLInterface::Mock_glTexParameteri(GLenum target
,
2060 MakeFunctionUnique("glTexParameteri");
2061 interface_
->TexParameteri(target
, pname
, param
);
2064 void GL_BINDING_CALL
2065 MockGLInterface::Mock_glTexParameteriv(GLenum target
,
2067 const GLint
* params
) {
2068 MakeFunctionUnique("glTexParameteriv");
2069 interface_
->TexParameteriv(target
, pname
, params
);
2072 void GL_BINDING_CALL
MockGLInterface::Mock_glTexStorage2D(GLenum target
,
2074 GLenum internalformat
,
2077 MakeFunctionUnique("glTexStorage2D");
2078 interface_
->TexStorage2DEXT(target
, levels
, internalformat
, width
, height
);
2081 void GL_BINDING_CALL
2082 MockGLInterface::Mock_glTexStorage2DEXT(GLenum target
,
2084 GLenum internalformat
,
2087 MakeFunctionUnique("glTexStorage2DEXT");
2088 interface_
->TexStorage2DEXT(target
, levels
, internalformat
, width
, height
);
2091 void GL_BINDING_CALL
MockGLInterface::Mock_glTexStorage3D(GLenum target
,
2093 GLenum internalformat
,
2097 MakeFunctionUnique("glTexStorage3D");
2098 interface_
->TexStorage3D(target
, levels
, internalformat
, width
, height
,
2102 void GL_BINDING_CALL
MockGLInterface::Mock_glTexSubImage2D(GLenum target
,
2110 const void* pixels
) {
2111 MakeFunctionUnique("glTexSubImage2D");
2112 interface_
->TexSubImage2D(target
, level
, xoffset
, yoffset
, width
, height
,
2113 format
, type
, pixels
);
2116 void GL_BINDING_CALL
2117 MockGLInterface::Mock_glTransformFeedbackVaryings(GLuint program
,
2119 const char* const* varyings
,
2120 GLenum bufferMode
) {
2121 MakeFunctionUnique("glTransformFeedbackVaryings");
2122 interface_
->TransformFeedbackVaryings(program
, count
, varyings
, bufferMode
);
2125 void GL_BINDING_CALL
2126 MockGLInterface::Mock_glUniform1f(GLint location
, GLfloat x
) {
2127 MakeFunctionUnique("glUniform1f");
2128 interface_
->Uniform1f(location
, x
);
2131 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform1fv(GLint location
,
2134 MakeFunctionUnique("glUniform1fv");
2135 interface_
->Uniform1fv(location
, count
, v
);
2138 void GL_BINDING_CALL
2139 MockGLInterface::Mock_glUniform1i(GLint location
, GLint x
) {
2140 MakeFunctionUnique("glUniform1i");
2141 interface_
->Uniform1i(location
, x
);
2144 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform1iv(GLint location
,
2147 MakeFunctionUnique("glUniform1iv");
2148 interface_
->Uniform1iv(location
, count
, v
);
2151 void GL_BINDING_CALL
2152 MockGLInterface::Mock_glUniform1ui(GLint location
, GLuint v0
) {
2153 MakeFunctionUnique("glUniform1ui");
2154 interface_
->Uniform1ui(location
, v0
);
2157 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform1uiv(GLint location
,
2160 MakeFunctionUnique("glUniform1uiv");
2161 interface_
->Uniform1uiv(location
, count
, v
);
2164 void GL_BINDING_CALL
2165 MockGLInterface::Mock_glUniform2f(GLint location
, GLfloat x
, GLfloat y
) {
2166 MakeFunctionUnique("glUniform2f");
2167 interface_
->Uniform2f(location
, x
, y
);
2170 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform2fv(GLint location
,
2173 MakeFunctionUnique("glUniform2fv");
2174 interface_
->Uniform2fv(location
, count
, v
);
2177 void GL_BINDING_CALL
2178 MockGLInterface::Mock_glUniform2i(GLint location
, GLint x
, GLint y
) {
2179 MakeFunctionUnique("glUniform2i");
2180 interface_
->Uniform2i(location
, x
, y
);
2183 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform2iv(GLint location
,
2186 MakeFunctionUnique("glUniform2iv");
2187 interface_
->Uniform2iv(location
, count
, v
);
2190 void GL_BINDING_CALL
2191 MockGLInterface::Mock_glUniform2ui(GLint location
, GLuint v0
, GLuint v1
) {
2192 MakeFunctionUnique("glUniform2ui");
2193 interface_
->Uniform2ui(location
, v0
, v1
);
2196 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform2uiv(GLint location
,
2199 MakeFunctionUnique("glUniform2uiv");
2200 interface_
->Uniform2uiv(location
, count
, v
);
2203 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform3f(GLint location
,
2207 MakeFunctionUnique("glUniform3f");
2208 interface_
->Uniform3f(location
, x
, y
, z
);
2211 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform3fv(GLint location
,
2214 MakeFunctionUnique("glUniform3fv");
2215 interface_
->Uniform3fv(location
, count
, v
);
2218 void GL_BINDING_CALL
2219 MockGLInterface::Mock_glUniform3i(GLint location
, GLint x
, GLint y
, GLint z
) {
2220 MakeFunctionUnique("glUniform3i");
2221 interface_
->Uniform3i(location
, x
, y
, z
);
2224 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform3iv(GLint location
,
2227 MakeFunctionUnique("glUniform3iv");
2228 interface_
->Uniform3iv(location
, count
, v
);
2231 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform3ui(GLint location
,
2235 MakeFunctionUnique("glUniform3ui");
2236 interface_
->Uniform3ui(location
, v0
, v1
, v2
);
2239 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform3uiv(GLint location
,
2242 MakeFunctionUnique("glUniform3uiv");
2243 interface_
->Uniform3uiv(location
, count
, v
);
2246 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform4f(GLint location
,
2251 MakeFunctionUnique("glUniform4f");
2252 interface_
->Uniform4f(location
, x
, y
, z
, w
);
2255 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform4fv(GLint location
,
2258 MakeFunctionUnique("glUniform4fv");
2259 interface_
->Uniform4fv(location
, count
, v
);
2262 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform4i(GLint location
,
2267 MakeFunctionUnique("glUniform4i");
2268 interface_
->Uniform4i(location
, x
, y
, z
, w
);
2271 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform4iv(GLint location
,
2274 MakeFunctionUnique("glUniform4iv");
2275 interface_
->Uniform4iv(location
, count
, v
);
2278 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform4ui(GLint location
,
2283 MakeFunctionUnique("glUniform4ui");
2284 interface_
->Uniform4ui(location
, v0
, v1
, v2
, v3
);
2287 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform4uiv(GLint location
,
2290 MakeFunctionUnique("glUniform4uiv");
2291 interface_
->Uniform4uiv(location
, count
, v
);
2294 void GL_BINDING_CALL
2295 MockGLInterface::Mock_glUniformBlockBinding(GLuint program
,
2296 GLuint uniformBlockIndex
,
2297 GLuint uniformBlockBinding
) {
2298 MakeFunctionUnique("glUniformBlockBinding");
2299 interface_
->UniformBlockBinding(program
, uniformBlockIndex
,
2300 uniformBlockBinding
);
2303 void GL_BINDING_CALL
2304 MockGLInterface::Mock_glUniformMatrix2fv(GLint location
,
2306 GLboolean transpose
,
2307 const GLfloat
* value
) {
2308 MakeFunctionUnique("glUniformMatrix2fv");
2309 interface_
->UniformMatrix2fv(location
, count
, transpose
, value
);
2312 void GL_BINDING_CALL
2313 MockGLInterface::Mock_glUniformMatrix2x3fv(GLint location
,
2315 GLboolean transpose
,
2316 const GLfloat
* value
) {
2317 MakeFunctionUnique("glUniformMatrix2x3fv");
2318 interface_
->UniformMatrix2x3fv(location
, count
, transpose
, value
);
2321 void GL_BINDING_CALL
2322 MockGLInterface::Mock_glUniformMatrix2x4fv(GLint location
,
2324 GLboolean transpose
,
2325 const GLfloat
* value
) {
2326 MakeFunctionUnique("glUniformMatrix2x4fv");
2327 interface_
->UniformMatrix2x4fv(location
, count
, transpose
, value
);
2330 void GL_BINDING_CALL
2331 MockGLInterface::Mock_glUniformMatrix3fv(GLint location
,
2333 GLboolean transpose
,
2334 const GLfloat
* value
) {
2335 MakeFunctionUnique("glUniformMatrix3fv");
2336 interface_
->UniformMatrix3fv(location
, count
, transpose
, value
);
2339 void GL_BINDING_CALL
2340 MockGLInterface::Mock_glUniformMatrix3x2fv(GLint location
,
2342 GLboolean transpose
,
2343 const GLfloat
* value
) {
2344 MakeFunctionUnique("glUniformMatrix3x2fv");
2345 interface_
->UniformMatrix3x2fv(location
, count
, transpose
, value
);
2348 void GL_BINDING_CALL
2349 MockGLInterface::Mock_glUniformMatrix3x4fv(GLint location
,
2351 GLboolean transpose
,
2352 const GLfloat
* value
) {
2353 MakeFunctionUnique("glUniformMatrix3x4fv");
2354 interface_
->UniformMatrix3x4fv(location
, count
, transpose
, value
);
2357 void GL_BINDING_CALL
2358 MockGLInterface::Mock_glUniformMatrix4fv(GLint location
,
2360 GLboolean transpose
,
2361 const GLfloat
* value
) {
2362 MakeFunctionUnique("glUniformMatrix4fv");
2363 interface_
->UniformMatrix4fv(location
, count
, transpose
, value
);
2366 void GL_BINDING_CALL
2367 MockGLInterface::Mock_glUniformMatrix4x2fv(GLint location
,
2369 GLboolean transpose
,
2370 const GLfloat
* value
) {
2371 MakeFunctionUnique("glUniformMatrix4x2fv");
2372 interface_
->UniformMatrix4x2fv(location
, count
, transpose
, value
);
2375 void GL_BINDING_CALL
2376 MockGLInterface::Mock_glUniformMatrix4x3fv(GLint location
,
2378 GLboolean transpose
,
2379 const GLfloat
* value
) {
2380 MakeFunctionUnique("glUniformMatrix4x3fv");
2381 interface_
->UniformMatrix4x3fv(location
, count
, transpose
, value
);
2384 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glUnmapBuffer(GLenum target
) {
2385 MakeFunctionUnique("glUnmapBuffer");
2386 return interface_
->UnmapBuffer(target
);
2389 GLboolean GL_BINDING_CALL
2390 MockGLInterface::Mock_glUnmapBufferOES(GLenum target
) {
2391 MakeFunctionUnique("glUnmapBufferOES");
2392 return interface_
->UnmapBuffer(target
);
2395 void GL_BINDING_CALL
MockGLInterface::Mock_glUseProgram(GLuint program
) {
2396 MakeFunctionUnique("glUseProgram");
2397 interface_
->UseProgram(program
);
2400 void GL_BINDING_CALL
MockGLInterface::Mock_glValidateProgram(GLuint program
) {
2401 MakeFunctionUnique("glValidateProgram");
2402 interface_
->ValidateProgram(program
);
2405 void GL_BINDING_CALL
2406 MockGLInterface::Mock_glVertexAttrib1f(GLuint indx
, GLfloat x
) {
2407 MakeFunctionUnique("glVertexAttrib1f");
2408 interface_
->VertexAttrib1f(indx
, x
);
2411 void GL_BINDING_CALL
2412 MockGLInterface::Mock_glVertexAttrib1fv(GLuint indx
, const GLfloat
* values
) {
2413 MakeFunctionUnique("glVertexAttrib1fv");
2414 interface_
->VertexAttrib1fv(indx
, values
);
2417 void GL_BINDING_CALL
2418 MockGLInterface::Mock_glVertexAttrib2f(GLuint indx
, GLfloat x
, GLfloat y
) {
2419 MakeFunctionUnique("glVertexAttrib2f");
2420 interface_
->VertexAttrib2f(indx
, x
, y
);
2423 void GL_BINDING_CALL
2424 MockGLInterface::Mock_glVertexAttrib2fv(GLuint indx
, const GLfloat
* values
) {
2425 MakeFunctionUnique("glVertexAttrib2fv");
2426 interface_
->VertexAttrib2fv(indx
, values
);
2429 void GL_BINDING_CALL
MockGLInterface::Mock_glVertexAttrib3f(GLuint indx
,
2433 MakeFunctionUnique("glVertexAttrib3f");
2434 interface_
->VertexAttrib3f(indx
, x
, y
, z
);
2437 void GL_BINDING_CALL
2438 MockGLInterface::Mock_glVertexAttrib3fv(GLuint indx
, const GLfloat
* values
) {
2439 MakeFunctionUnique("glVertexAttrib3fv");
2440 interface_
->VertexAttrib3fv(indx
, values
);
2443 void GL_BINDING_CALL
MockGLInterface::Mock_glVertexAttrib4f(GLuint indx
,
2448 MakeFunctionUnique("glVertexAttrib4f");
2449 interface_
->VertexAttrib4f(indx
, x
, y
, z
, w
);
2452 void GL_BINDING_CALL
2453 MockGLInterface::Mock_glVertexAttrib4fv(GLuint indx
, const GLfloat
* values
) {
2454 MakeFunctionUnique("glVertexAttrib4fv");
2455 interface_
->VertexAttrib4fv(indx
, values
);
2458 void GL_BINDING_CALL
2459 MockGLInterface::Mock_glVertexAttribDivisor(GLuint index
, GLuint divisor
) {
2460 MakeFunctionUnique("glVertexAttribDivisor");
2461 interface_
->VertexAttribDivisorANGLE(index
, divisor
);
2464 void GL_BINDING_CALL
2465 MockGLInterface::Mock_glVertexAttribDivisorANGLE(GLuint index
, GLuint divisor
) {
2466 MakeFunctionUnique("glVertexAttribDivisorANGLE");
2467 interface_
->VertexAttribDivisorANGLE(index
, divisor
);
2470 void GL_BINDING_CALL
2471 MockGLInterface::Mock_glVertexAttribDivisorARB(GLuint index
, GLuint divisor
) {
2472 MakeFunctionUnique("glVertexAttribDivisorARB");
2473 interface_
->VertexAttribDivisorANGLE(index
, divisor
);
2476 void GL_BINDING_CALL
MockGLInterface::Mock_glVertexAttribI4i(GLuint indx
,
2481 MakeFunctionUnique("glVertexAttribI4i");
2482 interface_
->VertexAttribI4i(indx
, x
, y
, z
, w
);
2485 void GL_BINDING_CALL
2486 MockGLInterface::Mock_glVertexAttribI4iv(GLuint indx
, const GLint
* values
) {
2487 MakeFunctionUnique("glVertexAttribI4iv");
2488 interface_
->VertexAttribI4iv(indx
, values
);
2491 void GL_BINDING_CALL
MockGLInterface::Mock_glVertexAttribI4ui(GLuint indx
,
2496 MakeFunctionUnique("glVertexAttribI4ui");
2497 interface_
->VertexAttribI4ui(indx
, x
, y
, z
, w
);
2500 void GL_BINDING_CALL
2501 MockGLInterface::Mock_glVertexAttribI4uiv(GLuint indx
, const GLuint
* values
) {
2502 MakeFunctionUnique("glVertexAttribI4uiv");
2503 interface_
->VertexAttribI4uiv(indx
, values
);
2506 void GL_BINDING_CALL
2507 MockGLInterface::Mock_glVertexAttribIPointer(GLuint indx
,
2512 MakeFunctionUnique("glVertexAttribIPointer");
2513 interface_
->VertexAttribIPointer(indx
, size
, type
, stride
, ptr
);
2516 void GL_BINDING_CALL
2517 MockGLInterface::Mock_glVertexAttribPointer(GLuint indx
,
2520 GLboolean normalized
,
2523 MakeFunctionUnique("glVertexAttribPointer");
2524 interface_
->VertexAttribPointer(indx
, size
, type
, normalized
, stride
, ptr
);
2527 void GL_BINDING_CALL
MockGLInterface::Mock_glViewport(GLint x
,
2531 MakeFunctionUnique("glViewport");
2532 interface_
->Viewport(x
, y
, width
, height
);
2535 GLenum GL_BINDING_CALL
MockGLInterface::Mock_glWaitSync(GLsync sync
,
2538 MakeFunctionUnique("glWaitSync");
2539 return interface_
->WaitSync(sync
, flags
, timeout
);
2542 static void MockInvalidFunction() {
2546 void* GL_BINDING_CALL
MockGLInterface::GetGLProcAddress(const char* name
) {
2547 if (strcmp(name
, "glActiveTexture") == 0)
2548 return reinterpret_cast<void*>(Mock_glActiveTexture
);
2549 if (strcmp(name
, "glAttachShader") == 0)
2550 return reinterpret_cast<void*>(Mock_glAttachShader
);
2551 if (strcmp(name
, "glBeginQuery") == 0)
2552 return reinterpret_cast<void*>(Mock_glBeginQuery
);
2553 if (strcmp(name
, "glBeginQueryARB") == 0)
2554 return reinterpret_cast<void*>(Mock_glBeginQueryARB
);
2555 if (strcmp(name
, "glBeginQueryEXT") == 0)
2556 return reinterpret_cast<void*>(Mock_glBeginQueryEXT
);
2557 if (strcmp(name
, "glBeginTransformFeedback") == 0)
2558 return reinterpret_cast<void*>(Mock_glBeginTransformFeedback
);
2559 if (strcmp(name
, "glBindAttribLocation") == 0)
2560 return reinterpret_cast<void*>(Mock_glBindAttribLocation
);
2561 if (strcmp(name
, "glBindBuffer") == 0)
2562 return reinterpret_cast<void*>(Mock_glBindBuffer
);
2563 if (strcmp(name
, "glBindBufferBase") == 0)
2564 return reinterpret_cast<void*>(Mock_glBindBufferBase
);
2565 if (strcmp(name
, "glBindBufferRange") == 0)
2566 return reinterpret_cast<void*>(Mock_glBindBufferRange
);
2567 if (strcmp(name
, "glBindFragDataLocation") == 0)
2568 return reinterpret_cast<void*>(Mock_glBindFragDataLocation
);
2569 if (strcmp(name
, "glBindFragDataLocationIndexed") == 0)
2570 return reinterpret_cast<void*>(Mock_glBindFragDataLocationIndexed
);
2571 if (strcmp(name
, "glBindFramebuffer") == 0)
2572 return reinterpret_cast<void*>(Mock_glBindFramebuffer
);
2573 if (strcmp(name
, "glBindFramebufferEXT") == 0)
2574 return reinterpret_cast<void*>(Mock_glBindFramebufferEXT
);
2575 if (strcmp(name
, "glBindRenderbuffer") == 0)
2576 return reinterpret_cast<void*>(Mock_glBindRenderbuffer
);
2577 if (strcmp(name
, "glBindRenderbufferEXT") == 0)
2578 return reinterpret_cast<void*>(Mock_glBindRenderbufferEXT
);
2579 if (strcmp(name
, "glBindSampler") == 0)
2580 return reinterpret_cast<void*>(Mock_glBindSampler
);
2581 if (strcmp(name
, "glBindTexture") == 0)
2582 return reinterpret_cast<void*>(Mock_glBindTexture
);
2583 if (strcmp(name
, "glBindTransformFeedback") == 0)
2584 return reinterpret_cast<void*>(Mock_glBindTransformFeedback
);
2585 if (strcmp(name
, "glBindVertexArray") == 0)
2586 return reinterpret_cast<void*>(Mock_glBindVertexArray
);
2587 if (strcmp(name
, "glBindVertexArrayAPPLE") == 0)
2588 return reinterpret_cast<void*>(Mock_glBindVertexArrayAPPLE
);
2589 if (strcmp(name
, "glBindVertexArrayOES") == 0)
2590 return reinterpret_cast<void*>(Mock_glBindVertexArrayOES
);
2591 if (strcmp(name
, "glBlendBarrierKHR") == 0)
2592 return reinterpret_cast<void*>(Mock_glBlendBarrierKHR
);
2593 if (strcmp(name
, "glBlendBarrierNV") == 0)
2594 return reinterpret_cast<void*>(Mock_glBlendBarrierNV
);
2595 if (strcmp(name
, "glBlendColor") == 0)
2596 return reinterpret_cast<void*>(Mock_glBlendColor
);
2597 if (strcmp(name
, "glBlendEquation") == 0)
2598 return reinterpret_cast<void*>(Mock_glBlendEquation
);
2599 if (strcmp(name
, "glBlendEquationSeparate") == 0)
2600 return reinterpret_cast<void*>(Mock_glBlendEquationSeparate
);
2601 if (strcmp(name
, "glBlendFunc") == 0)
2602 return reinterpret_cast<void*>(Mock_glBlendFunc
);
2603 if (strcmp(name
, "glBlendFuncSeparate") == 0)
2604 return reinterpret_cast<void*>(Mock_glBlendFuncSeparate
);
2605 if (strcmp(name
, "glBlitFramebuffer") == 0)
2606 return reinterpret_cast<void*>(Mock_glBlitFramebuffer
);
2607 if (strcmp(name
, "glBlitFramebufferANGLE") == 0)
2608 return reinterpret_cast<void*>(Mock_glBlitFramebufferANGLE
);
2609 if (strcmp(name
, "glBlitFramebufferEXT") == 0)
2610 return reinterpret_cast<void*>(Mock_glBlitFramebufferEXT
);
2611 if (strcmp(name
, "glBufferData") == 0)
2612 return reinterpret_cast<void*>(Mock_glBufferData
);
2613 if (strcmp(name
, "glBufferSubData") == 0)
2614 return reinterpret_cast<void*>(Mock_glBufferSubData
);
2615 if (strcmp(name
, "glCheckFramebufferStatus") == 0)
2616 return reinterpret_cast<void*>(Mock_glCheckFramebufferStatus
);
2617 if (strcmp(name
, "glCheckFramebufferStatusEXT") == 0)
2618 return reinterpret_cast<void*>(Mock_glCheckFramebufferStatusEXT
);
2619 if (strcmp(name
, "glClear") == 0)
2620 return reinterpret_cast<void*>(Mock_glClear
);
2621 if (strcmp(name
, "glClearBufferfi") == 0)
2622 return reinterpret_cast<void*>(Mock_glClearBufferfi
);
2623 if (strcmp(name
, "glClearBufferfv") == 0)
2624 return reinterpret_cast<void*>(Mock_glClearBufferfv
);
2625 if (strcmp(name
, "glClearBufferiv") == 0)
2626 return reinterpret_cast<void*>(Mock_glClearBufferiv
);
2627 if (strcmp(name
, "glClearBufferuiv") == 0)
2628 return reinterpret_cast<void*>(Mock_glClearBufferuiv
);
2629 if (strcmp(name
, "glClearColor") == 0)
2630 return reinterpret_cast<void*>(Mock_glClearColor
);
2631 if (strcmp(name
, "glClearDepth") == 0)
2632 return reinterpret_cast<void*>(Mock_glClearDepth
);
2633 if (strcmp(name
, "glClearDepthf") == 0)
2634 return reinterpret_cast<void*>(Mock_glClearDepthf
);
2635 if (strcmp(name
, "glClearStencil") == 0)
2636 return reinterpret_cast<void*>(Mock_glClearStencil
);
2637 if (strcmp(name
, "glClientWaitSync") == 0)
2638 return reinterpret_cast<void*>(Mock_glClientWaitSync
);
2639 if (strcmp(name
, "glColorMask") == 0)
2640 return reinterpret_cast<void*>(Mock_glColorMask
);
2641 if (strcmp(name
, "glCompileShader") == 0)
2642 return reinterpret_cast<void*>(Mock_glCompileShader
);
2643 if (strcmp(name
, "glCompressedTexImage2D") == 0)
2644 return reinterpret_cast<void*>(Mock_glCompressedTexImage2D
);
2645 if (strcmp(name
, "glCompressedTexImage3D") == 0)
2646 return reinterpret_cast<void*>(Mock_glCompressedTexImage3D
);
2647 if (strcmp(name
, "glCompressedTexSubImage2D") == 0)
2648 return reinterpret_cast<void*>(Mock_glCompressedTexSubImage2D
);
2649 if (strcmp(name
, "glCopyBufferSubData") == 0)
2650 return reinterpret_cast<void*>(Mock_glCopyBufferSubData
);
2651 if (strcmp(name
, "glCopyTexImage2D") == 0)
2652 return reinterpret_cast<void*>(Mock_glCopyTexImage2D
);
2653 if (strcmp(name
, "glCopyTexSubImage2D") == 0)
2654 return reinterpret_cast<void*>(Mock_glCopyTexSubImage2D
);
2655 if (strcmp(name
, "glCopyTexSubImage3D") == 0)
2656 return reinterpret_cast<void*>(Mock_glCopyTexSubImage3D
);
2657 if (strcmp(name
, "glCreateProgram") == 0)
2658 return reinterpret_cast<void*>(Mock_glCreateProgram
);
2659 if (strcmp(name
, "glCreateShader") == 0)
2660 return reinterpret_cast<void*>(Mock_glCreateShader
);
2661 if (strcmp(name
, "glCullFace") == 0)
2662 return reinterpret_cast<void*>(Mock_glCullFace
);
2663 if (strcmp(name
, "glDeleteBuffers") == 0)
2664 return reinterpret_cast<void*>(Mock_glDeleteBuffers
);
2665 if (strcmp(name
, "glDeleteFencesAPPLE") == 0)
2666 return reinterpret_cast<void*>(Mock_glDeleteFencesAPPLE
);
2667 if (strcmp(name
, "glDeleteFencesNV") == 0)
2668 return reinterpret_cast<void*>(Mock_glDeleteFencesNV
);
2669 if (strcmp(name
, "glDeleteFramebuffers") == 0)
2670 return reinterpret_cast<void*>(Mock_glDeleteFramebuffers
);
2671 if (strcmp(name
, "glDeleteFramebuffersEXT") == 0)
2672 return reinterpret_cast<void*>(Mock_glDeleteFramebuffersEXT
);
2673 if (strcmp(name
, "glDeleteProgram") == 0)
2674 return reinterpret_cast<void*>(Mock_glDeleteProgram
);
2675 if (strcmp(name
, "glDeleteQueries") == 0)
2676 return reinterpret_cast<void*>(Mock_glDeleteQueries
);
2677 if (strcmp(name
, "glDeleteQueriesARB") == 0)
2678 return reinterpret_cast<void*>(Mock_glDeleteQueriesARB
);
2679 if (strcmp(name
, "glDeleteQueriesEXT") == 0)
2680 return reinterpret_cast<void*>(Mock_glDeleteQueriesEXT
);
2681 if (strcmp(name
, "glDeleteRenderbuffers") == 0)
2682 return reinterpret_cast<void*>(Mock_glDeleteRenderbuffers
);
2683 if (strcmp(name
, "glDeleteRenderbuffersEXT") == 0)
2684 return reinterpret_cast<void*>(Mock_glDeleteRenderbuffersEXT
);
2685 if (strcmp(name
, "glDeleteSamplers") == 0)
2686 return reinterpret_cast<void*>(Mock_glDeleteSamplers
);
2687 if (strcmp(name
, "glDeleteShader") == 0)
2688 return reinterpret_cast<void*>(Mock_glDeleteShader
);
2689 if (strcmp(name
, "glDeleteSync") == 0)
2690 return reinterpret_cast<void*>(Mock_glDeleteSync
);
2691 if (strcmp(name
, "glDeleteTextures") == 0)
2692 return reinterpret_cast<void*>(Mock_glDeleteTextures
);
2693 if (strcmp(name
, "glDeleteTransformFeedbacks") == 0)
2694 return reinterpret_cast<void*>(Mock_glDeleteTransformFeedbacks
);
2695 if (strcmp(name
, "glDeleteVertexArrays") == 0)
2696 return reinterpret_cast<void*>(Mock_glDeleteVertexArrays
);
2697 if (strcmp(name
, "glDeleteVertexArraysAPPLE") == 0)
2698 return reinterpret_cast<void*>(Mock_glDeleteVertexArraysAPPLE
);
2699 if (strcmp(name
, "glDeleteVertexArraysOES") == 0)
2700 return reinterpret_cast<void*>(Mock_glDeleteVertexArraysOES
);
2701 if (strcmp(name
, "glDepthFunc") == 0)
2702 return reinterpret_cast<void*>(Mock_glDepthFunc
);
2703 if (strcmp(name
, "glDepthMask") == 0)
2704 return reinterpret_cast<void*>(Mock_glDepthMask
);
2705 if (strcmp(name
, "glDepthRange") == 0)
2706 return reinterpret_cast<void*>(Mock_glDepthRange
);
2707 if (strcmp(name
, "glDepthRangef") == 0)
2708 return reinterpret_cast<void*>(Mock_glDepthRangef
);
2709 if (strcmp(name
, "glDetachShader") == 0)
2710 return reinterpret_cast<void*>(Mock_glDetachShader
);
2711 if (strcmp(name
, "glDisable") == 0)
2712 return reinterpret_cast<void*>(Mock_glDisable
);
2713 if (strcmp(name
, "glDisableVertexAttribArray") == 0)
2714 return reinterpret_cast<void*>(Mock_glDisableVertexAttribArray
);
2715 if (strcmp(name
, "glDiscardFramebufferEXT") == 0)
2716 return reinterpret_cast<void*>(Mock_glDiscardFramebufferEXT
);
2717 if (strcmp(name
, "glDrawArrays") == 0)
2718 return reinterpret_cast<void*>(Mock_glDrawArrays
);
2719 if (strcmp(name
, "glDrawArraysInstanced") == 0)
2720 return reinterpret_cast<void*>(Mock_glDrawArraysInstanced
);
2721 if (strcmp(name
, "glDrawArraysInstancedANGLE") == 0)
2722 return reinterpret_cast<void*>(Mock_glDrawArraysInstancedANGLE
);
2723 if (strcmp(name
, "glDrawArraysInstancedARB") == 0)
2724 return reinterpret_cast<void*>(Mock_glDrawArraysInstancedARB
);
2725 if (strcmp(name
, "glDrawBuffer") == 0)
2726 return reinterpret_cast<void*>(Mock_glDrawBuffer
);
2727 if (strcmp(name
, "glDrawBuffers") == 0)
2728 return reinterpret_cast<void*>(Mock_glDrawBuffers
);
2729 if (strcmp(name
, "glDrawBuffersARB") == 0)
2730 return reinterpret_cast<void*>(Mock_glDrawBuffersARB
);
2731 if (strcmp(name
, "glDrawBuffersEXT") == 0)
2732 return reinterpret_cast<void*>(Mock_glDrawBuffersEXT
);
2733 if (strcmp(name
, "glDrawElements") == 0)
2734 return reinterpret_cast<void*>(Mock_glDrawElements
);
2735 if (strcmp(name
, "glDrawElementsInstanced") == 0)
2736 return reinterpret_cast<void*>(Mock_glDrawElementsInstanced
);
2737 if (strcmp(name
, "glDrawElementsInstancedANGLE") == 0)
2738 return reinterpret_cast<void*>(Mock_glDrawElementsInstancedANGLE
);
2739 if (strcmp(name
, "glDrawElementsInstancedARB") == 0)
2740 return reinterpret_cast<void*>(Mock_glDrawElementsInstancedARB
);
2741 if (strcmp(name
, "glDrawRangeElements") == 0)
2742 return reinterpret_cast<void*>(Mock_glDrawRangeElements
);
2743 if (strcmp(name
, "glEGLImageTargetRenderbufferStorageOES") == 0)
2744 return reinterpret_cast<void*>(Mock_glEGLImageTargetRenderbufferStorageOES
);
2745 if (strcmp(name
, "glEGLImageTargetTexture2DOES") == 0)
2746 return reinterpret_cast<void*>(Mock_glEGLImageTargetTexture2DOES
);
2747 if (strcmp(name
, "glEnable") == 0)
2748 return reinterpret_cast<void*>(Mock_glEnable
);
2749 if (strcmp(name
, "glEnableVertexAttribArray") == 0)
2750 return reinterpret_cast<void*>(Mock_glEnableVertexAttribArray
);
2751 if (strcmp(name
, "glEndQuery") == 0)
2752 return reinterpret_cast<void*>(Mock_glEndQuery
);
2753 if (strcmp(name
, "glEndQueryARB") == 0)
2754 return reinterpret_cast<void*>(Mock_glEndQueryARB
);
2755 if (strcmp(name
, "glEndQueryEXT") == 0)
2756 return reinterpret_cast<void*>(Mock_glEndQueryEXT
);
2757 if (strcmp(name
, "glEndTransformFeedback") == 0)
2758 return reinterpret_cast<void*>(Mock_glEndTransformFeedback
);
2759 if (strcmp(name
, "glFenceSync") == 0)
2760 return reinterpret_cast<void*>(Mock_glFenceSync
);
2761 if (strcmp(name
, "glFinish") == 0)
2762 return reinterpret_cast<void*>(Mock_glFinish
);
2763 if (strcmp(name
, "glFinishFenceAPPLE") == 0)
2764 return reinterpret_cast<void*>(Mock_glFinishFenceAPPLE
);
2765 if (strcmp(name
, "glFinishFenceNV") == 0)
2766 return reinterpret_cast<void*>(Mock_glFinishFenceNV
);
2767 if (strcmp(name
, "glFlush") == 0)
2768 return reinterpret_cast<void*>(Mock_glFlush
);
2769 if (strcmp(name
, "glFlushMappedBufferRange") == 0)
2770 return reinterpret_cast<void*>(Mock_glFlushMappedBufferRange
);
2771 if (strcmp(name
, "glFramebufferRenderbuffer") == 0)
2772 return reinterpret_cast<void*>(Mock_glFramebufferRenderbuffer
);
2773 if (strcmp(name
, "glFramebufferRenderbufferEXT") == 0)
2774 return reinterpret_cast<void*>(Mock_glFramebufferRenderbufferEXT
);
2775 if (strcmp(name
, "glFramebufferTexture2D") == 0)
2776 return reinterpret_cast<void*>(Mock_glFramebufferTexture2D
);
2777 if (strcmp(name
, "glFramebufferTexture2DEXT") == 0)
2778 return reinterpret_cast<void*>(Mock_glFramebufferTexture2DEXT
);
2779 if (strcmp(name
, "glFramebufferTexture2DMultisampleEXT") == 0)
2780 return reinterpret_cast<void*>(Mock_glFramebufferTexture2DMultisampleEXT
);
2781 if (strcmp(name
, "glFramebufferTexture2DMultisampleIMG") == 0)
2782 return reinterpret_cast<void*>(Mock_glFramebufferTexture2DMultisampleIMG
);
2783 if (strcmp(name
, "glFramebufferTextureLayer") == 0)
2784 return reinterpret_cast<void*>(Mock_glFramebufferTextureLayer
);
2785 if (strcmp(name
, "glFrontFace") == 0)
2786 return reinterpret_cast<void*>(Mock_glFrontFace
);
2787 if (strcmp(name
, "glGenBuffers") == 0)
2788 return reinterpret_cast<void*>(Mock_glGenBuffers
);
2789 if (strcmp(name
, "glGenFencesAPPLE") == 0)
2790 return reinterpret_cast<void*>(Mock_glGenFencesAPPLE
);
2791 if (strcmp(name
, "glGenFencesNV") == 0)
2792 return reinterpret_cast<void*>(Mock_glGenFencesNV
);
2793 if (strcmp(name
, "glGenFramebuffers") == 0)
2794 return reinterpret_cast<void*>(Mock_glGenFramebuffers
);
2795 if (strcmp(name
, "glGenFramebuffersEXT") == 0)
2796 return reinterpret_cast<void*>(Mock_glGenFramebuffersEXT
);
2797 if (strcmp(name
, "glGenQueries") == 0)
2798 return reinterpret_cast<void*>(Mock_glGenQueries
);
2799 if (strcmp(name
, "glGenQueriesARB") == 0)
2800 return reinterpret_cast<void*>(Mock_glGenQueriesARB
);
2801 if (strcmp(name
, "glGenQueriesEXT") == 0)
2802 return reinterpret_cast<void*>(Mock_glGenQueriesEXT
);
2803 if (strcmp(name
, "glGenRenderbuffers") == 0)
2804 return reinterpret_cast<void*>(Mock_glGenRenderbuffers
);
2805 if (strcmp(name
, "glGenRenderbuffersEXT") == 0)
2806 return reinterpret_cast<void*>(Mock_glGenRenderbuffersEXT
);
2807 if (strcmp(name
, "glGenSamplers") == 0)
2808 return reinterpret_cast<void*>(Mock_glGenSamplers
);
2809 if (strcmp(name
, "glGenTextures") == 0)
2810 return reinterpret_cast<void*>(Mock_glGenTextures
);
2811 if (strcmp(name
, "glGenTransformFeedbacks") == 0)
2812 return reinterpret_cast<void*>(Mock_glGenTransformFeedbacks
);
2813 if (strcmp(name
, "glGenVertexArrays") == 0)
2814 return reinterpret_cast<void*>(Mock_glGenVertexArrays
);
2815 if (strcmp(name
, "glGenVertexArraysAPPLE") == 0)
2816 return reinterpret_cast<void*>(Mock_glGenVertexArraysAPPLE
);
2817 if (strcmp(name
, "glGenVertexArraysOES") == 0)
2818 return reinterpret_cast<void*>(Mock_glGenVertexArraysOES
);
2819 if (strcmp(name
, "glGenerateMipmap") == 0)
2820 return reinterpret_cast<void*>(Mock_glGenerateMipmap
);
2821 if (strcmp(name
, "glGenerateMipmapEXT") == 0)
2822 return reinterpret_cast<void*>(Mock_glGenerateMipmapEXT
);
2823 if (strcmp(name
, "glGetActiveAttrib") == 0)
2824 return reinterpret_cast<void*>(Mock_glGetActiveAttrib
);
2825 if (strcmp(name
, "glGetActiveUniform") == 0)
2826 return reinterpret_cast<void*>(Mock_glGetActiveUniform
);
2827 if (strcmp(name
, "glGetActiveUniformBlockName") == 0)
2828 return reinterpret_cast<void*>(Mock_glGetActiveUniformBlockName
);
2829 if (strcmp(name
, "glGetActiveUniformBlockiv") == 0)
2830 return reinterpret_cast<void*>(Mock_glGetActiveUniformBlockiv
);
2831 if (strcmp(name
, "glGetActiveUniformsiv") == 0)
2832 return reinterpret_cast<void*>(Mock_glGetActiveUniformsiv
);
2833 if (strcmp(name
, "glGetAttachedShaders") == 0)
2834 return reinterpret_cast<void*>(Mock_glGetAttachedShaders
);
2835 if (strcmp(name
, "glGetAttribLocation") == 0)
2836 return reinterpret_cast<void*>(Mock_glGetAttribLocation
);
2837 if (strcmp(name
, "glGetBooleanv") == 0)
2838 return reinterpret_cast<void*>(Mock_glGetBooleanv
);
2839 if (strcmp(name
, "glGetBufferParameteriv") == 0)
2840 return reinterpret_cast<void*>(Mock_glGetBufferParameteriv
);
2841 if (strcmp(name
, "glGetError") == 0)
2842 return reinterpret_cast<void*>(Mock_glGetError
);
2843 if (strcmp(name
, "glGetFenceivNV") == 0)
2844 return reinterpret_cast<void*>(Mock_glGetFenceivNV
);
2845 if (strcmp(name
, "glGetFloatv") == 0)
2846 return reinterpret_cast<void*>(Mock_glGetFloatv
);
2847 if (strcmp(name
, "glGetFragDataLocation") == 0)
2848 return reinterpret_cast<void*>(Mock_glGetFragDataLocation
);
2849 if (strcmp(name
, "glGetFramebufferAttachmentParameteriv") == 0)
2850 return reinterpret_cast<void*>(Mock_glGetFramebufferAttachmentParameteriv
);
2851 if (strcmp(name
, "glGetFramebufferAttachmentParameterivEXT") == 0)
2852 return reinterpret_cast<void*>(
2853 Mock_glGetFramebufferAttachmentParameterivEXT
);
2854 if (strcmp(name
, "glGetGraphicsResetStatus") == 0)
2855 return reinterpret_cast<void*>(Mock_glGetGraphicsResetStatus
);
2856 if (strcmp(name
, "glGetGraphicsResetStatusARB") == 0)
2857 return reinterpret_cast<void*>(Mock_glGetGraphicsResetStatusARB
);
2858 if (strcmp(name
, "glGetGraphicsResetStatusEXT") == 0)
2859 return reinterpret_cast<void*>(Mock_glGetGraphicsResetStatusEXT
);
2860 if (strcmp(name
, "glGetGraphicsResetStatusKHR") == 0)
2861 return reinterpret_cast<void*>(Mock_glGetGraphicsResetStatusKHR
);
2862 if (strcmp(name
, "glGetInteger64i_v") == 0)
2863 return reinterpret_cast<void*>(Mock_glGetInteger64i_v
);
2864 if (strcmp(name
, "glGetInteger64v") == 0)
2865 return reinterpret_cast<void*>(Mock_glGetInteger64v
);
2866 if (strcmp(name
, "glGetIntegeri_v") == 0)
2867 return reinterpret_cast<void*>(Mock_glGetIntegeri_v
);
2868 if (strcmp(name
, "glGetIntegerv") == 0)
2869 return reinterpret_cast<void*>(Mock_glGetIntegerv
);
2870 if (strcmp(name
, "glGetInternalformativ") == 0)
2871 return reinterpret_cast<void*>(Mock_glGetInternalformativ
);
2872 if (strcmp(name
, "glGetProgramBinary") == 0)
2873 return reinterpret_cast<void*>(Mock_glGetProgramBinary
);
2874 if (strcmp(name
, "glGetProgramBinaryOES") == 0)
2875 return reinterpret_cast<void*>(Mock_glGetProgramBinaryOES
);
2876 if (strcmp(name
, "glGetProgramInfoLog") == 0)
2877 return reinterpret_cast<void*>(Mock_glGetProgramInfoLog
);
2878 if (strcmp(name
, "glGetProgramResourceLocation") == 0)
2879 return reinterpret_cast<void*>(Mock_glGetProgramResourceLocation
);
2880 if (strcmp(name
, "glGetProgramiv") == 0)
2881 return reinterpret_cast<void*>(Mock_glGetProgramiv
);
2882 if (strcmp(name
, "glGetQueryObjecti64v") == 0)
2883 return reinterpret_cast<void*>(Mock_glGetQueryObjecti64v
);
2884 if (strcmp(name
, "glGetQueryObjecti64vEXT") == 0)
2885 return reinterpret_cast<void*>(Mock_glGetQueryObjecti64vEXT
);
2886 if (strcmp(name
, "glGetQueryObjectiv") == 0)
2887 return reinterpret_cast<void*>(Mock_glGetQueryObjectiv
);
2888 if (strcmp(name
, "glGetQueryObjectivARB") == 0)
2889 return reinterpret_cast<void*>(Mock_glGetQueryObjectivARB
);
2890 if (strcmp(name
, "glGetQueryObjectivEXT") == 0)
2891 return reinterpret_cast<void*>(Mock_glGetQueryObjectivEXT
);
2892 if (strcmp(name
, "glGetQueryObjectui64v") == 0)
2893 return reinterpret_cast<void*>(Mock_glGetQueryObjectui64v
);
2894 if (strcmp(name
, "glGetQueryObjectui64vEXT") == 0)
2895 return reinterpret_cast<void*>(Mock_glGetQueryObjectui64vEXT
);
2896 if (strcmp(name
, "glGetQueryObjectuiv") == 0)
2897 return reinterpret_cast<void*>(Mock_glGetQueryObjectuiv
);
2898 if (strcmp(name
, "glGetQueryObjectuivARB") == 0)
2899 return reinterpret_cast<void*>(Mock_glGetQueryObjectuivARB
);
2900 if (strcmp(name
, "glGetQueryObjectuivEXT") == 0)
2901 return reinterpret_cast<void*>(Mock_glGetQueryObjectuivEXT
);
2902 if (strcmp(name
, "glGetQueryiv") == 0)
2903 return reinterpret_cast<void*>(Mock_glGetQueryiv
);
2904 if (strcmp(name
, "glGetQueryivARB") == 0)
2905 return reinterpret_cast<void*>(Mock_glGetQueryivARB
);
2906 if (strcmp(name
, "glGetQueryivEXT") == 0)
2907 return reinterpret_cast<void*>(Mock_glGetQueryivEXT
);
2908 if (strcmp(name
, "glGetRenderbufferParameteriv") == 0)
2909 return reinterpret_cast<void*>(Mock_glGetRenderbufferParameteriv
);
2910 if (strcmp(name
, "glGetRenderbufferParameterivEXT") == 0)
2911 return reinterpret_cast<void*>(Mock_glGetRenderbufferParameterivEXT
);
2912 if (strcmp(name
, "glGetSamplerParameterfv") == 0)
2913 return reinterpret_cast<void*>(Mock_glGetSamplerParameterfv
);
2914 if (strcmp(name
, "glGetSamplerParameteriv") == 0)
2915 return reinterpret_cast<void*>(Mock_glGetSamplerParameteriv
);
2916 if (strcmp(name
, "glGetShaderInfoLog") == 0)
2917 return reinterpret_cast<void*>(Mock_glGetShaderInfoLog
);
2918 if (strcmp(name
, "glGetShaderPrecisionFormat") == 0)
2919 return reinterpret_cast<void*>(Mock_glGetShaderPrecisionFormat
);
2920 if (strcmp(name
, "glGetShaderSource") == 0)
2921 return reinterpret_cast<void*>(Mock_glGetShaderSource
);
2922 if (strcmp(name
, "glGetShaderiv") == 0)
2923 return reinterpret_cast<void*>(Mock_glGetShaderiv
);
2924 if (strcmp(name
, "glGetString") == 0)
2925 return reinterpret_cast<void*>(Mock_glGetString
);
2926 if (strcmp(name
, "glGetStringi") == 0)
2927 return reinterpret_cast<void*>(Mock_glGetStringi
);
2928 if (strcmp(name
, "glGetSynciv") == 0)
2929 return reinterpret_cast<void*>(Mock_glGetSynciv
);
2930 if (strcmp(name
, "glGetTexLevelParameterfv") == 0)
2931 return reinterpret_cast<void*>(Mock_glGetTexLevelParameterfv
);
2932 if (strcmp(name
, "glGetTexLevelParameteriv") == 0)
2933 return reinterpret_cast<void*>(Mock_glGetTexLevelParameteriv
);
2934 if (strcmp(name
, "glGetTexParameterfv") == 0)
2935 return reinterpret_cast<void*>(Mock_glGetTexParameterfv
);
2936 if (strcmp(name
, "glGetTexParameteriv") == 0)
2937 return reinterpret_cast<void*>(Mock_glGetTexParameteriv
);
2938 if (strcmp(name
, "glGetTransformFeedbackVarying") == 0)
2939 return reinterpret_cast<void*>(Mock_glGetTransformFeedbackVarying
);
2940 if (strcmp(name
, "glGetTranslatedShaderSourceANGLE") == 0)
2941 return reinterpret_cast<void*>(Mock_glGetTranslatedShaderSourceANGLE
);
2942 if (strcmp(name
, "glGetUniformBlockIndex") == 0)
2943 return reinterpret_cast<void*>(Mock_glGetUniformBlockIndex
);
2944 if (strcmp(name
, "glGetUniformIndices") == 0)
2945 return reinterpret_cast<void*>(Mock_glGetUniformIndices
);
2946 if (strcmp(name
, "glGetUniformLocation") == 0)
2947 return reinterpret_cast<void*>(Mock_glGetUniformLocation
);
2948 if (strcmp(name
, "glGetUniformfv") == 0)
2949 return reinterpret_cast<void*>(Mock_glGetUniformfv
);
2950 if (strcmp(name
, "glGetUniformiv") == 0)
2951 return reinterpret_cast<void*>(Mock_glGetUniformiv
);
2952 if (strcmp(name
, "glGetVertexAttribPointerv") == 0)
2953 return reinterpret_cast<void*>(Mock_glGetVertexAttribPointerv
);
2954 if (strcmp(name
, "glGetVertexAttribfv") == 0)
2955 return reinterpret_cast<void*>(Mock_glGetVertexAttribfv
);
2956 if (strcmp(name
, "glGetVertexAttribiv") == 0)
2957 return reinterpret_cast<void*>(Mock_glGetVertexAttribiv
);
2958 if (strcmp(name
, "glHint") == 0)
2959 return reinterpret_cast<void*>(Mock_glHint
);
2960 if (strcmp(name
, "glInsertEventMarkerEXT") == 0)
2961 return reinterpret_cast<void*>(Mock_glInsertEventMarkerEXT
);
2962 if (strcmp(name
, "glInvalidateFramebuffer") == 0)
2963 return reinterpret_cast<void*>(Mock_glInvalidateFramebuffer
);
2964 if (strcmp(name
, "glInvalidateSubFramebuffer") == 0)
2965 return reinterpret_cast<void*>(Mock_glInvalidateSubFramebuffer
);
2966 if (strcmp(name
, "glIsBuffer") == 0)
2967 return reinterpret_cast<void*>(Mock_glIsBuffer
);
2968 if (strcmp(name
, "glIsEnabled") == 0)
2969 return reinterpret_cast<void*>(Mock_glIsEnabled
);
2970 if (strcmp(name
, "glIsFenceAPPLE") == 0)
2971 return reinterpret_cast<void*>(Mock_glIsFenceAPPLE
);
2972 if (strcmp(name
, "glIsFenceNV") == 0)
2973 return reinterpret_cast<void*>(Mock_glIsFenceNV
);
2974 if (strcmp(name
, "glIsFramebuffer") == 0)
2975 return reinterpret_cast<void*>(Mock_glIsFramebuffer
);
2976 if (strcmp(name
, "glIsFramebufferEXT") == 0)
2977 return reinterpret_cast<void*>(Mock_glIsFramebufferEXT
);
2978 if (strcmp(name
, "glIsProgram") == 0)
2979 return reinterpret_cast<void*>(Mock_glIsProgram
);
2980 if (strcmp(name
, "glIsQuery") == 0)
2981 return reinterpret_cast<void*>(Mock_glIsQuery
);
2982 if (strcmp(name
, "glIsQueryARB") == 0)
2983 return reinterpret_cast<void*>(Mock_glIsQueryARB
);
2984 if (strcmp(name
, "glIsQueryEXT") == 0)
2985 return reinterpret_cast<void*>(Mock_glIsQueryEXT
);
2986 if (strcmp(name
, "glIsRenderbuffer") == 0)
2987 return reinterpret_cast<void*>(Mock_glIsRenderbuffer
);
2988 if (strcmp(name
, "glIsRenderbufferEXT") == 0)
2989 return reinterpret_cast<void*>(Mock_glIsRenderbufferEXT
);
2990 if (strcmp(name
, "glIsSampler") == 0)
2991 return reinterpret_cast<void*>(Mock_glIsSampler
);
2992 if (strcmp(name
, "glIsShader") == 0)
2993 return reinterpret_cast<void*>(Mock_glIsShader
);
2994 if (strcmp(name
, "glIsSync") == 0)
2995 return reinterpret_cast<void*>(Mock_glIsSync
);
2996 if (strcmp(name
, "glIsTexture") == 0)
2997 return reinterpret_cast<void*>(Mock_glIsTexture
);
2998 if (strcmp(name
, "glIsTransformFeedback") == 0)
2999 return reinterpret_cast<void*>(Mock_glIsTransformFeedback
);
3000 if (strcmp(name
, "glIsVertexArray") == 0)
3001 return reinterpret_cast<void*>(Mock_glIsVertexArray
);
3002 if (strcmp(name
, "glIsVertexArrayAPPLE") == 0)
3003 return reinterpret_cast<void*>(Mock_glIsVertexArrayAPPLE
);
3004 if (strcmp(name
, "glIsVertexArrayOES") == 0)
3005 return reinterpret_cast<void*>(Mock_glIsVertexArrayOES
);
3006 if (strcmp(name
, "glLineWidth") == 0)
3007 return reinterpret_cast<void*>(Mock_glLineWidth
);
3008 if (strcmp(name
, "glLinkProgram") == 0)
3009 return reinterpret_cast<void*>(Mock_glLinkProgram
);
3010 if (strcmp(name
, "glMapBuffer") == 0)
3011 return reinterpret_cast<void*>(Mock_glMapBuffer
);
3012 if (strcmp(name
, "glMapBufferOES") == 0)
3013 return reinterpret_cast<void*>(Mock_glMapBufferOES
);
3014 if (strcmp(name
, "glMapBufferRange") == 0)
3015 return reinterpret_cast<void*>(Mock_glMapBufferRange
);
3016 if (strcmp(name
, "glMapBufferRangeEXT") == 0)
3017 return reinterpret_cast<void*>(Mock_glMapBufferRangeEXT
);
3018 if (strcmp(name
, "glMatrixLoadIdentityEXT") == 0)
3019 return reinterpret_cast<void*>(Mock_glMatrixLoadIdentityEXT
);
3020 if (strcmp(name
, "glMatrixLoadfEXT") == 0)
3021 return reinterpret_cast<void*>(Mock_glMatrixLoadfEXT
);
3022 if (strcmp(name
, "glPauseTransformFeedback") == 0)
3023 return reinterpret_cast<void*>(Mock_glPauseTransformFeedback
);
3024 if (strcmp(name
, "glPixelStorei") == 0)
3025 return reinterpret_cast<void*>(Mock_glPixelStorei
);
3026 if (strcmp(name
, "glPointParameteri") == 0)
3027 return reinterpret_cast<void*>(Mock_glPointParameteri
);
3028 if (strcmp(name
, "glPolygonOffset") == 0)
3029 return reinterpret_cast<void*>(Mock_glPolygonOffset
);
3030 if (strcmp(name
, "glPopGroupMarkerEXT") == 0)
3031 return reinterpret_cast<void*>(Mock_glPopGroupMarkerEXT
);
3032 if (strcmp(name
, "glProgramBinary") == 0)
3033 return reinterpret_cast<void*>(Mock_glProgramBinary
);
3034 if (strcmp(name
, "glProgramBinaryOES") == 0)
3035 return reinterpret_cast<void*>(Mock_glProgramBinaryOES
);
3036 if (strcmp(name
, "glProgramParameteri") == 0)
3037 return reinterpret_cast<void*>(Mock_glProgramParameteri
);
3038 if (strcmp(name
, "glPushGroupMarkerEXT") == 0)
3039 return reinterpret_cast<void*>(Mock_glPushGroupMarkerEXT
);
3040 if (strcmp(name
, "glQueryCounter") == 0)
3041 return reinterpret_cast<void*>(Mock_glQueryCounter
);
3042 if (strcmp(name
, "glQueryCounterEXT") == 0)
3043 return reinterpret_cast<void*>(Mock_glQueryCounterEXT
);
3044 if (strcmp(name
, "glReadBuffer") == 0)
3045 return reinterpret_cast<void*>(Mock_glReadBuffer
);
3046 if (strcmp(name
, "glReadPixels") == 0)
3047 return reinterpret_cast<void*>(Mock_glReadPixels
);
3048 if (strcmp(name
, "glReleaseShaderCompiler") == 0)
3049 return reinterpret_cast<void*>(Mock_glReleaseShaderCompiler
);
3050 if (strcmp(name
, "glRenderbufferStorage") == 0)
3051 return reinterpret_cast<void*>(Mock_glRenderbufferStorage
);
3052 if (strcmp(name
, "glRenderbufferStorageEXT") == 0)
3053 return reinterpret_cast<void*>(Mock_glRenderbufferStorageEXT
);
3054 if (strcmp(name
, "glRenderbufferStorageMultisample") == 0)
3055 return reinterpret_cast<void*>(Mock_glRenderbufferStorageMultisample
);
3056 if (strcmp(name
, "glRenderbufferStorageMultisampleANGLE") == 0)
3057 return reinterpret_cast<void*>(Mock_glRenderbufferStorageMultisampleANGLE
);
3058 if (strcmp(name
, "glRenderbufferStorageMultisampleEXT") == 0)
3059 return reinterpret_cast<void*>(Mock_glRenderbufferStorageMultisampleEXT
);
3060 if (strcmp(name
, "glRenderbufferStorageMultisampleIMG") == 0)
3061 return reinterpret_cast<void*>(Mock_glRenderbufferStorageMultisampleIMG
);
3062 if (strcmp(name
, "glResumeTransformFeedback") == 0)
3063 return reinterpret_cast<void*>(Mock_glResumeTransformFeedback
);
3064 if (strcmp(name
, "glSampleCoverage") == 0)
3065 return reinterpret_cast<void*>(Mock_glSampleCoverage
);
3066 if (strcmp(name
, "glSamplerParameterf") == 0)
3067 return reinterpret_cast<void*>(Mock_glSamplerParameterf
);
3068 if (strcmp(name
, "glSamplerParameterfv") == 0)
3069 return reinterpret_cast<void*>(Mock_glSamplerParameterfv
);
3070 if (strcmp(name
, "glSamplerParameteri") == 0)
3071 return reinterpret_cast<void*>(Mock_glSamplerParameteri
);
3072 if (strcmp(name
, "glSamplerParameteriv") == 0)
3073 return reinterpret_cast<void*>(Mock_glSamplerParameteriv
);
3074 if (strcmp(name
, "glScissor") == 0)
3075 return reinterpret_cast<void*>(Mock_glScissor
);
3076 if (strcmp(name
, "glSetFenceAPPLE") == 0)
3077 return reinterpret_cast<void*>(Mock_glSetFenceAPPLE
);
3078 if (strcmp(name
, "glSetFenceNV") == 0)
3079 return reinterpret_cast<void*>(Mock_glSetFenceNV
);
3080 if (strcmp(name
, "glShaderBinary") == 0)
3081 return reinterpret_cast<void*>(Mock_glShaderBinary
);
3082 if (strcmp(name
, "glShaderSource") == 0)
3083 return reinterpret_cast<void*>(Mock_glShaderSource
);
3084 if (strcmp(name
, "glStencilFunc") == 0)
3085 return reinterpret_cast<void*>(Mock_glStencilFunc
);
3086 if (strcmp(name
, "glStencilFuncSeparate") == 0)
3087 return reinterpret_cast<void*>(Mock_glStencilFuncSeparate
);
3088 if (strcmp(name
, "glStencilMask") == 0)
3089 return reinterpret_cast<void*>(Mock_glStencilMask
);
3090 if (strcmp(name
, "glStencilMaskSeparate") == 0)
3091 return reinterpret_cast<void*>(Mock_glStencilMaskSeparate
);
3092 if (strcmp(name
, "glStencilOp") == 0)
3093 return reinterpret_cast<void*>(Mock_glStencilOp
);
3094 if (strcmp(name
, "glStencilOpSeparate") == 0)
3095 return reinterpret_cast<void*>(Mock_glStencilOpSeparate
);
3096 if (strcmp(name
, "glTestFenceAPPLE") == 0)
3097 return reinterpret_cast<void*>(Mock_glTestFenceAPPLE
);
3098 if (strcmp(name
, "glTestFenceNV") == 0)
3099 return reinterpret_cast<void*>(Mock_glTestFenceNV
);
3100 if (strcmp(name
, "glTexImage2D") == 0)
3101 return reinterpret_cast<void*>(Mock_glTexImage2D
);
3102 if (strcmp(name
, "glTexImage3D") == 0)
3103 return reinterpret_cast<void*>(Mock_glTexImage3D
);
3104 if (strcmp(name
, "glTexParameterf") == 0)
3105 return reinterpret_cast<void*>(Mock_glTexParameterf
);
3106 if (strcmp(name
, "glTexParameterfv") == 0)
3107 return reinterpret_cast<void*>(Mock_glTexParameterfv
);
3108 if (strcmp(name
, "glTexParameteri") == 0)
3109 return reinterpret_cast<void*>(Mock_glTexParameteri
);
3110 if (strcmp(name
, "glTexParameteriv") == 0)
3111 return reinterpret_cast<void*>(Mock_glTexParameteriv
);
3112 if (strcmp(name
, "glTexStorage2D") == 0)
3113 return reinterpret_cast<void*>(Mock_glTexStorage2D
);
3114 if (strcmp(name
, "glTexStorage2DEXT") == 0)
3115 return reinterpret_cast<void*>(Mock_glTexStorage2DEXT
);
3116 if (strcmp(name
, "glTexStorage3D") == 0)
3117 return reinterpret_cast<void*>(Mock_glTexStorage3D
);
3118 if (strcmp(name
, "glTexSubImage2D") == 0)
3119 return reinterpret_cast<void*>(Mock_glTexSubImage2D
);
3120 if (strcmp(name
, "glTransformFeedbackVaryings") == 0)
3121 return reinterpret_cast<void*>(Mock_glTransformFeedbackVaryings
);
3122 if (strcmp(name
, "glUniform1f") == 0)
3123 return reinterpret_cast<void*>(Mock_glUniform1f
);
3124 if (strcmp(name
, "glUniform1fv") == 0)
3125 return reinterpret_cast<void*>(Mock_glUniform1fv
);
3126 if (strcmp(name
, "glUniform1i") == 0)
3127 return reinterpret_cast<void*>(Mock_glUniform1i
);
3128 if (strcmp(name
, "glUniform1iv") == 0)
3129 return reinterpret_cast<void*>(Mock_glUniform1iv
);
3130 if (strcmp(name
, "glUniform1ui") == 0)
3131 return reinterpret_cast<void*>(Mock_glUniform1ui
);
3132 if (strcmp(name
, "glUniform1uiv") == 0)
3133 return reinterpret_cast<void*>(Mock_glUniform1uiv
);
3134 if (strcmp(name
, "glUniform2f") == 0)
3135 return reinterpret_cast<void*>(Mock_glUniform2f
);
3136 if (strcmp(name
, "glUniform2fv") == 0)
3137 return reinterpret_cast<void*>(Mock_glUniform2fv
);
3138 if (strcmp(name
, "glUniform2i") == 0)
3139 return reinterpret_cast<void*>(Mock_glUniform2i
);
3140 if (strcmp(name
, "glUniform2iv") == 0)
3141 return reinterpret_cast<void*>(Mock_glUniform2iv
);
3142 if (strcmp(name
, "glUniform2ui") == 0)
3143 return reinterpret_cast<void*>(Mock_glUniform2ui
);
3144 if (strcmp(name
, "glUniform2uiv") == 0)
3145 return reinterpret_cast<void*>(Mock_glUniform2uiv
);
3146 if (strcmp(name
, "glUniform3f") == 0)
3147 return reinterpret_cast<void*>(Mock_glUniform3f
);
3148 if (strcmp(name
, "glUniform3fv") == 0)
3149 return reinterpret_cast<void*>(Mock_glUniform3fv
);
3150 if (strcmp(name
, "glUniform3i") == 0)
3151 return reinterpret_cast<void*>(Mock_glUniform3i
);
3152 if (strcmp(name
, "glUniform3iv") == 0)
3153 return reinterpret_cast<void*>(Mock_glUniform3iv
);
3154 if (strcmp(name
, "glUniform3ui") == 0)
3155 return reinterpret_cast<void*>(Mock_glUniform3ui
);
3156 if (strcmp(name
, "glUniform3uiv") == 0)
3157 return reinterpret_cast<void*>(Mock_glUniform3uiv
);
3158 if (strcmp(name
, "glUniform4f") == 0)
3159 return reinterpret_cast<void*>(Mock_glUniform4f
);
3160 if (strcmp(name
, "glUniform4fv") == 0)
3161 return reinterpret_cast<void*>(Mock_glUniform4fv
);
3162 if (strcmp(name
, "glUniform4i") == 0)
3163 return reinterpret_cast<void*>(Mock_glUniform4i
);
3164 if (strcmp(name
, "glUniform4iv") == 0)
3165 return reinterpret_cast<void*>(Mock_glUniform4iv
);
3166 if (strcmp(name
, "glUniform4ui") == 0)
3167 return reinterpret_cast<void*>(Mock_glUniform4ui
);
3168 if (strcmp(name
, "glUniform4uiv") == 0)
3169 return reinterpret_cast<void*>(Mock_glUniform4uiv
);
3170 if (strcmp(name
, "glUniformBlockBinding") == 0)
3171 return reinterpret_cast<void*>(Mock_glUniformBlockBinding
);
3172 if (strcmp(name
, "glUniformMatrix2fv") == 0)
3173 return reinterpret_cast<void*>(Mock_glUniformMatrix2fv
);
3174 if (strcmp(name
, "glUniformMatrix2x3fv") == 0)
3175 return reinterpret_cast<void*>(Mock_glUniformMatrix2x3fv
);
3176 if (strcmp(name
, "glUniformMatrix2x4fv") == 0)
3177 return reinterpret_cast<void*>(Mock_glUniformMatrix2x4fv
);
3178 if (strcmp(name
, "glUniformMatrix3fv") == 0)
3179 return reinterpret_cast<void*>(Mock_glUniformMatrix3fv
);
3180 if (strcmp(name
, "glUniformMatrix3x2fv") == 0)
3181 return reinterpret_cast<void*>(Mock_glUniformMatrix3x2fv
);
3182 if (strcmp(name
, "glUniformMatrix3x4fv") == 0)
3183 return reinterpret_cast<void*>(Mock_glUniformMatrix3x4fv
);
3184 if (strcmp(name
, "glUniformMatrix4fv") == 0)
3185 return reinterpret_cast<void*>(Mock_glUniformMatrix4fv
);
3186 if (strcmp(name
, "glUniformMatrix4x2fv") == 0)
3187 return reinterpret_cast<void*>(Mock_glUniformMatrix4x2fv
);
3188 if (strcmp(name
, "glUniformMatrix4x3fv") == 0)
3189 return reinterpret_cast<void*>(Mock_glUniformMatrix4x3fv
);
3190 if (strcmp(name
, "glUnmapBuffer") == 0)
3191 return reinterpret_cast<void*>(Mock_glUnmapBuffer
);
3192 if (strcmp(name
, "glUnmapBufferOES") == 0)
3193 return reinterpret_cast<void*>(Mock_glUnmapBufferOES
);
3194 if (strcmp(name
, "glUseProgram") == 0)
3195 return reinterpret_cast<void*>(Mock_glUseProgram
);
3196 if (strcmp(name
, "glValidateProgram") == 0)
3197 return reinterpret_cast<void*>(Mock_glValidateProgram
);
3198 if (strcmp(name
, "glVertexAttrib1f") == 0)
3199 return reinterpret_cast<void*>(Mock_glVertexAttrib1f
);
3200 if (strcmp(name
, "glVertexAttrib1fv") == 0)
3201 return reinterpret_cast<void*>(Mock_glVertexAttrib1fv
);
3202 if (strcmp(name
, "glVertexAttrib2f") == 0)
3203 return reinterpret_cast<void*>(Mock_glVertexAttrib2f
);
3204 if (strcmp(name
, "glVertexAttrib2fv") == 0)
3205 return reinterpret_cast<void*>(Mock_glVertexAttrib2fv
);
3206 if (strcmp(name
, "glVertexAttrib3f") == 0)
3207 return reinterpret_cast<void*>(Mock_glVertexAttrib3f
);
3208 if (strcmp(name
, "glVertexAttrib3fv") == 0)
3209 return reinterpret_cast<void*>(Mock_glVertexAttrib3fv
);
3210 if (strcmp(name
, "glVertexAttrib4f") == 0)
3211 return reinterpret_cast<void*>(Mock_glVertexAttrib4f
);
3212 if (strcmp(name
, "glVertexAttrib4fv") == 0)
3213 return reinterpret_cast<void*>(Mock_glVertexAttrib4fv
);
3214 if (strcmp(name
, "glVertexAttribDivisor") == 0)
3215 return reinterpret_cast<void*>(Mock_glVertexAttribDivisor
);
3216 if (strcmp(name
, "glVertexAttribDivisorANGLE") == 0)
3217 return reinterpret_cast<void*>(Mock_glVertexAttribDivisorANGLE
);
3218 if (strcmp(name
, "glVertexAttribDivisorARB") == 0)
3219 return reinterpret_cast<void*>(Mock_glVertexAttribDivisorARB
);
3220 if (strcmp(name
, "glVertexAttribI4i") == 0)
3221 return reinterpret_cast<void*>(Mock_glVertexAttribI4i
);
3222 if (strcmp(name
, "glVertexAttribI4iv") == 0)
3223 return reinterpret_cast<void*>(Mock_glVertexAttribI4iv
);
3224 if (strcmp(name
, "glVertexAttribI4ui") == 0)
3225 return reinterpret_cast<void*>(Mock_glVertexAttribI4ui
);
3226 if (strcmp(name
, "glVertexAttribI4uiv") == 0)
3227 return reinterpret_cast<void*>(Mock_glVertexAttribI4uiv
);
3228 if (strcmp(name
, "glVertexAttribIPointer") == 0)
3229 return reinterpret_cast<void*>(Mock_glVertexAttribIPointer
);
3230 if (strcmp(name
, "glVertexAttribPointer") == 0)
3231 return reinterpret_cast<void*>(Mock_glVertexAttribPointer
);
3232 if (strcmp(name
, "glViewport") == 0)
3233 return reinterpret_cast<void*>(Mock_glViewport
);
3234 if (strcmp(name
, "glWaitSync") == 0)
3235 return reinterpret_cast<void*>(Mock_glWaitSync
);
3236 return reinterpret_cast<void*>(&MockInvalidFunction
);