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
);
29 void GL_BINDING_CALL
MockGLInterface::Mock_glAttachShader(GLuint program
,
31 MakeFunctionUnique("glAttachShader");
32 interface_
->AttachShader(program
, shader
);
35 void GL_BINDING_CALL
MockGLInterface::Mock_glBeginQuery(GLenum target
,
37 MakeFunctionUnique("glBeginQuery");
38 interface_
->BeginQuery(target
, id
);
41 void GL_BINDING_CALL
MockGLInterface::Mock_glBeginQueryARB(GLenum target
,
43 MakeFunctionUnique("glBeginQueryARB");
44 interface_
->BeginQuery(target
, id
);
47 void GL_BINDING_CALL
MockGLInterface::Mock_glBeginQueryEXT(GLenum target
,
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
);
67 void GL_BINDING_CALL
MockGLInterface::Mock_glBindBuffer(GLenum target
,
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
);
131 void GL_BINDING_CALL
MockGLInterface::Mock_glBindSampler(GLuint unit
,
133 MakeFunctionUnique("glBindSampler");
134 interface_
->BindSampler(unit
, sampler
);
137 void GL_BINDING_CALL
MockGLInterface::Mock_glBindTexture(GLenum target
,
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
);
195 void GL_BINDING_CALL
MockGLInterface::Mock_glBlendFunc(GLenum sfactor
,
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_glCompressedTexSubImage3D(GLenum target
,
420 MakeFunctionUnique("glCompressedTexSubImage3D");
421 interface_
->CompressedTexSubImage3D(target
, level
, xoffset
, yoffset
, zoffset
,
422 width
, height
, depth
, format
, imageSize
,
427 MockGLInterface::Mock_glCopyBufferSubData(GLenum readTarget
,
430 GLintptr writeOffset
,
432 MakeFunctionUnique("glCopyBufferSubData");
433 interface_
->CopyBufferSubData(readTarget
, writeTarget
, readOffset
,
438 MockGLInterface::Mock_glCopyTexImage2D(GLenum target
,
440 GLenum internalformat
,
446 MakeFunctionUnique("glCopyTexImage2D");
447 interface_
->CopyTexImage2D(target
, level
, internalformat
, x
, y
, width
, height
,
451 void GL_BINDING_CALL
MockGLInterface::Mock_glCopyTexSubImage2D(GLenum target
,
459 MakeFunctionUnique("glCopyTexSubImage2D");
460 interface_
->CopyTexSubImage2D(target
, level
, xoffset
, yoffset
, x
, y
, width
,
464 void GL_BINDING_CALL
MockGLInterface::Mock_glCopyTexSubImage3D(GLenum target
,
473 MakeFunctionUnique("glCopyTexSubImage3D");
474 interface_
->CopyTexSubImage3D(target
, level
, xoffset
, yoffset
, zoffset
, x
, y
,
478 void GL_BINDING_CALL
MockGLInterface::Mock_glCoverFillPathNV(GLuint path
,
480 MakeFunctionUnique("glCoverFillPathNV");
481 interface_
->CoverFillPathNV(path
, coverMode
);
485 MockGLInterface::Mock_glCoverStrokePathNV(GLuint name
, GLenum coverMode
) {
486 MakeFunctionUnique("glCoverStrokePathNV");
487 interface_
->CoverStrokePathNV(name
, coverMode
);
490 GLuint GL_BINDING_CALL
MockGLInterface::Mock_glCreateProgram(void) {
491 MakeFunctionUnique("glCreateProgram");
492 return interface_
->CreateProgram();
495 GLuint GL_BINDING_CALL
MockGLInterface::Mock_glCreateShader(GLenum type
) {
496 MakeFunctionUnique("glCreateShader");
497 return interface_
->CreateShader(type
);
500 void GL_BINDING_CALL
MockGLInterface::Mock_glCullFace(GLenum mode
) {
501 MakeFunctionUnique("glCullFace");
502 interface_
->CullFace(mode
);
506 MockGLInterface::Mock_glDeleteBuffers(GLsizei n
, const GLuint
* buffers
) {
507 MakeFunctionUnique("glDeleteBuffers");
508 interface_
->DeleteBuffersARB(n
, buffers
);
512 MockGLInterface::Mock_glDeleteFencesAPPLE(GLsizei n
, const GLuint
* fences
) {
513 MakeFunctionUnique("glDeleteFencesAPPLE");
514 interface_
->DeleteFencesAPPLE(n
, fences
);
518 MockGLInterface::Mock_glDeleteFencesNV(GLsizei n
, const GLuint
* fences
) {
519 MakeFunctionUnique("glDeleteFencesNV");
520 interface_
->DeleteFencesNV(n
, fences
);
524 MockGLInterface::Mock_glDeleteFramebuffers(GLsizei n
,
525 const GLuint
* framebuffers
) {
526 MakeFunctionUnique("glDeleteFramebuffers");
527 interface_
->DeleteFramebuffersEXT(n
, framebuffers
);
531 MockGLInterface::Mock_glDeleteFramebuffersEXT(GLsizei n
,
532 const GLuint
* framebuffers
) {
533 MakeFunctionUnique("glDeleteFramebuffersEXT");
534 interface_
->DeleteFramebuffersEXT(n
, framebuffers
);
537 void GL_BINDING_CALL
MockGLInterface::Mock_glDeletePathsNV(GLuint path
,
539 MakeFunctionUnique("glDeletePathsNV");
540 interface_
->DeletePathsNV(path
, range
);
543 void GL_BINDING_CALL
MockGLInterface::Mock_glDeleteProgram(GLuint program
) {
544 MakeFunctionUnique("glDeleteProgram");
545 interface_
->DeleteProgram(program
);
548 void GL_BINDING_CALL
MockGLInterface::Mock_glDeleteQueries(GLsizei n
,
550 MakeFunctionUnique("glDeleteQueries");
551 interface_
->DeleteQueries(n
, ids
);
555 MockGLInterface::Mock_glDeleteQueriesARB(GLsizei n
, const GLuint
* ids
) {
556 MakeFunctionUnique("glDeleteQueriesARB");
557 interface_
->DeleteQueries(n
, ids
);
561 MockGLInterface::Mock_glDeleteQueriesEXT(GLsizei n
, const GLuint
* ids
) {
562 MakeFunctionUnique("glDeleteQueriesEXT");
563 interface_
->DeleteQueries(n
, ids
);
567 MockGLInterface::Mock_glDeleteRenderbuffers(GLsizei n
,
568 const GLuint
* renderbuffers
) {
569 MakeFunctionUnique("glDeleteRenderbuffers");
570 interface_
->DeleteRenderbuffersEXT(n
, renderbuffers
);
574 MockGLInterface::Mock_glDeleteRenderbuffersEXT(GLsizei n
,
575 const GLuint
* renderbuffers
) {
576 MakeFunctionUnique("glDeleteRenderbuffersEXT");
577 interface_
->DeleteRenderbuffersEXT(n
, renderbuffers
);
581 MockGLInterface::Mock_glDeleteSamplers(GLsizei n
, const GLuint
* samplers
) {
582 MakeFunctionUnique("glDeleteSamplers");
583 interface_
->DeleteSamplers(n
, samplers
);
586 void GL_BINDING_CALL
MockGLInterface::Mock_glDeleteShader(GLuint shader
) {
587 MakeFunctionUnique("glDeleteShader");
588 interface_
->DeleteShader(shader
);
591 void GL_BINDING_CALL
MockGLInterface::Mock_glDeleteSync(GLsync sync
) {
592 MakeFunctionUnique("glDeleteSync");
593 interface_
->DeleteSync(sync
);
597 MockGLInterface::Mock_glDeleteTextures(GLsizei n
, const GLuint
* textures
) {
598 MakeFunctionUnique("glDeleteTextures");
599 interface_
->DeleteTextures(n
, textures
);
603 MockGLInterface::Mock_glDeleteTransformFeedbacks(GLsizei n
, const GLuint
* ids
) {
604 MakeFunctionUnique("glDeleteTransformFeedbacks");
605 interface_
->DeleteTransformFeedbacks(n
, ids
);
609 MockGLInterface::Mock_glDeleteVertexArrays(GLsizei n
, const GLuint
* arrays
) {
610 MakeFunctionUnique("glDeleteVertexArrays");
611 interface_
->DeleteVertexArraysOES(n
, arrays
);
615 MockGLInterface::Mock_glDeleteVertexArraysAPPLE(GLsizei n
,
616 const GLuint
* arrays
) {
617 MakeFunctionUnique("glDeleteVertexArraysAPPLE");
618 interface_
->DeleteVertexArraysOES(n
, arrays
);
622 MockGLInterface::Mock_glDeleteVertexArraysOES(GLsizei n
, const GLuint
* arrays
) {
623 MakeFunctionUnique("glDeleteVertexArraysOES");
624 interface_
->DeleteVertexArraysOES(n
, arrays
);
627 void GL_BINDING_CALL
MockGLInterface::Mock_glDepthFunc(GLenum func
) {
628 MakeFunctionUnique("glDepthFunc");
629 interface_
->DepthFunc(func
);
632 void GL_BINDING_CALL
MockGLInterface::Mock_glDepthMask(GLboolean flag
) {
633 MakeFunctionUnique("glDepthMask");
634 interface_
->DepthMask(flag
);
637 void GL_BINDING_CALL
MockGLInterface::Mock_glDepthRange(GLclampd zNear
,
639 MakeFunctionUnique("glDepthRange");
640 interface_
->DepthRange(zNear
, zFar
);
643 void GL_BINDING_CALL
MockGLInterface::Mock_glDepthRangef(GLclampf zNear
,
645 MakeFunctionUnique("glDepthRangef");
646 interface_
->DepthRangef(zNear
, zFar
);
649 void GL_BINDING_CALL
MockGLInterface::Mock_glDetachShader(GLuint program
,
651 MakeFunctionUnique("glDetachShader");
652 interface_
->DetachShader(program
, shader
);
655 void GL_BINDING_CALL
MockGLInterface::Mock_glDisable(GLenum cap
) {
656 MakeFunctionUnique("glDisable");
657 interface_
->Disable(cap
);
661 MockGLInterface::Mock_glDisableVertexAttribArray(GLuint index
) {
662 MakeFunctionUnique("glDisableVertexAttribArray");
663 interface_
->DisableVertexAttribArray(index
);
667 MockGLInterface::Mock_glDiscardFramebufferEXT(GLenum target
,
668 GLsizei numAttachments
,
669 const GLenum
* attachments
) {
670 MakeFunctionUnique("glDiscardFramebufferEXT");
671 interface_
->DiscardFramebufferEXT(target
, numAttachments
, attachments
);
674 void GL_BINDING_CALL
MockGLInterface::Mock_glDrawArrays(GLenum mode
,
677 MakeFunctionUnique("glDrawArrays");
678 interface_
->DrawArrays(mode
, first
, count
);
682 MockGLInterface::Mock_glDrawArraysInstanced(GLenum mode
,
686 MakeFunctionUnique("glDrawArraysInstanced");
687 interface_
->DrawArraysInstancedANGLE(mode
, first
, count
, primcount
);
691 MockGLInterface::Mock_glDrawArraysInstancedANGLE(GLenum mode
,
695 MakeFunctionUnique("glDrawArraysInstancedANGLE");
696 interface_
->DrawArraysInstancedANGLE(mode
, first
, count
, primcount
);
700 MockGLInterface::Mock_glDrawArraysInstancedARB(GLenum mode
,
704 MakeFunctionUnique("glDrawArraysInstancedARB");
705 interface_
->DrawArraysInstancedANGLE(mode
, first
, count
, primcount
);
708 void GL_BINDING_CALL
MockGLInterface::Mock_glDrawBuffer(GLenum mode
) {
709 MakeFunctionUnique("glDrawBuffer");
710 interface_
->DrawBuffer(mode
);
713 void GL_BINDING_CALL
MockGLInterface::Mock_glDrawBuffers(GLsizei n
,
714 const GLenum
* bufs
) {
715 MakeFunctionUnique("glDrawBuffers");
716 interface_
->DrawBuffersARB(n
, bufs
);
720 MockGLInterface::Mock_glDrawBuffersARB(GLsizei n
, const GLenum
* bufs
) {
721 MakeFunctionUnique("glDrawBuffersARB");
722 interface_
->DrawBuffersARB(n
, bufs
);
726 MockGLInterface::Mock_glDrawBuffersEXT(GLsizei n
, const GLenum
* bufs
) {
727 MakeFunctionUnique("glDrawBuffersEXT");
728 interface_
->DrawBuffersARB(n
, bufs
);
731 void GL_BINDING_CALL
MockGLInterface::Mock_glDrawElements(GLenum mode
,
734 const void* indices
) {
735 MakeFunctionUnique("glDrawElements");
736 interface_
->DrawElements(mode
, count
, type
, indices
);
740 MockGLInterface::Mock_glDrawElementsInstanced(GLenum mode
,
745 MakeFunctionUnique("glDrawElementsInstanced");
746 interface_
->DrawElementsInstancedANGLE(mode
, count
, type
, indices
, primcount
);
750 MockGLInterface::Mock_glDrawElementsInstancedANGLE(GLenum mode
,
755 MakeFunctionUnique("glDrawElementsInstancedANGLE");
756 interface_
->DrawElementsInstancedANGLE(mode
, count
, type
, indices
, primcount
);
760 MockGLInterface::Mock_glDrawElementsInstancedARB(GLenum mode
,
765 MakeFunctionUnique("glDrawElementsInstancedARB");
766 interface_
->DrawElementsInstancedANGLE(mode
, count
, type
, indices
, primcount
);
770 MockGLInterface::Mock_glDrawRangeElements(GLenum mode
,
775 const void* indices
) {
776 MakeFunctionUnique("glDrawRangeElements");
777 interface_
->DrawRangeElements(mode
, start
, end
, count
, type
, indices
);
781 MockGLInterface::Mock_glEGLImageTargetRenderbufferStorageOES(
783 GLeglImageOES image
) {
784 MakeFunctionUnique("glEGLImageTargetRenderbufferStorageOES");
785 interface_
->EGLImageTargetRenderbufferStorageOES(target
, image
);
789 MockGLInterface::Mock_glEGLImageTargetTexture2DOES(GLenum target
,
790 GLeglImageOES image
) {
791 MakeFunctionUnique("glEGLImageTargetTexture2DOES");
792 interface_
->EGLImageTargetTexture2DOES(target
, image
);
795 void GL_BINDING_CALL
MockGLInterface::Mock_glEnable(GLenum cap
) {
796 MakeFunctionUnique("glEnable");
797 interface_
->Enable(cap
);
801 MockGLInterface::Mock_glEnableVertexAttribArray(GLuint index
) {
802 MakeFunctionUnique("glEnableVertexAttribArray");
803 interface_
->EnableVertexAttribArray(index
);
806 void GL_BINDING_CALL
MockGLInterface::Mock_glEndQuery(GLenum target
) {
807 MakeFunctionUnique("glEndQuery");
808 interface_
->EndQuery(target
);
811 void GL_BINDING_CALL
MockGLInterface::Mock_glEndQueryARB(GLenum target
) {
812 MakeFunctionUnique("glEndQueryARB");
813 interface_
->EndQuery(target
);
816 void GL_BINDING_CALL
MockGLInterface::Mock_glEndQueryEXT(GLenum target
) {
817 MakeFunctionUnique("glEndQueryEXT");
818 interface_
->EndQuery(target
);
821 void GL_BINDING_CALL
MockGLInterface::Mock_glEndTransformFeedback(void) {
822 MakeFunctionUnique("glEndTransformFeedback");
823 interface_
->EndTransformFeedback();
826 GLsync GL_BINDING_CALL
MockGLInterface::Mock_glFenceSync(GLenum condition
,
828 MakeFunctionUnique("glFenceSync");
829 return interface_
->FenceSync(condition
, flags
);
832 void GL_BINDING_CALL
MockGLInterface::Mock_glFinish(void) {
833 MakeFunctionUnique("glFinish");
834 interface_
->Finish();
837 void GL_BINDING_CALL
MockGLInterface::Mock_glFinishFenceAPPLE(GLuint fence
) {
838 MakeFunctionUnique("glFinishFenceAPPLE");
839 interface_
->FinishFenceAPPLE(fence
);
842 void GL_BINDING_CALL
MockGLInterface::Mock_glFinishFenceNV(GLuint fence
) {
843 MakeFunctionUnique("glFinishFenceNV");
844 interface_
->FinishFenceNV(fence
);
847 void GL_BINDING_CALL
MockGLInterface::Mock_glFlush(void) {
848 MakeFunctionUnique("glFlush");
853 MockGLInterface::Mock_glFlushMappedBufferRange(GLenum target
,
856 MakeFunctionUnique("glFlushMappedBufferRange");
857 interface_
->FlushMappedBufferRange(target
, offset
, length
);
861 MockGLInterface::Mock_glFramebufferRenderbuffer(GLenum target
,
863 GLenum renderbuffertarget
,
864 GLuint renderbuffer
) {
865 MakeFunctionUnique("glFramebufferRenderbuffer");
866 interface_
->FramebufferRenderbufferEXT(target
, attachment
, renderbuffertarget
,
871 MockGLInterface::Mock_glFramebufferRenderbufferEXT(GLenum target
,
873 GLenum renderbuffertarget
,
874 GLuint renderbuffer
) {
875 MakeFunctionUnique("glFramebufferRenderbufferEXT");
876 interface_
->FramebufferRenderbufferEXT(target
, attachment
, renderbuffertarget
,
881 MockGLInterface::Mock_glFramebufferTexture2D(GLenum target
,
886 MakeFunctionUnique("glFramebufferTexture2D");
887 interface_
->FramebufferTexture2DEXT(target
, attachment
, textarget
, texture
,
892 MockGLInterface::Mock_glFramebufferTexture2DEXT(GLenum target
,
897 MakeFunctionUnique("glFramebufferTexture2DEXT");
898 interface_
->FramebufferTexture2DEXT(target
, attachment
, textarget
, texture
,
903 MockGLInterface::Mock_glFramebufferTexture2DMultisampleEXT(GLenum target
,
909 MakeFunctionUnique("glFramebufferTexture2DMultisampleEXT");
910 interface_
->FramebufferTexture2DMultisampleEXT(target
, attachment
, textarget
,
911 texture
, level
, samples
);
915 MockGLInterface::Mock_glFramebufferTexture2DMultisampleIMG(GLenum target
,
921 MakeFunctionUnique("glFramebufferTexture2DMultisampleIMG");
922 interface_
->FramebufferTexture2DMultisampleIMG(target
, attachment
, textarget
,
923 texture
, level
, samples
);
927 MockGLInterface::Mock_glFramebufferTextureLayer(GLenum target
,
932 MakeFunctionUnique("glFramebufferTextureLayer");
933 interface_
->FramebufferTextureLayer(target
, attachment
, texture
, level
,
937 void GL_BINDING_CALL
MockGLInterface::Mock_glFrontFace(GLenum mode
) {
938 MakeFunctionUnique("glFrontFace");
939 interface_
->FrontFace(mode
);
942 void GL_BINDING_CALL
MockGLInterface::Mock_glGenBuffers(GLsizei n
,
944 MakeFunctionUnique("glGenBuffers");
945 interface_
->GenBuffersARB(n
, buffers
);
948 void GL_BINDING_CALL
MockGLInterface::Mock_glGenFencesAPPLE(GLsizei n
,
950 MakeFunctionUnique("glGenFencesAPPLE");
951 interface_
->GenFencesAPPLE(n
, fences
);
954 void GL_BINDING_CALL
MockGLInterface::Mock_glGenFencesNV(GLsizei n
,
956 MakeFunctionUnique("glGenFencesNV");
957 interface_
->GenFencesNV(n
, fences
);
961 MockGLInterface::Mock_glGenFramebuffers(GLsizei n
, GLuint
* framebuffers
) {
962 MakeFunctionUnique("glGenFramebuffers");
963 interface_
->GenFramebuffersEXT(n
, framebuffers
);
967 MockGLInterface::Mock_glGenFramebuffersEXT(GLsizei n
, GLuint
* framebuffers
) {
968 MakeFunctionUnique("glGenFramebuffersEXT");
969 interface_
->GenFramebuffersEXT(n
, framebuffers
);
972 GLuint GL_BINDING_CALL
MockGLInterface::Mock_glGenPathsNV(GLsizei range
) {
973 MakeFunctionUnique("glGenPathsNV");
974 return interface_
->GenPathsNV(range
);
977 void GL_BINDING_CALL
MockGLInterface::Mock_glGenQueries(GLsizei n
,
979 MakeFunctionUnique("glGenQueries");
980 interface_
->GenQueries(n
, ids
);
983 void GL_BINDING_CALL
MockGLInterface::Mock_glGenQueriesARB(GLsizei n
,
985 MakeFunctionUnique("glGenQueriesARB");
986 interface_
->GenQueries(n
, ids
);
989 void GL_BINDING_CALL
MockGLInterface::Mock_glGenQueriesEXT(GLsizei n
,
991 MakeFunctionUnique("glGenQueriesEXT");
992 interface_
->GenQueries(n
, ids
);
996 MockGLInterface::Mock_glGenRenderbuffers(GLsizei n
, GLuint
* renderbuffers
) {
997 MakeFunctionUnique("glGenRenderbuffers");
998 interface_
->GenRenderbuffersEXT(n
, renderbuffers
);
1001 void GL_BINDING_CALL
1002 MockGLInterface::Mock_glGenRenderbuffersEXT(GLsizei n
, GLuint
* renderbuffers
) {
1003 MakeFunctionUnique("glGenRenderbuffersEXT");
1004 interface_
->GenRenderbuffersEXT(n
, renderbuffers
);
1007 void GL_BINDING_CALL
MockGLInterface::Mock_glGenSamplers(GLsizei n
,
1009 MakeFunctionUnique("glGenSamplers");
1010 interface_
->GenSamplers(n
, samplers
);
1013 void GL_BINDING_CALL
MockGLInterface::Mock_glGenTextures(GLsizei n
,
1015 MakeFunctionUnique("glGenTextures");
1016 interface_
->GenTextures(n
, textures
);
1019 void GL_BINDING_CALL
1020 MockGLInterface::Mock_glGenTransformFeedbacks(GLsizei n
, GLuint
* ids
) {
1021 MakeFunctionUnique("glGenTransformFeedbacks");
1022 interface_
->GenTransformFeedbacks(n
, ids
);
1025 void GL_BINDING_CALL
MockGLInterface::Mock_glGenVertexArrays(GLsizei n
,
1027 MakeFunctionUnique("glGenVertexArrays");
1028 interface_
->GenVertexArraysOES(n
, arrays
);
1031 void GL_BINDING_CALL
1032 MockGLInterface::Mock_glGenVertexArraysAPPLE(GLsizei n
, GLuint
* arrays
) {
1033 MakeFunctionUnique("glGenVertexArraysAPPLE");
1034 interface_
->GenVertexArraysOES(n
, arrays
);
1037 void GL_BINDING_CALL
1038 MockGLInterface::Mock_glGenVertexArraysOES(GLsizei n
, GLuint
* arrays
) {
1039 MakeFunctionUnique("glGenVertexArraysOES");
1040 interface_
->GenVertexArraysOES(n
, arrays
);
1043 void GL_BINDING_CALL
MockGLInterface::Mock_glGenerateMipmap(GLenum target
) {
1044 MakeFunctionUnique("glGenerateMipmap");
1045 interface_
->GenerateMipmapEXT(target
);
1048 void GL_BINDING_CALL
MockGLInterface::Mock_glGenerateMipmapEXT(GLenum target
) {
1049 MakeFunctionUnique("glGenerateMipmapEXT");
1050 interface_
->GenerateMipmapEXT(target
);
1053 void GL_BINDING_CALL
MockGLInterface::Mock_glGetActiveAttrib(GLuint program
,
1060 MakeFunctionUnique("glGetActiveAttrib");
1061 interface_
->GetActiveAttrib(program
, index
, bufsize
, length
, size
, type
,
1065 void GL_BINDING_CALL
MockGLInterface::Mock_glGetActiveUniform(GLuint program
,
1072 MakeFunctionUnique("glGetActiveUniform");
1073 interface_
->GetActiveUniform(program
, index
, bufsize
, length
, size
, type
,
1077 void GL_BINDING_CALL
1078 MockGLInterface::Mock_glGetActiveUniformBlockName(GLuint program
,
1079 GLuint uniformBlockIndex
,
1082 char* uniformBlockName
) {
1083 MakeFunctionUnique("glGetActiveUniformBlockName");
1084 interface_
->GetActiveUniformBlockName(program
, uniformBlockIndex
, bufSize
,
1085 length
, uniformBlockName
);
1088 void GL_BINDING_CALL
1089 MockGLInterface::Mock_glGetActiveUniformBlockiv(GLuint program
,
1090 GLuint uniformBlockIndex
,
1093 MakeFunctionUnique("glGetActiveUniformBlockiv");
1094 interface_
->GetActiveUniformBlockiv(program
, uniformBlockIndex
, pname
,
1098 void GL_BINDING_CALL
1099 MockGLInterface::Mock_glGetActiveUniformsiv(GLuint program
,
1100 GLsizei uniformCount
,
1101 const GLuint
* uniformIndices
,
1104 MakeFunctionUnique("glGetActiveUniformsiv");
1105 interface_
->GetActiveUniformsiv(program
, uniformCount
, uniformIndices
, pname
,
1109 void GL_BINDING_CALL
1110 MockGLInterface::Mock_glGetAttachedShaders(GLuint program
,
1114 MakeFunctionUnique("glGetAttachedShaders");
1115 interface_
->GetAttachedShaders(program
, maxcount
, count
, shaders
);
1118 GLint GL_BINDING_CALL
1119 MockGLInterface::Mock_glGetAttribLocation(GLuint program
, const char* name
) {
1120 MakeFunctionUnique("glGetAttribLocation");
1121 return interface_
->GetAttribLocation(program
, name
);
1124 void GL_BINDING_CALL
MockGLInterface::Mock_glGetBooleanv(GLenum pname
,
1125 GLboolean
* params
) {
1126 MakeFunctionUnique("glGetBooleanv");
1127 interface_
->GetBooleanv(pname
, params
);
1130 void GL_BINDING_CALL
1131 MockGLInterface::Mock_glGetBufferParameteriv(GLenum target
,
1134 MakeFunctionUnique("glGetBufferParameteriv");
1135 interface_
->GetBufferParameteriv(target
, pname
, params
);
1138 GLenum GL_BINDING_CALL
MockGLInterface::Mock_glGetError(void) {
1139 MakeFunctionUnique("glGetError");
1140 return interface_
->GetError();
1143 void GL_BINDING_CALL
MockGLInterface::Mock_glGetFenceivNV(GLuint fence
,
1146 MakeFunctionUnique("glGetFenceivNV");
1147 interface_
->GetFenceivNV(fence
, pname
, params
);
1150 void GL_BINDING_CALL
MockGLInterface::Mock_glGetFloatv(GLenum pname
,
1152 MakeFunctionUnique("glGetFloatv");
1153 interface_
->GetFloatv(pname
, params
);
1156 GLint GL_BINDING_CALL
1157 MockGLInterface::Mock_glGetFragDataLocation(GLuint program
, const char* name
) {
1158 MakeFunctionUnique("glGetFragDataLocation");
1159 return interface_
->GetFragDataLocation(program
, name
);
1162 void GL_BINDING_CALL
1163 MockGLInterface::Mock_glGetFramebufferAttachmentParameteriv(GLenum target
,
1167 MakeFunctionUnique("glGetFramebufferAttachmentParameteriv");
1168 interface_
->GetFramebufferAttachmentParameterivEXT(target
, attachment
, pname
,
1172 void GL_BINDING_CALL
1173 MockGLInterface::Mock_glGetFramebufferAttachmentParameterivEXT(
1178 MakeFunctionUnique("glGetFramebufferAttachmentParameterivEXT");
1179 interface_
->GetFramebufferAttachmentParameterivEXT(target
, attachment
, pname
,
1183 GLenum GL_BINDING_CALL
MockGLInterface::Mock_glGetGraphicsResetStatus(void) {
1184 MakeFunctionUnique("glGetGraphicsResetStatus");
1185 return interface_
->GetGraphicsResetStatusARB();
1188 GLenum GL_BINDING_CALL
MockGLInterface::Mock_glGetGraphicsResetStatusARB(void) {
1189 MakeFunctionUnique("glGetGraphicsResetStatusARB");
1190 return interface_
->GetGraphicsResetStatusARB();
1193 GLenum GL_BINDING_CALL
MockGLInterface::Mock_glGetGraphicsResetStatusEXT(void) {
1194 MakeFunctionUnique("glGetGraphicsResetStatusEXT");
1195 return interface_
->GetGraphicsResetStatusARB();
1198 GLenum GL_BINDING_CALL
MockGLInterface::Mock_glGetGraphicsResetStatusKHR(void) {
1199 MakeFunctionUnique("glGetGraphicsResetStatusKHR");
1200 return interface_
->GetGraphicsResetStatusARB();
1203 void GL_BINDING_CALL
MockGLInterface::Mock_glGetInteger64i_v(GLenum target
,
1206 MakeFunctionUnique("glGetInteger64i_v");
1207 interface_
->GetInteger64i_v(target
, index
, data
);
1210 void GL_BINDING_CALL
MockGLInterface::Mock_glGetInteger64v(GLenum pname
,
1212 MakeFunctionUnique("glGetInteger64v");
1213 interface_
->GetInteger64v(pname
, params
);
1216 void GL_BINDING_CALL
MockGLInterface::Mock_glGetIntegeri_v(GLenum target
,
1219 MakeFunctionUnique("glGetIntegeri_v");
1220 interface_
->GetIntegeri_v(target
, index
, data
);
1223 void GL_BINDING_CALL
MockGLInterface::Mock_glGetIntegerv(GLenum pname
,
1225 MakeFunctionUnique("glGetIntegerv");
1226 interface_
->GetIntegerv(pname
, params
);
1229 void GL_BINDING_CALL
1230 MockGLInterface::Mock_glGetInternalformativ(GLenum target
,
1231 GLenum internalformat
,
1235 MakeFunctionUnique("glGetInternalformativ");
1236 interface_
->GetInternalformativ(target
, internalformat
, pname
, bufSize
,
1240 void GL_BINDING_CALL
1241 MockGLInterface::Mock_glGetProgramBinary(GLuint program
,
1244 GLenum
* binaryFormat
,
1246 MakeFunctionUnique("glGetProgramBinary");
1247 interface_
->GetProgramBinary(program
, bufSize
, length
, binaryFormat
, binary
);
1250 void GL_BINDING_CALL
1251 MockGLInterface::Mock_glGetProgramBinaryOES(GLuint program
,
1254 GLenum
* binaryFormat
,
1256 MakeFunctionUnique("glGetProgramBinaryOES");
1257 interface_
->GetProgramBinary(program
, bufSize
, length
, binaryFormat
, binary
);
1260 void GL_BINDING_CALL
MockGLInterface::Mock_glGetProgramInfoLog(GLuint program
,
1264 MakeFunctionUnique("glGetProgramInfoLog");
1265 interface_
->GetProgramInfoLog(program
, bufsize
, length
, infolog
);
1268 GLint GL_BINDING_CALL
1269 MockGLInterface::Mock_glGetProgramResourceLocation(GLuint program
,
1270 GLenum programInterface
,
1272 MakeFunctionUnique("glGetProgramResourceLocation");
1273 return interface_
->GetProgramResourceLocation(program
, programInterface
,
1277 void GL_BINDING_CALL
MockGLInterface::Mock_glGetProgramiv(GLuint program
,
1280 MakeFunctionUnique("glGetProgramiv");
1281 interface_
->GetProgramiv(program
, pname
, params
);
1284 void GL_BINDING_CALL
1285 MockGLInterface::Mock_glGetQueryObjecti64v(GLuint id
,
1288 MakeFunctionUnique("glGetQueryObjecti64v");
1289 interface_
->GetQueryObjecti64v(id
, pname
, params
);
1292 void GL_BINDING_CALL
1293 MockGLInterface::Mock_glGetQueryObjecti64vEXT(GLuint id
,
1296 MakeFunctionUnique("glGetQueryObjecti64vEXT");
1297 interface_
->GetQueryObjecti64v(id
, pname
, params
);
1300 void GL_BINDING_CALL
MockGLInterface::Mock_glGetQueryObjectiv(GLuint id
,
1303 MakeFunctionUnique("glGetQueryObjectiv");
1304 interface_
->GetQueryObjectiv(id
, pname
, params
);
1307 void GL_BINDING_CALL
1308 MockGLInterface::Mock_glGetQueryObjectivARB(GLuint id
,
1311 MakeFunctionUnique("glGetQueryObjectivARB");
1312 interface_
->GetQueryObjectiv(id
, pname
, params
);
1315 void GL_BINDING_CALL
1316 MockGLInterface::Mock_glGetQueryObjectivEXT(GLuint id
,
1319 MakeFunctionUnique("glGetQueryObjectivEXT");
1320 interface_
->GetQueryObjectiv(id
, pname
, params
);
1323 void GL_BINDING_CALL
1324 MockGLInterface::Mock_glGetQueryObjectui64v(GLuint id
,
1327 MakeFunctionUnique("glGetQueryObjectui64v");
1328 interface_
->GetQueryObjectui64v(id
, pname
, params
);
1331 void GL_BINDING_CALL
1332 MockGLInterface::Mock_glGetQueryObjectui64vEXT(GLuint id
,
1335 MakeFunctionUnique("glGetQueryObjectui64vEXT");
1336 interface_
->GetQueryObjectui64v(id
, pname
, params
);
1339 void GL_BINDING_CALL
MockGLInterface::Mock_glGetQueryObjectuiv(GLuint id
,
1342 MakeFunctionUnique("glGetQueryObjectuiv");
1343 interface_
->GetQueryObjectuiv(id
, pname
, params
);
1346 void GL_BINDING_CALL
1347 MockGLInterface::Mock_glGetQueryObjectuivARB(GLuint id
,
1350 MakeFunctionUnique("glGetQueryObjectuivARB");
1351 interface_
->GetQueryObjectuiv(id
, pname
, params
);
1354 void GL_BINDING_CALL
1355 MockGLInterface::Mock_glGetQueryObjectuivEXT(GLuint id
,
1358 MakeFunctionUnique("glGetQueryObjectuivEXT");
1359 interface_
->GetQueryObjectuiv(id
, pname
, params
);
1362 void GL_BINDING_CALL
MockGLInterface::Mock_glGetQueryiv(GLenum target
,
1365 MakeFunctionUnique("glGetQueryiv");
1366 interface_
->GetQueryiv(target
, pname
, params
);
1369 void GL_BINDING_CALL
MockGLInterface::Mock_glGetQueryivARB(GLenum target
,
1372 MakeFunctionUnique("glGetQueryivARB");
1373 interface_
->GetQueryiv(target
, pname
, params
);
1376 void GL_BINDING_CALL
MockGLInterface::Mock_glGetQueryivEXT(GLenum target
,
1379 MakeFunctionUnique("glGetQueryivEXT");
1380 interface_
->GetQueryiv(target
, pname
, params
);
1383 void GL_BINDING_CALL
1384 MockGLInterface::Mock_glGetRenderbufferParameteriv(GLenum target
,
1387 MakeFunctionUnique("glGetRenderbufferParameteriv");
1388 interface_
->GetRenderbufferParameterivEXT(target
, pname
, params
);
1391 void GL_BINDING_CALL
1392 MockGLInterface::Mock_glGetRenderbufferParameterivEXT(GLenum target
,
1395 MakeFunctionUnique("glGetRenderbufferParameterivEXT");
1396 interface_
->GetRenderbufferParameterivEXT(target
, pname
, params
);
1399 void GL_BINDING_CALL
1400 MockGLInterface::Mock_glGetSamplerParameterfv(GLuint sampler
,
1403 MakeFunctionUnique("glGetSamplerParameterfv");
1404 interface_
->GetSamplerParameterfv(sampler
, pname
, params
);
1407 void GL_BINDING_CALL
1408 MockGLInterface::Mock_glGetSamplerParameteriv(GLuint sampler
,
1411 MakeFunctionUnique("glGetSamplerParameteriv");
1412 interface_
->GetSamplerParameteriv(sampler
, pname
, params
);
1415 void GL_BINDING_CALL
MockGLInterface::Mock_glGetShaderInfoLog(GLuint shader
,
1419 MakeFunctionUnique("glGetShaderInfoLog");
1420 interface_
->GetShaderInfoLog(shader
, bufsize
, length
, infolog
);
1423 void GL_BINDING_CALL
1424 MockGLInterface::Mock_glGetShaderPrecisionFormat(GLenum shadertype
,
1425 GLenum precisiontype
,
1428 MakeFunctionUnique("glGetShaderPrecisionFormat");
1429 interface_
->GetShaderPrecisionFormat(shadertype
, precisiontype
, range
,
1433 void GL_BINDING_CALL
MockGLInterface::Mock_glGetShaderSource(GLuint shader
,
1437 MakeFunctionUnique("glGetShaderSource");
1438 interface_
->GetShaderSource(shader
, bufsize
, length
, source
);
1441 void GL_BINDING_CALL
MockGLInterface::Mock_glGetShaderiv(GLuint shader
,
1444 MakeFunctionUnique("glGetShaderiv");
1445 interface_
->GetShaderiv(shader
, pname
, params
);
1448 const GLubyte
* GL_BINDING_CALL
MockGLInterface::Mock_glGetString(GLenum name
) {
1449 MakeFunctionUnique("glGetString");
1450 return interface_
->GetString(name
);
1453 const GLubyte
* GL_BINDING_CALL
1454 MockGLInterface::Mock_glGetStringi(GLenum name
, GLuint index
) {
1455 MakeFunctionUnique("glGetStringi");
1456 return interface_
->GetStringi(name
, index
);
1459 void GL_BINDING_CALL
MockGLInterface::Mock_glGetSynciv(GLsync sync
,
1464 MakeFunctionUnique("glGetSynciv");
1465 interface_
->GetSynciv(sync
, pname
, bufSize
, length
, values
);
1468 void GL_BINDING_CALL
1469 MockGLInterface::Mock_glGetTexLevelParameterfv(GLenum target
,
1473 MakeFunctionUnique("glGetTexLevelParameterfv");
1474 interface_
->GetTexLevelParameterfv(target
, level
, pname
, params
);
1477 void GL_BINDING_CALL
1478 MockGLInterface::Mock_glGetTexLevelParameteriv(GLenum target
,
1482 MakeFunctionUnique("glGetTexLevelParameteriv");
1483 interface_
->GetTexLevelParameteriv(target
, level
, pname
, params
);
1486 void GL_BINDING_CALL
1487 MockGLInterface::Mock_glGetTexParameterfv(GLenum target
,
1490 MakeFunctionUnique("glGetTexParameterfv");
1491 interface_
->GetTexParameterfv(target
, pname
, params
);
1494 void GL_BINDING_CALL
MockGLInterface::Mock_glGetTexParameteriv(GLenum target
,
1497 MakeFunctionUnique("glGetTexParameteriv");
1498 interface_
->GetTexParameteriv(target
, pname
, params
);
1501 void GL_BINDING_CALL
1502 MockGLInterface::Mock_glGetTransformFeedbackVarying(GLuint program
,
1509 MakeFunctionUnique("glGetTransformFeedbackVarying");
1510 interface_
->GetTransformFeedbackVarying(program
, index
, bufSize
, length
, size
,
1514 void GL_BINDING_CALL
1515 MockGLInterface::Mock_glGetTranslatedShaderSourceANGLE(GLuint shader
,
1519 MakeFunctionUnique("glGetTranslatedShaderSourceANGLE");
1520 interface_
->GetTranslatedShaderSourceANGLE(shader
, bufsize
, length
, source
);
1523 GLuint GL_BINDING_CALL
1524 MockGLInterface::Mock_glGetUniformBlockIndex(GLuint program
,
1525 const char* uniformBlockName
) {
1526 MakeFunctionUnique("glGetUniformBlockIndex");
1527 return interface_
->GetUniformBlockIndex(program
, uniformBlockName
);
1530 void GL_BINDING_CALL
1531 MockGLInterface::Mock_glGetUniformIndices(GLuint program
,
1532 GLsizei uniformCount
,
1533 const char* const* uniformNames
,
1534 GLuint
* uniformIndices
) {
1535 MakeFunctionUnique("glGetUniformIndices");
1536 interface_
->GetUniformIndices(program
, uniformCount
, uniformNames
,
1540 GLint GL_BINDING_CALL
1541 MockGLInterface::Mock_glGetUniformLocation(GLuint program
, const char* name
) {
1542 MakeFunctionUnique("glGetUniformLocation");
1543 return interface_
->GetUniformLocation(program
, name
);
1546 void GL_BINDING_CALL
MockGLInterface::Mock_glGetUniformfv(GLuint program
,
1549 MakeFunctionUnique("glGetUniformfv");
1550 interface_
->GetUniformfv(program
, location
, params
);
1553 void GL_BINDING_CALL
MockGLInterface::Mock_glGetUniformiv(GLuint program
,
1556 MakeFunctionUnique("glGetUniformiv");
1557 interface_
->GetUniformiv(program
, location
, params
);
1560 void GL_BINDING_CALL
MockGLInterface::Mock_glGetUniformuiv(GLuint program
,
1563 MakeFunctionUnique("glGetUniformuiv");
1564 interface_
->GetUniformuiv(program
, location
, params
);
1567 void GL_BINDING_CALL
1568 MockGLInterface::Mock_glGetVertexAttribPointerv(GLuint index
,
1571 MakeFunctionUnique("glGetVertexAttribPointerv");
1572 interface_
->GetVertexAttribPointerv(index
, pname
, pointer
);
1575 void GL_BINDING_CALL
1576 MockGLInterface::Mock_glGetVertexAttribfv(GLuint index
,
1579 MakeFunctionUnique("glGetVertexAttribfv");
1580 interface_
->GetVertexAttribfv(index
, pname
, params
);
1583 void GL_BINDING_CALL
MockGLInterface::Mock_glGetVertexAttribiv(GLuint index
,
1586 MakeFunctionUnique("glGetVertexAttribiv");
1587 interface_
->GetVertexAttribiv(index
, pname
, params
);
1590 void GL_BINDING_CALL
MockGLInterface::Mock_glHint(GLenum target
, GLenum mode
) {
1591 MakeFunctionUnique("glHint");
1592 interface_
->Hint(target
, mode
);
1595 void GL_BINDING_CALL
1596 MockGLInterface::Mock_glInsertEventMarkerEXT(GLsizei length
,
1597 const char* marker
) {
1598 MakeFunctionUnique("glInsertEventMarkerEXT");
1599 interface_
->InsertEventMarkerEXT(length
, marker
);
1602 void GL_BINDING_CALL
1603 MockGLInterface::Mock_glInvalidateFramebuffer(GLenum target
,
1604 GLsizei numAttachments
,
1605 const GLenum
* attachments
) {
1606 MakeFunctionUnique("glInvalidateFramebuffer");
1607 interface_
->InvalidateFramebuffer(target
, numAttachments
, attachments
);
1610 void GL_BINDING_CALL
1611 MockGLInterface::Mock_glInvalidateSubFramebuffer(GLenum target
,
1612 GLsizei numAttachments
,
1613 const GLenum
* attachments
,
1618 MakeFunctionUnique("glInvalidateSubFramebuffer");
1619 interface_
->InvalidateSubFramebuffer(target
, numAttachments
, attachments
, x
,
1623 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glIsBuffer(GLuint buffer
) {
1624 MakeFunctionUnique("glIsBuffer");
1625 return interface_
->IsBuffer(buffer
);
1628 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glIsEnabled(GLenum cap
) {
1629 MakeFunctionUnique("glIsEnabled");
1630 return interface_
->IsEnabled(cap
);
1633 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glIsFenceAPPLE(GLuint fence
) {
1634 MakeFunctionUnique("glIsFenceAPPLE");
1635 return interface_
->IsFenceAPPLE(fence
);
1638 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glIsFenceNV(GLuint fence
) {
1639 MakeFunctionUnique("glIsFenceNV");
1640 return interface_
->IsFenceNV(fence
);
1643 GLboolean GL_BINDING_CALL
1644 MockGLInterface::Mock_glIsFramebuffer(GLuint framebuffer
) {
1645 MakeFunctionUnique("glIsFramebuffer");
1646 return interface_
->IsFramebufferEXT(framebuffer
);
1649 GLboolean GL_BINDING_CALL
1650 MockGLInterface::Mock_glIsFramebufferEXT(GLuint framebuffer
) {
1651 MakeFunctionUnique("glIsFramebufferEXT");
1652 return interface_
->IsFramebufferEXT(framebuffer
);
1655 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glIsPathNV(GLuint path
) {
1656 MakeFunctionUnique("glIsPathNV");
1657 return interface_
->IsPathNV(path
);
1660 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glIsProgram(GLuint program
) {
1661 MakeFunctionUnique("glIsProgram");
1662 return interface_
->IsProgram(program
);
1665 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glIsQuery(GLuint query
) {
1666 MakeFunctionUnique("glIsQuery");
1667 return interface_
->IsQuery(query
);
1670 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glIsQueryARB(GLuint query
) {
1671 MakeFunctionUnique("glIsQueryARB");
1672 return interface_
->IsQuery(query
);
1675 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glIsQueryEXT(GLuint query
) {
1676 MakeFunctionUnique("glIsQueryEXT");
1677 return interface_
->IsQuery(query
);
1680 GLboolean GL_BINDING_CALL
1681 MockGLInterface::Mock_glIsRenderbuffer(GLuint renderbuffer
) {
1682 MakeFunctionUnique("glIsRenderbuffer");
1683 return interface_
->IsRenderbufferEXT(renderbuffer
);
1686 GLboolean GL_BINDING_CALL
1687 MockGLInterface::Mock_glIsRenderbufferEXT(GLuint renderbuffer
) {
1688 MakeFunctionUnique("glIsRenderbufferEXT");
1689 return interface_
->IsRenderbufferEXT(renderbuffer
);
1692 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glIsSampler(GLuint sampler
) {
1693 MakeFunctionUnique("glIsSampler");
1694 return interface_
->IsSampler(sampler
);
1697 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glIsShader(GLuint shader
) {
1698 MakeFunctionUnique("glIsShader");
1699 return interface_
->IsShader(shader
);
1702 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glIsSync(GLsync sync
) {
1703 MakeFunctionUnique("glIsSync");
1704 return interface_
->IsSync(sync
);
1707 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glIsTexture(GLuint texture
) {
1708 MakeFunctionUnique("glIsTexture");
1709 return interface_
->IsTexture(texture
);
1712 GLboolean GL_BINDING_CALL
1713 MockGLInterface::Mock_glIsTransformFeedback(GLuint id
) {
1714 MakeFunctionUnique("glIsTransformFeedback");
1715 return interface_
->IsTransformFeedback(id
);
1718 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glIsVertexArray(GLuint array
) {
1719 MakeFunctionUnique("glIsVertexArray");
1720 return interface_
->IsVertexArrayOES(array
);
1723 GLboolean GL_BINDING_CALL
1724 MockGLInterface::Mock_glIsVertexArrayAPPLE(GLuint array
) {
1725 MakeFunctionUnique("glIsVertexArrayAPPLE");
1726 return interface_
->IsVertexArrayOES(array
);
1729 GLboolean GL_BINDING_CALL
1730 MockGLInterface::Mock_glIsVertexArrayOES(GLuint array
) {
1731 MakeFunctionUnique("glIsVertexArrayOES");
1732 return interface_
->IsVertexArrayOES(array
);
1735 void GL_BINDING_CALL
MockGLInterface::Mock_glLineWidth(GLfloat width
) {
1736 MakeFunctionUnique("glLineWidth");
1737 interface_
->LineWidth(width
);
1740 void GL_BINDING_CALL
MockGLInterface::Mock_glLinkProgram(GLuint program
) {
1741 MakeFunctionUnique("glLinkProgram");
1742 interface_
->LinkProgram(program
);
1745 void* GL_BINDING_CALL
MockGLInterface::Mock_glMapBuffer(GLenum target
,
1747 MakeFunctionUnique("glMapBuffer");
1748 return interface_
->MapBuffer(target
, access
);
1751 void* GL_BINDING_CALL
MockGLInterface::Mock_glMapBufferOES(GLenum target
,
1753 MakeFunctionUnique("glMapBufferOES");
1754 return interface_
->MapBuffer(target
, access
);
1757 void* GL_BINDING_CALL
1758 MockGLInterface::Mock_glMapBufferRange(GLenum target
,
1761 GLbitfield access
) {
1762 MakeFunctionUnique("glMapBufferRange");
1763 return interface_
->MapBufferRange(target
, offset
, length
, access
);
1766 void* GL_BINDING_CALL
1767 MockGLInterface::Mock_glMapBufferRangeEXT(GLenum target
,
1770 GLbitfield access
) {
1771 MakeFunctionUnique("glMapBufferRangeEXT");
1772 return interface_
->MapBufferRange(target
, offset
, length
, access
);
1775 void GL_BINDING_CALL
1776 MockGLInterface::Mock_glMatrixLoadIdentityEXT(GLenum matrixMode
) {
1777 MakeFunctionUnique("glMatrixLoadIdentityEXT");
1778 interface_
->MatrixLoadIdentityEXT(matrixMode
);
1781 void GL_BINDING_CALL
MockGLInterface::Mock_glMatrixLoadfEXT(GLenum matrixMode
,
1783 MakeFunctionUnique("glMatrixLoadfEXT");
1784 interface_
->MatrixLoadfEXT(matrixMode
, m
);
1787 void GL_BINDING_CALL
1788 MockGLInterface::Mock_glPathCommandsNV(GLuint path
,
1789 GLsizei numCommands
,
1790 const GLubyte
* commands
,
1793 const GLvoid
* coords
) {
1794 MakeFunctionUnique("glPathCommandsNV");
1795 interface_
->PathCommandsNV(path
, numCommands
, commands
, numCoords
, coordType
,
1799 void GL_BINDING_CALL
MockGLInterface::Mock_glPathParameterfNV(GLuint path
,
1802 MakeFunctionUnique("glPathParameterfNV");
1803 interface_
->PathParameterfNV(path
, pname
, value
);
1806 void GL_BINDING_CALL
MockGLInterface::Mock_glPathParameteriNV(GLuint path
,
1809 MakeFunctionUnique("glPathParameteriNV");
1810 interface_
->PathParameteriNV(path
, pname
, value
);
1813 void GL_BINDING_CALL
MockGLInterface::Mock_glPathStencilFuncNV(GLenum func
,
1816 MakeFunctionUnique("glPathStencilFuncNV");
1817 interface_
->PathStencilFuncNV(func
, ref
, mask
);
1820 void GL_BINDING_CALL
MockGLInterface::Mock_glPauseTransformFeedback(void) {
1821 MakeFunctionUnique("glPauseTransformFeedback");
1822 interface_
->PauseTransformFeedback();
1825 void GL_BINDING_CALL
MockGLInterface::Mock_glPixelStorei(GLenum pname
,
1827 MakeFunctionUnique("glPixelStorei");
1828 interface_
->PixelStorei(pname
, param
);
1831 void GL_BINDING_CALL
MockGLInterface::Mock_glPointParameteri(GLenum pname
,
1833 MakeFunctionUnique("glPointParameteri");
1834 interface_
->PointParameteri(pname
, param
);
1837 void GL_BINDING_CALL
MockGLInterface::Mock_glPolygonOffset(GLfloat factor
,
1839 MakeFunctionUnique("glPolygonOffset");
1840 interface_
->PolygonOffset(factor
, units
);
1843 void GL_BINDING_CALL
MockGLInterface::Mock_glPopGroupMarkerEXT(void) {
1844 MakeFunctionUnique("glPopGroupMarkerEXT");
1845 interface_
->PopGroupMarkerEXT();
1848 void GL_BINDING_CALL
MockGLInterface::Mock_glProgramBinary(GLuint program
,
1849 GLenum binaryFormat
,
1850 const GLvoid
* binary
,
1852 MakeFunctionUnique("glProgramBinary");
1853 interface_
->ProgramBinary(program
, binaryFormat
, binary
, length
);
1856 void GL_BINDING_CALL
1857 MockGLInterface::Mock_glProgramBinaryOES(GLuint program
,
1858 GLenum binaryFormat
,
1859 const GLvoid
* binary
,
1861 MakeFunctionUnique("glProgramBinaryOES");
1862 interface_
->ProgramBinary(program
, binaryFormat
, binary
, length
);
1865 void GL_BINDING_CALL
MockGLInterface::Mock_glProgramParameteri(GLuint program
,
1868 MakeFunctionUnique("glProgramParameteri");
1869 interface_
->ProgramParameteri(program
, pname
, value
);
1872 void GL_BINDING_CALL
1873 MockGLInterface::Mock_glPushGroupMarkerEXT(GLsizei length
, const char* marker
) {
1874 MakeFunctionUnique("glPushGroupMarkerEXT");
1875 interface_
->PushGroupMarkerEXT(length
, marker
);
1878 void GL_BINDING_CALL
MockGLInterface::Mock_glQueryCounter(GLuint id
,
1880 MakeFunctionUnique("glQueryCounter");
1881 interface_
->QueryCounter(id
, target
);
1884 void GL_BINDING_CALL
MockGLInterface::Mock_glQueryCounterEXT(GLuint id
,
1886 MakeFunctionUnique("glQueryCounterEXT");
1887 interface_
->QueryCounter(id
, target
);
1890 void GL_BINDING_CALL
MockGLInterface::Mock_glReadBuffer(GLenum src
) {
1891 MakeFunctionUnique("glReadBuffer");
1892 interface_
->ReadBuffer(src
);
1895 void GL_BINDING_CALL
MockGLInterface::Mock_glReadPixels(GLint x
,
1902 MakeFunctionUnique("glReadPixels");
1903 interface_
->ReadPixels(x
, y
, width
, height
, format
, type
, pixels
);
1906 void GL_BINDING_CALL
MockGLInterface::Mock_glReleaseShaderCompiler(void) {
1907 MakeFunctionUnique("glReleaseShaderCompiler");
1908 interface_
->ReleaseShaderCompiler();
1911 void GL_BINDING_CALL
1912 MockGLInterface::Mock_glRenderbufferStorage(GLenum target
,
1913 GLenum internalformat
,
1916 MakeFunctionUnique("glRenderbufferStorage");
1917 interface_
->RenderbufferStorageEXT(target
, internalformat
, width
, height
);
1920 void GL_BINDING_CALL
1921 MockGLInterface::Mock_glRenderbufferStorageEXT(GLenum target
,
1922 GLenum internalformat
,
1925 MakeFunctionUnique("glRenderbufferStorageEXT");
1926 interface_
->RenderbufferStorageEXT(target
, internalformat
, width
, height
);
1929 void GL_BINDING_CALL
1930 MockGLInterface::Mock_glRenderbufferStorageMultisample(GLenum target
,
1932 GLenum internalformat
,
1935 MakeFunctionUnique("glRenderbufferStorageMultisample");
1936 interface_
->RenderbufferStorageMultisample(target
, samples
, internalformat
,
1940 void GL_BINDING_CALL
1941 MockGLInterface::Mock_glRenderbufferStorageMultisampleANGLE(
1944 GLenum internalformat
,
1947 MakeFunctionUnique("glRenderbufferStorageMultisampleANGLE");
1948 interface_
->RenderbufferStorageMultisampleANGLE(
1949 target
, samples
, internalformat
, width
, height
);
1952 void GL_BINDING_CALL
1953 MockGLInterface::Mock_glRenderbufferStorageMultisampleEXT(GLenum target
,
1955 GLenum internalformat
,
1958 MakeFunctionUnique("glRenderbufferStorageMultisampleEXT");
1959 interface_
->RenderbufferStorageMultisampleEXT(target
, samples
, internalformat
,
1963 void GL_BINDING_CALL
1964 MockGLInterface::Mock_glRenderbufferStorageMultisampleIMG(GLenum target
,
1966 GLenum internalformat
,
1969 MakeFunctionUnique("glRenderbufferStorageMultisampleIMG");
1970 interface_
->RenderbufferStorageMultisampleIMG(target
, samples
, internalformat
,
1974 void GL_BINDING_CALL
MockGLInterface::Mock_glResumeTransformFeedback(void) {
1975 MakeFunctionUnique("glResumeTransformFeedback");
1976 interface_
->ResumeTransformFeedback();
1979 void GL_BINDING_CALL
MockGLInterface::Mock_glSampleCoverage(GLclampf value
,
1981 MakeFunctionUnique("glSampleCoverage");
1982 interface_
->SampleCoverage(value
, invert
);
1985 void GL_BINDING_CALL
MockGLInterface::Mock_glSamplerParameterf(GLuint sampler
,
1988 MakeFunctionUnique("glSamplerParameterf");
1989 interface_
->SamplerParameterf(sampler
, pname
, param
);
1992 void GL_BINDING_CALL
1993 MockGLInterface::Mock_glSamplerParameterfv(GLuint sampler
,
1995 const GLfloat
* params
) {
1996 MakeFunctionUnique("glSamplerParameterfv");
1997 interface_
->SamplerParameterfv(sampler
, pname
, params
);
2000 void GL_BINDING_CALL
MockGLInterface::Mock_glSamplerParameteri(GLuint sampler
,
2003 MakeFunctionUnique("glSamplerParameteri");
2004 interface_
->SamplerParameteri(sampler
, pname
, param
);
2007 void GL_BINDING_CALL
2008 MockGLInterface::Mock_glSamplerParameteriv(GLuint sampler
,
2010 const GLint
* params
) {
2011 MakeFunctionUnique("glSamplerParameteriv");
2012 interface_
->SamplerParameteriv(sampler
, pname
, params
);
2015 void GL_BINDING_CALL
MockGLInterface::Mock_glScissor(GLint x
,
2019 MakeFunctionUnique("glScissor");
2020 interface_
->Scissor(x
, y
, width
, height
);
2023 void GL_BINDING_CALL
MockGLInterface::Mock_glSetFenceAPPLE(GLuint fence
) {
2024 MakeFunctionUnique("glSetFenceAPPLE");
2025 interface_
->SetFenceAPPLE(fence
);
2028 void GL_BINDING_CALL
MockGLInterface::Mock_glSetFenceNV(GLuint fence
,
2030 MakeFunctionUnique("glSetFenceNV");
2031 interface_
->SetFenceNV(fence
, condition
);
2034 void GL_BINDING_CALL
MockGLInterface::Mock_glShaderBinary(GLsizei n
,
2035 const GLuint
* shaders
,
2036 GLenum binaryformat
,
2039 MakeFunctionUnique("glShaderBinary");
2040 interface_
->ShaderBinary(n
, shaders
, binaryformat
, binary
, length
);
2043 void GL_BINDING_CALL
2044 MockGLInterface::Mock_glShaderSource(GLuint shader
,
2046 const char* const* str
,
2047 const GLint
* length
) {
2048 MakeFunctionUnique("glShaderSource");
2049 interface_
->ShaderSource(shader
, count
, str
, length
);
2052 void GL_BINDING_CALL
MockGLInterface::Mock_glStencilFillPathNV(GLuint path
,
2055 MakeFunctionUnique("glStencilFillPathNV");
2056 interface_
->StencilFillPathNV(path
, fillMode
, mask
);
2059 void GL_BINDING_CALL
MockGLInterface::Mock_glStencilFunc(GLenum func
,
2062 MakeFunctionUnique("glStencilFunc");
2063 interface_
->StencilFunc(func
, ref
, mask
);
2066 void GL_BINDING_CALL
MockGLInterface::Mock_glStencilFuncSeparate(GLenum face
,
2070 MakeFunctionUnique("glStencilFuncSeparate");
2071 interface_
->StencilFuncSeparate(face
, func
, ref
, mask
);
2074 void GL_BINDING_CALL
MockGLInterface::Mock_glStencilMask(GLuint mask
) {
2075 MakeFunctionUnique("glStencilMask");
2076 interface_
->StencilMask(mask
);
2079 void GL_BINDING_CALL
MockGLInterface::Mock_glStencilMaskSeparate(GLenum face
,
2081 MakeFunctionUnique("glStencilMaskSeparate");
2082 interface_
->StencilMaskSeparate(face
, mask
);
2085 void GL_BINDING_CALL
MockGLInterface::Mock_glStencilOp(GLenum fail
,
2088 MakeFunctionUnique("glStencilOp");
2089 interface_
->StencilOp(fail
, zfail
, zpass
);
2092 void GL_BINDING_CALL
MockGLInterface::Mock_glStencilOpSeparate(GLenum face
,
2096 MakeFunctionUnique("glStencilOpSeparate");
2097 interface_
->StencilOpSeparate(face
, fail
, zfail
, zpass
);
2100 void GL_BINDING_CALL
2101 MockGLInterface::Mock_glStencilStrokePathNV(GLuint path
,
2104 MakeFunctionUnique("glStencilStrokePathNV");
2105 interface_
->StencilStrokePathNV(path
, reference
, mask
);
2108 void GL_BINDING_CALL
2109 MockGLInterface::Mock_glStencilThenCoverFillPathNV(GLuint path
,
2113 MakeFunctionUnique("glStencilThenCoverFillPathNV");
2114 interface_
->StencilThenCoverFillPathNV(path
, fillMode
, mask
, coverMode
);
2117 void GL_BINDING_CALL
2118 MockGLInterface::Mock_glStencilThenCoverStrokePathNV(GLuint path
,
2122 MakeFunctionUnique("glStencilThenCoverStrokePathNV");
2123 interface_
->StencilThenCoverStrokePathNV(path
, reference
, mask
, coverMode
);
2126 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glTestFenceAPPLE(GLuint fence
) {
2127 MakeFunctionUnique("glTestFenceAPPLE");
2128 return interface_
->TestFenceAPPLE(fence
);
2131 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glTestFenceNV(GLuint fence
) {
2132 MakeFunctionUnique("glTestFenceNV");
2133 return interface_
->TestFenceNV(fence
);
2136 void GL_BINDING_CALL
MockGLInterface::Mock_glTexImage2D(GLenum target
,
2138 GLint internalformat
,
2144 const void* pixels
) {
2145 MakeFunctionUnique("glTexImage2D");
2146 interface_
->TexImage2D(target
, level
, internalformat
, width
, height
, border
,
2147 format
, type
, pixels
);
2150 void GL_BINDING_CALL
MockGLInterface::Mock_glTexImage3D(GLenum target
,
2152 GLint internalformat
,
2159 const void* pixels
) {
2160 MakeFunctionUnique("glTexImage3D");
2161 interface_
->TexImage3D(target
, level
, internalformat
, width
, height
, depth
,
2162 border
, format
, type
, pixels
);
2165 void GL_BINDING_CALL
MockGLInterface::Mock_glTexParameterf(GLenum target
,
2168 MakeFunctionUnique("glTexParameterf");
2169 interface_
->TexParameterf(target
, pname
, param
);
2172 void GL_BINDING_CALL
2173 MockGLInterface::Mock_glTexParameterfv(GLenum target
,
2175 const GLfloat
* params
) {
2176 MakeFunctionUnique("glTexParameterfv");
2177 interface_
->TexParameterfv(target
, pname
, params
);
2180 void GL_BINDING_CALL
MockGLInterface::Mock_glTexParameteri(GLenum target
,
2183 MakeFunctionUnique("glTexParameteri");
2184 interface_
->TexParameteri(target
, pname
, param
);
2187 void GL_BINDING_CALL
2188 MockGLInterface::Mock_glTexParameteriv(GLenum target
,
2190 const GLint
* params
) {
2191 MakeFunctionUnique("glTexParameteriv");
2192 interface_
->TexParameteriv(target
, pname
, params
);
2195 void GL_BINDING_CALL
MockGLInterface::Mock_glTexStorage2D(GLenum target
,
2197 GLenum internalformat
,
2200 MakeFunctionUnique("glTexStorage2D");
2201 interface_
->TexStorage2DEXT(target
, levels
, internalformat
, width
, height
);
2204 void GL_BINDING_CALL
2205 MockGLInterface::Mock_glTexStorage2DEXT(GLenum target
,
2207 GLenum internalformat
,
2210 MakeFunctionUnique("glTexStorage2DEXT");
2211 interface_
->TexStorage2DEXT(target
, levels
, internalformat
, width
, height
);
2214 void GL_BINDING_CALL
MockGLInterface::Mock_glTexStorage3D(GLenum target
,
2216 GLenum internalformat
,
2220 MakeFunctionUnique("glTexStorage3D");
2221 interface_
->TexStorage3D(target
, levels
, internalformat
, width
, height
,
2225 void GL_BINDING_CALL
MockGLInterface::Mock_glTexSubImage2D(GLenum target
,
2233 const void* pixels
) {
2234 MakeFunctionUnique("glTexSubImage2D");
2235 interface_
->TexSubImage2D(target
, level
, xoffset
, yoffset
, width
, height
,
2236 format
, type
, pixels
);
2239 void GL_BINDING_CALL
MockGLInterface::Mock_glTexSubImage3D(GLenum target
,
2249 const void* pixels
) {
2250 MakeFunctionUnique("glTexSubImage3D");
2251 interface_
->TexSubImage3D(target
, level
, xoffset
, yoffset
, zoffset
, width
,
2252 height
, depth
, format
, type
, pixels
);
2255 void GL_BINDING_CALL
2256 MockGLInterface::Mock_glTransformFeedbackVaryings(GLuint program
,
2258 const char* const* varyings
,
2259 GLenum bufferMode
) {
2260 MakeFunctionUnique("glTransformFeedbackVaryings");
2261 interface_
->TransformFeedbackVaryings(program
, count
, varyings
, bufferMode
);
2264 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform1f(GLint location
,
2266 MakeFunctionUnique("glUniform1f");
2267 interface_
->Uniform1f(location
, x
);
2270 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform1fv(GLint location
,
2273 MakeFunctionUnique("glUniform1fv");
2274 interface_
->Uniform1fv(location
, count
, v
);
2277 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform1i(GLint location
,
2279 MakeFunctionUnique("glUniform1i");
2280 interface_
->Uniform1i(location
, x
);
2283 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform1iv(GLint location
,
2286 MakeFunctionUnique("glUniform1iv");
2287 interface_
->Uniform1iv(location
, count
, v
);
2290 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform1ui(GLint location
,
2292 MakeFunctionUnique("glUniform1ui");
2293 interface_
->Uniform1ui(location
, v0
);
2296 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform1uiv(GLint location
,
2299 MakeFunctionUnique("glUniform1uiv");
2300 interface_
->Uniform1uiv(location
, count
, v
);
2303 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform2f(GLint location
,
2306 MakeFunctionUnique("glUniform2f");
2307 interface_
->Uniform2f(location
, x
, y
);
2310 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform2fv(GLint location
,
2313 MakeFunctionUnique("glUniform2fv");
2314 interface_
->Uniform2fv(location
, count
, v
);
2317 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform2i(GLint location
,
2320 MakeFunctionUnique("glUniform2i");
2321 interface_
->Uniform2i(location
, x
, y
);
2324 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform2iv(GLint location
,
2327 MakeFunctionUnique("glUniform2iv");
2328 interface_
->Uniform2iv(location
, count
, v
);
2331 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform2ui(GLint location
,
2334 MakeFunctionUnique("glUniform2ui");
2335 interface_
->Uniform2ui(location
, v0
, v1
);
2338 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform2uiv(GLint location
,
2341 MakeFunctionUnique("glUniform2uiv");
2342 interface_
->Uniform2uiv(location
, count
, v
);
2345 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform3f(GLint location
,
2349 MakeFunctionUnique("glUniform3f");
2350 interface_
->Uniform3f(location
, x
, y
, z
);
2353 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform3fv(GLint location
,
2356 MakeFunctionUnique("glUniform3fv");
2357 interface_
->Uniform3fv(location
, count
, v
);
2360 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform3i(GLint location
,
2364 MakeFunctionUnique("glUniform3i");
2365 interface_
->Uniform3i(location
, x
, y
, z
);
2368 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform3iv(GLint location
,
2371 MakeFunctionUnique("glUniform3iv");
2372 interface_
->Uniform3iv(location
, count
, v
);
2375 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform3ui(GLint location
,
2379 MakeFunctionUnique("glUniform3ui");
2380 interface_
->Uniform3ui(location
, v0
, v1
, v2
);
2383 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform3uiv(GLint location
,
2386 MakeFunctionUnique("glUniform3uiv");
2387 interface_
->Uniform3uiv(location
, count
, v
);
2390 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform4f(GLint location
,
2395 MakeFunctionUnique("glUniform4f");
2396 interface_
->Uniform4f(location
, x
, y
, z
, w
);
2399 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform4fv(GLint location
,
2402 MakeFunctionUnique("glUniform4fv");
2403 interface_
->Uniform4fv(location
, count
, v
);
2406 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform4i(GLint location
,
2411 MakeFunctionUnique("glUniform4i");
2412 interface_
->Uniform4i(location
, x
, y
, z
, w
);
2415 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform4iv(GLint location
,
2418 MakeFunctionUnique("glUniform4iv");
2419 interface_
->Uniform4iv(location
, count
, v
);
2422 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform4ui(GLint location
,
2427 MakeFunctionUnique("glUniform4ui");
2428 interface_
->Uniform4ui(location
, v0
, v1
, v2
, v3
);
2431 void GL_BINDING_CALL
MockGLInterface::Mock_glUniform4uiv(GLint location
,
2434 MakeFunctionUnique("glUniform4uiv");
2435 interface_
->Uniform4uiv(location
, count
, v
);
2438 void GL_BINDING_CALL
2439 MockGLInterface::Mock_glUniformBlockBinding(GLuint program
,
2440 GLuint uniformBlockIndex
,
2441 GLuint uniformBlockBinding
) {
2442 MakeFunctionUnique("glUniformBlockBinding");
2443 interface_
->UniformBlockBinding(program
, uniformBlockIndex
,
2444 uniformBlockBinding
);
2447 void GL_BINDING_CALL
2448 MockGLInterface::Mock_glUniformMatrix2fv(GLint location
,
2450 GLboolean transpose
,
2451 const GLfloat
* value
) {
2452 MakeFunctionUnique("glUniformMatrix2fv");
2453 interface_
->UniformMatrix2fv(location
, count
, transpose
, value
);
2456 void GL_BINDING_CALL
2457 MockGLInterface::Mock_glUniformMatrix2x3fv(GLint location
,
2459 GLboolean transpose
,
2460 const GLfloat
* value
) {
2461 MakeFunctionUnique("glUniformMatrix2x3fv");
2462 interface_
->UniformMatrix2x3fv(location
, count
, transpose
, value
);
2465 void GL_BINDING_CALL
2466 MockGLInterface::Mock_glUniformMatrix2x4fv(GLint location
,
2468 GLboolean transpose
,
2469 const GLfloat
* value
) {
2470 MakeFunctionUnique("glUniformMatrix2x4fv");
2471 interface_
->UniformMatrix2x4fv(location
, count
, transpose
, value
);
2474 void GL_BINDING_CALL
2475 MockGLInterface::Mock_glUniformMatrix3fv(GLint location
,
2477 GLboolean transpose
,
2478 const GLfloat
* value
) {
2479 MakeFunctionUnique("glUniformMatrix3fv");
2480 interface_
->UniformMatrix3fv(location
, count
, transpose
, value
);
2483 void GL_BINDING_CALL
2484 MockGLInterface::Mock_glUniformMatrix3x2fv(GLint location
,
2486 GLboolean transpose
,
2487 const GLfloat
* value
) {
2488 MakeFunctionUnique("glUniformMatrix3x2fv");
2489 interface_
->UniformMatrix3x2fv(location
, count
, transpose
, value
);
2492 void GL_BINDING_CALL
2493 MockGLInterface::Mock_glUniformMatrix3x4fv(GLint location
,
2495 GLboolean transpose
,
2496 const GLfloat
* value
) {
2497 MakeFunctionUnique("glUniformMatrix3x4fv");
2498 interface_
->UniformMatrix3x4fv(location
, count
, transpose
, value
);
2501 void GL_BINDING_CALL
2502 MockGLInterface::Mock_glUniformMatrix4fv(GLint location
,
2504 GLboolean transpose
,
2505 const GLfloat
* value
) {
2506 MakeFunctionUnique("glUniformMatrix4fv");
2507 interface_
->UniformMatrix4fv(location
, count
, transpose
, value
);
2510 void GL_BINDING_CALL
2511 MockGLInterface::Mock_glUniformMatrix4x2fv(GLint location
,
2513 GLboolean transpose
,
2514 const GLfloat
* value
) {
2515 MakeFunctionUnique("glUniformMatrix4x2fv");
2516 interface_
->UniformMatrix4x2fv(location
, count
, transpose
, value
);
2519 void GL_BINDING_CALL
2520 MockGLInterface::Mock_glUniformMatrix4x3fv(GLint location
,
2522 GLboolean transpose
,
2523 const GLfloat
* value
) {
2524 MakeFunctionUnique("glUniformMatrix4x3fv");
2525 interface_
->UniformMatrix4x3fv(location
, count
, transpose
, value
);
2528 GLboolean GL_BINDING_CALL
MockGLInterface::Mock_glUnmapBuffer(GLenum target
) {
2529 MakeFunctionUnique("glUnmapBuffer");
2530 return interface_
->UnmapBuffer(target
);
2533 GLboolean GL_BINDING_CALL
2534 MockGLInterface::Mock_glUnmapBufferOES(GLenum target
) {
2535 MakeFunctionUnique("glUnmapBufferOES");
2536 return interface_
->UnmapBuffer(target
);
2539 void GL_BINDING_CALL
MockGLInterface::Mock_glUseProgram(GLuint program
) {
2540 MakeFunctionUnique("glUseProgram");
2541 interface_
->UseProgram(program
);
2544 void GL_BINDING_CALL
MockGLInterface::Mock_glValidateProgram(GLuint program
) {
2545 MakeFunctionUnique("glValidateProgram");
2546 interface_
->ValidateProgram(program
);
2549 void GL_BINDING_CALL
MockGLInterface::Mock_glVertexAttrib1f(GLuint indx
,
2551 MakeFunctionUnique("glVertexAttrib1f");
2552 interface_
->VertexAttrib1f(indx
, x
);
2555 void GL_BINDING_CALL
2556 MockGLInterface::Mock_glVertexAttrib1fv(GLuint indx
, const GLfloat
* values
) {
2557 MakeFunctionUnique("glVertexAttrib1fv");
2558 interface_
->VertexAttrib1fv(indx
, values
);
2561 void GL_BINDING_CALL
MockGLInterface::Mock_glVertexAttrib2f(GLuint indx
,
2564 MakeFunctionUnique("glVertexAttrib2f");
2565 interface_
->VertexAttrib2f(indx
, x
, y
);
2568 void GL_BINDING_CALL
2569 MockGLInterface::Mock_glVertexAttrib2fv(GLuint indx
, const GLfloat
* values
) {
2570 MakeFunctionUnique("glVertexAttrib2fv");
2571 interface_
->VertexAttrib2fv(indx
, values
);
2574 void GL_BINDING_CALL
MockGLInterface::Mock_glVertexAttrib3f(GLuint indx
,
2578 MakeFunctionUnique("glVertexAttrib3f");
2579 interface_
->VertexAttrib3f(indx
, x
, y
, z
);
2582 void GL_BINDING_CALL
2583 MockGLInterface::Mock_glVertexAttrib3fv(GLuint indx
, const GLfloat
* values
) {
2584 MakeFunctionUnique("glVertexAttrib3fv");
2585 interface_
->VertexAttrib3fv(indx
, values
);
2588 void GL_BINDING_CALL
MockGLInterface::Mock_glVertexAttrib4f(GLuint indx
,
2593 MakeFunctionUnique("glVertexAttrib4f");
2594 interface_
->VertexAttrib4f(indx
, x
, y
, z
, w
);
2597 void GL_BINDING_CALL
2598 MockGLInterface::Mock_glVertexAttrib4fv(GLuint indx
, const GLfloat
* values
) {
2599 MakeFunctionUnique("glVertexAttrib4fv");
2600 interface_
->VertexAttrib4fv(indx
, values
);
2603 void GL_BINDING_CALL
2604 MockGLInterface::Mock_glVertexAttribDivisor(GLuint index
, GLuint divisor
) {
2605 MakeFunctionUnique("glVertexAttribDivisor");
2606 interface_
->VertexAttribDivisorANGLE(index
, divisor
);
2609 void GL_BINDING_CALL
2610 MockGLInterface::Mock_glVertexAttribDivisorANGLE(GLuint index
, GLuint divisor
) {
2611 MakeFunctionUnique("glVertexAttribDivisorANGLE");
2612 interface_
->VertexAttribDivisorANGLE(index
, divisor
);
2615 void GL_BINDING_CALL
2616 MockGLInterface::Mock_glVertexAttribDivisorARB(GLuint index
, GLuint divisor
) {
2617 MakeFunctionUnique("glVertexAttribDivisorARB");
2618 interface_
->VertexAttribDivisorANGLE(index
, divisor
);
2621 void GL_BINDING_CALL
MockGLInterface::Mock_glVertexAttribI4i(GLuint indx
,
2626 MakeFunctionUnique("glVertexAttribI4i");
2627 interface_
->VertexAttribI4i(indx
, x
, y
, z
, w
);
2630 void GL_BINDING_CALL
2631 MockGLInterface::Mock_glVertexAttribI4iv(GLuint indx
, const GLint
* values
) {
2632 MakeFunctionUnique("glVertexAttribI4iv");
2633 interface_
->VertexAttribI4iv(indx
, values
);
2636 void GL_BINDING_CALL
MockGLInterface::Mock_glVertexAttribI4ui(GLuint indx
,
2641 MakeFunctionUnique("glVertexAttribI4ui");
2642 interface_
->VertexAttribI4ui(indx
, x
, y
, z
, w
);
2645 void GL_BINDING_CALL
2646 MockGLInterface::Mock_glVertexAttribI4uiv(GLuint indx
, const GLuint
* values
) {
2647 MakeFunctionUnique("glVertexAttribI4uiv");
2648 interface_
->VertexAttribI4uiv(indx
, values
);
2651 void GL_BINDING_CALL
2652 MockGLInterface::Mock_glVertexAttribIPointer(GLuint indx
,
2657 MakeFunctionUnique("glVertexAttribIPointer");
2658 interface_
->VertexAttribIPointer(indx
, size
, type
, stride
, ptr
);
2661 void GL_BINDING_CALL
2662 MockGLInterface::Mock_glVertexAttribPointer(GLuint indx
,
2665 GLboolean normalized
,
2668 MakeFunctionUnique("glVertexAttribPointer");
2669 interface_
->VertexAttribPointer(indx
, size
, type
, normalized
, stride
, ptr
);
2672 void GL_BINDING_CALL
MockGLInterface::Mock_glViewport(GLint x
,
2676 MakeFunctionUnique("glViewport");
2677 interface_
->Viewport(x
, y
, width
, height
);
2680 GLenum GL_BINDING_CALL
MockGLInterface::Mock_glWaitSync(GLsync sync
,
2683 MakeFunctionUnique("glWaitSync");
2684 return interface_
->WaitSync(sync
, flags
, timeout
);
2687 static void MockInvalidFunction() {
2691 void* GL_BINDING_CALL
MockGLInterface::GetGLProcAddress(const char* name
) {
2692 if (strcmp(name
, "glActiveTexture") == 0)
2693 return reinterpret_cast<void*>(Mock_glActiveTexture
);
2694 if (strcmp(name
, "glAttachShader") == 0)
2695 return reinterpret_cast<void*>(Mock_glAttachShader
);
2696 if (strcmp(name
, "glBeginQuery") == 0)
2697 return reinterpret_cast<void*>(Mock_glBeginQuery
);
2698 if (strcmp(name
, "glBeginQueryARB") == 0)
2699 return reinterpret_cast<void*>(Mock_glBeginQueryARB
);
2700 if (strcmp(name
, "glBeginQueryEXT") == 0)
2701 return reinterpret_cast<void*>(Mock_glBeginQueryEXT
);
2702 if (strcmp(name
, "glBeginTransformFeedback") == 0)
2703 return reinterpret_cast<void*>(Mock_glBeginTransformFeedback
);
2704 if (strcmp(name
, "glBindAttribLocation") == 0)
2705 return reinterpret_cast<void*>(Mock_glBindAttribLocation
);
2706 if (strcmp(name
, "glBindBuffer") == 0)
2707 return reinterpret_cast<void*>(Mock_glBindBuffer
);
2708 if (strcmp(name
, "glBindBufferBase") == 0)
2709 return reinterpret_cast<void*>(Mock_glBindBufferBase
);
2710 if (strcmp(name
, "glBindBufferRange") == 0)
2711 return reinterpret_cast<void*>(Mock_glBindBufferRange
);
2712 if (strcmp(name
, "glBindFragDataLocation") == 0)
2713 return reinterpret_cast<void*>(Mock_glBindFragDataLocation
);
2714 if (strcmp(name
, "glBindFragDataLocationIndexed") == 0)
2715 return reinterpret_cast<void*>(Mock_glBindFragDataLocationIndexed
);
2716 if (strcmp(name
, "glBindFramebuffer") == 0)
2717 return reinterpret_cast<void*>(Mock_glBindFramebuffer
);
2718 if (strcmp(name
, "glBindFramebufferEXT") == 0)
2719 return reinterpret_cast<void*>(Mock_glBindFramebufferEXT
);
2720 if (strcmp(name
, "glBindRenderbuffer") == 0)
2721 return reinterpret_cast<void*>(Mock_glBindRenderbuffer
);
2722 if (strcmp(name
, "glBindRenderbufferEXT") == 0)
2723 return reinterpret_cast<void*>(Mock_glBindRenderbufferEXT
);
2724 if (strcmp(name
, "glBindSampler") == 0)
2725 return reinterpret_cast<void*>(Mock_glBindSampler
);
2726 if (strcmp(name
, "glBindTexture") == 0)
2727 return reinterpret_cast<void*>(Mock_glBindTexture
);
2728 if (strcmp(name
, "glBindTransformFeedback") == 0)
2729 return reinterpret_cast<void*>(Mock_glBindTransformFeedback
);
2730 if (strcmp(name
, "glBindVertexArray") == 0)
2731 return reinterpret_cast<void*>(Mock_glBindVertexArray
);
2732 if (strcmp(name
, "glBindVertexArrayAPPLE") == 0)
2733 return reinterpret_cast<void*>(Mock_glBindVertexArrayAPPLE
);
2734 if (strcmp(name
, "glBindVertexArrayOES") == 0)
2735 return reinterpret_cast<void*>(Mock_glBindVertexArrayOES
);
2736 if (strcmp(name
, "glBlendBarrierKHR") == 0)
2737 return reinterpret_cast<void*>(Mock_glBlendBarrierKHR
);
2738 if (strcmp(name
, "glBlendBarrierNV") == 0)
2739 return reinterpret_cast<void*>(Mock_glBlendBarrierNV
);
2740 if (strcmp(name
, "glBlendColor") == 0)
2741 return reinterpret_cast<void*>(Mock_glBlendColor
);
2742 if (strcmp(name
, "glBlendEquation") == 0)
2743 return reinterpret_cast<void*>(Mock_glBlendEquation
);
2744 if (strcmp(name
, "glBlendEquationSeparate") == 0)
2745 return reinterpret_cast<void*>(Mock_glBlendEquationSeparate
);
2746 if (strcmp(name
, "glBlendFunc") == 0)
2747 return reinterpret_cast<void*>(Mock_glBlendFunc
);
2748 if (strcmp(name
, "glBlendFuncSeparate") == 0)
2749 return reinterpret_cast<void*>(Mock_glBlendFuncSeparate
);
2750 if (strcmp(name
, "glBlitFramebuffer") == 0)
2751 return reinterpret_cast<void*>(Mock_glBlitFramebuffer
);
2752 if (strcmp(name
, "glBlitFramebufferANGLE") == 0)
2753 return reinterpret_cast<void*>(Mock_glBlitFramebufferANGLE
);
2754 if (strcmp(name
, "glBlitFramebufferEXT") == 0)
2755 return reinterpret_cast<void*>(Mock_glBlitFramebufferEXT
);
2756 if (strcmp(name
, "glBufferData") == 0)
2757 return reinterpret_cast<void*>(Mock_glBufferData
);
2758 if (strcmp(name
, "glBufferSubData") == 0)
2759 return reinterpret_cast<void*>(Mock_glBufferSubData
);
2760 if (strcmp(name
, "glCheckFramebufferStatus") == 0)
2761 return reinterpret_cast<void*>(Mock_glCheckFramebufferStatus
);
2762 if (strcmp(name
, "glCheckFramebufferStatusEXT") == 0)
2763 return reinterpret_cast<void*>(Mock_glCheckFramebufferStatusEXT
);
2764 if (strcmp(name
, "glClear") == 0)
2765 return reinterpret_cast<void*>(Mock_glClear
);
2766 if (strcmp(name
, "glClearBufferfi") == 0)
2767 return reinterpret_cast<void*>(Mock_glClearBufferfi
);
2768 if (strcmp(name
, "glClearBufferfv") == 0)
2769 return reinterpret_cast<void*>(Mock_glClearBufferfv
);
2770 if (strcmp(name
, "glClearBufferiv") == 0)
2771 return reinterpret_cast<void*>(Mock_glClearBufferiv
);
2772 if (strcmp(name
, "glClearBufferuiv") == 0)
2773 return reinterpret_cast<void*>(Mock_glClearBufferuiv
);
2774 if (strcmp(name
, "glClearColor") == 0)
2775 return reinterpret_cast<void*>(Mock_glClearColor
);
2776 if (strcmp(name
, "glClearDepth") == 0)
2777 return reinterpret_cast<void*>(Mock_glClearDepth
);
2778 if (strcmp(name
, "glClearDepthf") == 0)
2779 return reinterpret_cast<void*>(Mock_glClearDepthf
);
2780 if (strcmp(name
, "glClearStencil") == 0)
2781 return reinterpret_cast<void*>(Mock_glClearStencil
);
2782 if (strcmp(name
, "glClientWaitSync") == 0)
2783 return reinterpret_cast<void*>(Mock_glClientWaitSync
);
2784 if (strcmp(name
, "glColorMask") == 0)
2785 return reinterpret_cast<void*>(Mock_glColorMask
);
2786 if (strcmp(name
, "glCompileShader") == 0)
2787 return reinterpret_cast<void*>(Mock_glCompileShader
);
2788 if (strcmp(name
, "glCompressedTexImage2D") == 0)
2789 return reinterpret_cast<void*>(Mock_glCompressedTexImage2D
);
2790 if (strcmp(name
, "glCompressedTexImage3D") == 0)
2791 return reinterpret_cast<void*>(Mock_glCompressedTexImage3D
);
2792 if (strcmp(name
, "glCompressedTexSubImage2D") == 0)
2793 return reinterpret_cast<void*>(Mock_glCompressedTexSubImage2D
);
2794 if (strcmp(name
, "glCompressedTexSubImage3D") == 0)
2795 return reinterpret_cast<void*>(Mock_glCompressedTexSubImage3D
);
2796 if (strcmp(name
, "glCopyBufferSubData") == 0)
2797 return reinterpret_cast<void*>(Mock_glCopyBufferSubData
);
2798 if (strcmp(name
, "glCopyTexImage2D") == 0)
2799 return reinterpret_cast<void*>(Mock_glCopyTexImage2D
);
2800 if (strcmp(name
, "glCopyTexSubImage2D") == 0)
2801 return reinterpret_cast<void*>(Mock_glCopyTexSubImage2D
);
2802 if (strcmp(name
, "glCopyTexSubImage3D") == 0)
2803 return reinterpret_cast<void*>(Mock_glCopyTexSubImage3D
);
2804 if (strcmp(name
, "glCoverFillPathNV") == 0)
2805 return reinterpret_cast<void*>(Mock_glCoverFillPathNV
);
2806 if (strcmp(name
, "glCoverStrokePathNV") == 0)
2807 return reinterpret_cast<void*>(Mock_glCoverStrokePathNV
);
2808 if (strcmp(name
, "glCreateProgram") == 0)
2809 return reinterpret_cast<void*>(Mock_glCreateProgram
);
2810 if (strcmp(name
, "glCreateShader") == 0)
2811 return reinterpret_cast<void*>(Mock_glCreateShader
);
2812 if (strcmp(name
, "glCullFace") == 0)
2813 return reinterpret_cast<void*>(Mock_glCullFace
);
2814 if (strcmp(name
, "glDeleteBuffers") == 0)
2815 return reinterpret_cast<void*>(Mock_glDeleteBuffers
);
2816 if (strcmp(name
, "glDeleteFencesAPPLE") == 0)
2817 return reinterpret_cast<void*>(Mock_glDeleteFencesAPPLE
);
2818 if (strcmp(name
, "glDeleteFencesNV") == 0)
2819 return reinterpret_cast<void*>(Mock_glDeleteFencesNV
);
2820 if (strcmp(name
, "glDeleteFramebuffers") == 0)
2821 return reinterpret_cast<void*>(Mock_glDeleteFramebuffers
);
2822 if (strcmp(name
, "glDeleteFramebuffersEXT") == 0)
2823 return reinterpret_cast<void*>(Mock_glDeleteFramebuffersEXT
);
2824 if (strcmp(name
, "glDeletePathsNV") == 0)
2825 return reinterpret_cast<void*>(Mock_glDeletePathsNV
);
2826 if (strcmp(name
, "glDeleteProgram") == 0)
2827 return reinterpret_cast<void*>(Mock_glDeleteProgram
);
2828 if (strcmp(name
, "glDeleteQueries") == 0)
2829 return reinterpret_cast<void*>(Mock_glDeleteQueries
);
2830 if (strcmp(name
, "glDeleteQueriesARB") == 0)
2831 return reinterpret_cast<void*>(Mock_glDeleteQueriesARB
);
2832 if (strcmp(name
, "glDeleteQueriesEXT") == 0)
2833 return reinterpret_cast<void*>(Mock_glDeleteQueriesEXT
);
2834 if (strcmp(name
, "glDeleteRenderbuffers") == 0)
2835 return reinterpret_cast<void*>(Mock_glDeleteRenderbuffers
);
2836 if (strcmp(name
, "glDeleteRenderbuffersEXT") == 0)
2837 return reinterpret_cast<void*>(Mock_glDeleteRenderbuffersEXT
);
2838 if (strcmp(name
, "glDeleteSamplers") == 0)
2839 return reinterpret_cast<void*>(Mock_glDeleteSamplers
);
2840 if (strcmp(name
, "glDeleteShader") == 0)
2841 return reinterpret_cast<void*>(Mock_glDeleteShader
);
2842 if (strcmp(name
, "glDeleteSync") == 0)
2843 return reinterpret_cast<void*>(Mock_glDeleteSync
);
2844 if (strcmp(name
, "glDeleteTextures") == 0)
2845 return reinterpret_cast<void*>(Mock_glDeleteTextures
);
2846 if (strcmp(name
, "glDeleteTransformFeedbacks") == 0)
2847 return reinterpret_cast<void*>(Mock_glDeleteTransformFeedbacks
);
2848 if (strcmp(name
, "glDeleteVertexArrays") == 0)
2849 return reinterpret_cast<void*>(Mock_glDeleteVertexArrays
);
2850 if (strcmp(name
, "glDeleteVertexArraysAPPLE") == 0)
2851 return reinterpret_cast<void*>(Mock_glDeleteVertexArraysAPPLE
);
2852 if (strcmp(name
, "glDeleteVertexArraysOES") == 0)
2853 return reinterpret_cast<void*>(Mock_glDeleteVertexArraysOES
);
2854 if (strcmp(name
, "glDepthFunc") == 0)
2855 return reinterpret_cast<void*>(Mock_glDepthFunc
);
2856 if (strcmp(name
, "glDepthMask") == 0)
2857 return reinterpret_cast<void*>(Mock_glDepthMask
);
2858 if (strcmp(name
, "glDepthRange") == 0)
2859 return reinterpret_cast<void*>(Mock_glDepthRange
);
2860 if (strcmp(name
, "glDepthRangef") == 0)
2861 return reinterpret_cast<void*>(Mock_glDepthRangef
);
2862 if (strcmp(name
, "glDetachShader") == 0)
2863 return reinterpret_cast<void*>(Mock_glDetachShader
);
2864 if (strcmp(name
, "glDisable") == 0)
2865 return reinterpret_cast<void*>(Mock_glDisable
);
2866 if (strcmp(name
, "glDisableVertexAttribArray") == 0)
2867 return reinterpret_cast<void*>(Mock_glDisableVertexAttribArray
);
2868 if (strcmp(name
, "glDiscardFramebufferEXT") == 0)
2869 return reinterpret_cast<void*>(Mock_glDiscardFramebufferEXT
);
2870 if (strcmp(name
, "glDrawArrays") == 0)
2871 return reinterpret_cast<void*>(Mock_glDrawArrays
);
2872 if (strcmp(name
, "glDrawArraysInstanced") == 0)
2873 return reinterpret_cast<void*>(Mock_glDrawArraysInstanced
);
2874 if (strcmp(name
, "glDrawArraysInstancedANGLE") == 0)
2875 return reinterpret_cast<void*>(Mock_glDrawArraysInstancedANGLE
);
2876 if (strcmp(name
, "glDrawArraysInstancedARB") == 0)
2877 return reinterpret_cast<void*>(Mock_glDrawArraysInstancedARB
);
2878 if (strcmp(name
, "glDrawBuffer") == 0)
2879 return reinterpret_cast<void*>(Mock_glDrawBuffer
);
2880 if (strcmp(name
, "glDrawBuffers") == 0)
2881 return reinterpret_cast<void*>(Mock_glDrawBuffers
);
2882 if (strcmp(name
, "glDrawBuffersARB") == 0)
2883 return reinterpret_cast<void*>(Mock_glDrawBuffersARB
);
2884 if (strcmp(name
, "glDrawBuffersEXT") == 0)
2885 return reinterpret_cast<void*>(Mock_glDrawBuffersEXT
);
2886 if (strcmp(name
, "glDrawElements") == 0)
2887 return reinterpret_cast<void*>(Mock_glDrawElements
);
2888 if (strcmp(name
, "glDrawElementsInstanced") == 0)
2889 return reinterpret_cast<void*>(Mock_glDrawElementsInstanced
);
2890 if (strcmp(name
, "glDrawElementsInstancedANGLE") == 0)
2891 return reinterpret_cast<void*>(Mock_glDrawElementsInstancedANGLE
);
2892 if (strcmp(name
, "glDrawElementsInstancedARB") == 0)
2893 return reinterpret_cast<void*>(Mock_glDrawElementsInstancedARB
);
2894 if (strcmp(name
, "glDrawRangeElements") == 0)
2895 return reinterpret_cast<void*>(Mock_glDrawRangeElements
);
2896 if (strcmp(name
, "glEGLImageTargetRenderbufferStorageOES") == 0)
2897 return reinterpret_cast<void*>(Mock_glEGLImageTargetRenderbufferStorageOES
);
2898 if (strcmp(name
, "glEGLImageTargetTexture2DOES") == 0)
2899 return reinterpret_cast<void*>(Mock_glEGLImageTargetTexture2DOES
);
2900 if (strcmp(name
, "glEnable") == 0)
2901 return reinterpret_cast<void*>(Mock_glEnable
);
2902 if (strcmp(name
, "glEnableVertexAttribArray") == 0)
2903 return reinterpret_cast<void*>(Mock_glEnableVertexAttribArray
);
2904 if (strcmp(name
, "glEndQuery") == 0)
2905 return reinterpret_cast<void*>(Mock_glEndQuery
);
2906 if (strcmp(name
, "glEndQueryARB") == 0)
2907 return reinterpret_cast<void*>(Mock_glEndQueryARB
);
2908 if (strcmp(name
, "glEndQueryEXT") == 0)
2909 return reinterpret_cast<void*>(Mock_glEndQueryEXT
);
2910 if (strcmp(name
, "glEndTransformFeedback") == 0)
2911 return reinterpret_cast<void*>(Mock_glEndTransformFeedback
);
2912 if (strcmp(name
, "glFenceSync") == 0)
2913 return reinterpret_cast<void*>(Mock_glFenceSync
);
2914 if (strcmp(name
, "glFinish") == 0)
2915 return reinterpret_cast<void*>(Mock_glFinish
);
2916 if (strcmp(name
, "glFinishFenceAPPLE") == 0)
2917 return reinterpret_cast<void*>(Mock_glFinishFenceAPPLE
);
2918 if (strcmp(name
, "glFinishFenceNV") == 0)
2919 return reinterpret_cast<void*>(Mock_glFinishFenceNV
);
2920 if (strcmp(name
, "glFlush") == 0)
2921 return reinterpret_cast<void*>(Mock_glFlush
);
2922 if (strcmp(name
, "glFlushMappedBufferRange") == 0)
2923 return reinterpret_cast<void*>(Mock_glFlushMappedBufferRange
);
2924 if (strcmp(name
, "glFramebufferRenderbuffer") == 0)
2925 return reinterpret_cast<void*>(Mock_glFramebufferRenderbuffer
);
2926 if (strcmp(name
, "glFramebufferRenderbufferEXT") == 0)
2927 return reinterpret_cast<void*>(Mock_glFramebufferRenderbufferEXT
);
2928 if (strcmp(name
, "glFramebufferTexture2D") == 0)
2929 return reinterpret_cast<void*>(Mock_glFramebufferTexture2D
);
2930 if (strcmp(name
, "glFramebufferTexture2DEXT") == 0)
2931 return reinterpret_cast<void*>(Mock_glFramebufferTexture2DEXT
);
2932 if (strcmp(name
, "glFramebufferTexture2DMultisampleEXT") == 0)
2933 return reinterpret_cast<void*>(Mock_glFramebufferTexture2DMultisampleEXT
);
2934 if (strcmp(name
, "glFramebufferTexture2DMultisampleIMG") == 0)
2935 return reinterpret_cast<void*>(Mock_glFramebufferTexture2DMultisampleIMG
);
2936 if (strcmp(name
, "glFramebufferTextureLayer") == 0)
2937 return reinterpret_cast<void*>(Mock_glFramebufferTextureLayer
);
2938 if (strcmp(name
, "glFrontFace") == 0)
2939 return reinterpret_cast<void*>(Mock_glFrontFace
);
2940 if (strcmp(name
, "glGenBuffers") == 0)
2941 return reinterpret_cast<void*>(Mock_glGenBuffers
);
2942 if (strcmp(name
, "glGenFencesAPPLE") == 0)
2943 return reinterpret_cast<void*>(Mock_glGenFencesAPPLE
);
2944 if (strcmp(name
, "glGenFencesNV") == 0)
2945 return reinterpret_cast<void*>(Mock_glGenFencesNV
);
2946 if (strcmp(name
, "glGenFramebuffers") == 0)
2947 return reinterpret_cast<void*>(Mock_glGenFramebuffers
);
2948 if (strcmp(name
, "glGenFramebuffersEXT") == 0)
2949 return reinterpret_cast<void*>(Mock_glGenFramebuffersEXT
);
2950 if (strcmp(name
, "glGenPathsNV") == 0)
2951 return reinterpret_cast<void*>(Mock_glGenPathsNV
);
2952 if (strcmp(name
, "glGenQueries") == 0)
2953 return reinterpret_cast<void*>(Mock_glGenQueries
);
2954 if (strcmp(name
, "glGenQueriesARB") == 0)
2955 return reinterpret_cast<void*>(Mock_glGenQueriesARB
);
2956 if (strcmp(name
, "glGenQueriesEXT") == 0)
2957 return reinterpret_cast<void*>(Mock_glGenQueriesEXT
);
2958 if (strcmp(name
, "glGenRenderbuffers") == 0)
2959 return reinterpret_cast<void*>(Mock_glGenRenderbuffers
);
2960 if (strcmp(name
, "glGenRenderbuffersEXT") == 0)
2961 return reinterpret_cast<void*>(Mock_glGenRenderbuffersEXT
);
2962 if (strcmp(name
, "glGenSamplers") == 0)
2963 return reinterpret_cast<void*>(Mock_glGenSamplers
);
2964 if (strcmp(name
, "glGenTextures") == 0)
2965 return reinterpret_cast<void*>(Mock_glGenTextures
);
2966 if (strcmp(name
, "glGenTransformFeedbacks") == 0)
2967 return reinterpret_cast<void*>(Mock_glGenTransformFeedbacks
);
2968 if (strcmp(name
, "glGenVertexArrays") == 0)
2969 return reinterpret_cast<void*>(Mock_glGenVertexArrays
);
2970 if (strcmp(name
, "glGenVertexArraysAPPLE") == 0)
2971 return reinterpret_cast<void*>(Mock_glGenVertexArraysAPPLE
);
2972 if (strcmp(name
, "glGenVertexArraysOES") == 0)
2973 return reinterpret_cast<void*>(Mock_glGenVertexArraysOES
);
2974 if (strcmp(name
, "glGenerateMipmap") == 0)
2975 return reinterpret_cast<void*>(Mock_glGenerateMipmap
);
2976 if (strcmp(name
, "glGenerateMipmapEXT") == 0)
2977 return reinterpret_cast<void*>(Mock_glGenerateMipmapEXT
);
2978 if (strcmp(name
, "glGetActiveAttrib") == 0)
2979 return reinterpret_cast<void*>(Mock_glGetActiveAttrib
);
2980 if (strcmp(name
, "glGetActiveUniform") == 0)
2981 return reinterpret_cast<void*>(Mock_glGetActiveUniform
);
2982 if (strcmp(name
, "glGetActiveUniformBlockName") == 0)
2983 return reinterpret_cast<void*>(Mock_glGetActiveUniformBlockName
);
2984 if (strcmp(name
, "glGetActiveUniformBlockiv") == 0)
2985 return reinterpret_cast<void*>(Mock_glGetActiveUniformBlockiv
);
2986 if (strcmp(name
, "glGetActiveUniformsiv") == 0)
2987 return reinterpret_cast<void*>(Mock_glGetActiveUniformsiv
);
2988 if (strcmp(name
, "glGetAttachedShaders") == 0)
2989 return reinterpret_cast<void*>(Mock_glGetAttachedShaders
);
2990 if (strcmp(name
, "glGetAttribLocation") == 0)
2991 return reinterpret_cast<void*>(Mock_glGetAttribLocation
);
2992 if (strcmp(name
, "glGetBooleanv") == 0)
2993 return reinterpret_cast<void*>(Mock_glGetBooleanv
);
2994 if (strcmp(name
, "glGetBufferParameteriv") == 0)
2995 return reinterpret_cast<void*>(Mock_glGetBufferParameteriv
);
2996 if (strcmp(name
, "glGetError") == 0)
2997 return reinterpret_cast<void*>(Mock_glGetError
);
2998 if (strcmp(name
, "glGetFenceivNV") == 0)
2999 return reinterpret_cast<void*>(Mock_glGetFenceivNV
);
3000 if (strcmp(name
, "glGetFloatv") == 0)
3001 return reinterpret_cast<void*>(Mock_glGetFloatv
);
3002 if (strcmp(name
, "glGetFragDataLocation") == 0)
3003 return reinterpret_cast<void*>(Mock_glGetFragDataLocation
);
3004 if (strcmp(name
, "glGetFramebufferAttachmentParameteriv") == 0)
3005 return reinterpret_cast<void*>(Mock_glGetFramebufferAttachmentParameteriv
);
3006 if (strcmp(name
, "glGetFramebufferAttachmentParameterivEXT") == 0)
3007 return reinterpret_cast<void*>(
3008 Mock_glGetFramebufferAttachmentParameterivEXT
);
3009 if (strcmp(name
, "glGetGraphicsResetStatus") == 0)
3010 return reinterpret_cast<void*>(Mock_glGetGraphicsResetStatus
);
3011 if (strcmp(name
, "glGetGraphicsResetStatusARB") == 0)
3012 return reinterpret_cast<void*>(Mock_glGetGraphicsResetStatusARB
);
3013 if (strcmp(name
, "glGetGraphicsResetStatusEXT") == 0)
3014 return reinterpret_cast<void*>(Mock_glGetGraphicsResetStatusEXT
);
3015 if (strcmp(name
, "glGetGraphicsResetStatusKHR") == 0)
3016 return reinterpret_cast<void*>(Mock_glGetGraphicsResetStatusKHR
);
3017 if (strcmp(name
, "glGetInteger64i_v") == 0)
3018 return reinterpret_cast<void*>(Mock_glGetInteger64i_v
);
3019 if (strcmp(name
, "glGetInteger64v") == 0)
3020 return reinterpret_cast<void*>(Mock_glGetInteger64v
);
3021 if (strcmp(name
, "glGetIntegeri_v") == 0)
3022 return reinterpret_cast<void*>(Mock_glGetIntegeri_v
);
3023 if (strcmp(name
, "glGetIntegerv") == 0)
3024 return reinterpret_cast<void*>(Mock_glGetIntegerv
);
3025 if (strcmp(name
, "glGetInternalformativ") == 0)
3026 return reinterpret_cast<void*>(Mock_glGetInternalformativ
);
3027 if (strcmp(name
, "glGetProgramBinary") == 0)
3028 return reinterpret_cast<void*>(Mock_glGetProgramBinary
);
3029 if (strcmp(name
, "glGetProgramBinaryOES") == 0)
3030 return reinterpret_cast<void*>(Mock_glGetProgramBinaryOES
);
3031 if (strcmp(name
, "glGetProgramInfoLog") == 0)
3032 return reinterpret_cast<void*>(Mock_glGetProgramInfoLog
);
3033 if (strcmp(name
, "glGetProgramResourceLocation") == 0)
3034 return reinterpret_cast<void*>(Mock_glGetProgramResourceLocation
);
3035 if (strcmp(name
, "glGetProgramiv") == 0)
3036 return reinterpret_cast<void*>(Mock_glGetProgramiv
);
3037 if (strcmp(name
, "glGetQueryObjecti64v") == 0)
3038 return reinterpret_cast<void*>(Mock_glGetQueryObjecti64v
);
3039 if (strcmp(name
, "glGetQueryObjecti64vEXT") == 0)
3040 return reinterpret_cast<void*>(Mock_glGetQueryObjecti64vEXT
);
3041 if (strcmp(name
, "glGetQueryObjectiv") == 0)
3042 return reinterpret_cast<void*>(Mock_glGetQueryObjectiv
);
3043 if (strcmp(name
, "glGetQueryObjectivARB") == 0)
3044 return reinterpret_cast<void*>(Mock_glGetQueryObjectivARB
);
3045 if (strcmp(name
, "glGetQueryObjectivEXT") == 0)
3046 return reinterpret_cast<void*>(Mock_glGetQueryObjectivEXT
);
3047 if (strcmp(name
, "glGetQueryObjectui64v") == 0)
3048 return reinterpret_cast<void*>(Mock_glGetQueryObjectui64v
);
3049 if (strcmp(name
, "glGetQueryObjectui64vEXT") == 0)
3050 return reinterpret_cast<void*>(Mock_glGetQueryObjectui64vEXT
);
3051 if (strcmp(name
, "glGetQueryObjectuiv") == 0)
3052 return reinterpret_cast<void*>(Mock_glGetQueryObjectuiv
);
3053 if (strcmp(name
, "glGetQueryObjectuivARB") == 0)
3054 return reinterpret_cast<void*>(Mock_glGetQueryObjectuivARB
);
3055 if (strcmp(name
, "glGetQueryObjectuivEXT") == 0)
3056 return reinterpret_cast<void*>(Mock_glGetQueryObjectuivEXT
);
3057 if (strcmp(name
, "glGetQueryiv") == 0)
3058 return reinterpret_cast<void*>(Mock_glGetQueryiv
);
3059 if (strcmp(name
, "glGetQueryivARB") == 0)
3060 return reinterpret_cast<void*>(Mock_glGetQueryivARB
);
3061 if (strcmp(name
, "glGetQueryivEXT") == 0)
3062 return reinterpret_cast<void*>(Mock_glGetQueryivEXT
);
3063 if (strcmp(name
, "glGetRenderbufferParameteriv") == 0)
3064 return reinterpret_cast<void*>(Mock_glGetRenderbufferParameteriv
);
3065 if (strcmp(name
, "glGetRenderbufferParameterivEXT") == 0)
3066 return reinterpret_cast<void*>(Mock_glGetRenderbufferParameterivEXT
);
3067 if (strcmp(name
, "glGetSamplerParameterfv") == 0)
3068 return reinterpret_cast<void*>(Mock_glGetSamplerParameterfv
);
3069 if (strcmp(name
, "glGetSamplerParameteriv") == 0)
3070 return reinterpret_cast<void*>(Mock_glGetSamplerParameteriv
);
3071 if (strcmp(name
, "glGetShaderInfoLog") == 0)
3072 return reinterpret_cast<void*>(Mock_glGetShaderInfoLog
);
3073 if (strcmp(name
, "glGetShaderPrecisionFormat") == 0)
3074 return reinterpret_cast<void*>(Mock_glGetShaderPrecisionFormat
);
3075 if (strcmp(name
, "glGetShaderSource") == 0)
3076 return reinterpret_cast<void*>(Mock_glGetShaderSource
);
3077 if (strcmp(name
, "glGetShaderiv") == 0)
3078 return reinterpret_cast<void*>(Mock_glGetShaderiv
);
3079 if (strcmp(name
, "glGetString") == 0)
3080 return reinterpret_cast<void*>(Mock_glGetString
);
3081 if (strcmp(name
, "glGetStringi") == 0)
3082 return reinterpret_cast<void*>(Mock_glGetStringi
);
3083 if (strcmp(name
, "glGetSynciv") == 0)
3084 return reinterpret_cast<void*>(Mock_glGetSynciv
);
3085 if (strcmp(name
, "glGetTexLevelParameterfv") == 0)
3086 return reinterpret_cast<void*>(Mock_glGetTexLevelParameterfv
);
3087 if (strcmp(name
, "glGetTexLevelParameteriv") == 0)
3088 return reinterpret_cast<void*>(Mock_glGetTexLevelParameteriv
);
3089 if (strcmp(name
, "glGetTexParameterfv") == 0)
3090 return reinterpret_cast<void*>(Mock_glGetTexParameterfv
);
3091 if (strcmp(name
, "glGetTexParameteriv") == 0)
3092 return reinterpret_cast<void*>(Mock_glGetTexParameteriv
);
3093 if (strcmp(name
, "glGetTransformFeedbackVarying") == 0)
3094 return reinterpret_cast<void*>(Mock_glGetTransformFeedbackVarying
);
3095 if (strcmp(name
, "glGetTranslatedShaderSourceANGLE") == 0)
3096 return reinterpret_cast<void*>(Mock_glGetTranslatedShaderSourceANGLE
);
3097 if (strcmp(name
, "glGetUniformBlockIndex") == 0)
3098 return reinterpret_cast<void*>(Mock_glGetUniformBlockIndex
);
3099 if (strcmp(name
, "glGetUniformIndices") == 0)
3100 return reinterpret_cast<void*>(Mock_glGetUniformIndices
);
3101 if (strcmp(name
, "glGetUniformLocation") == 0)
3102 return reinterpret_cast<void*>(Mock_glGetUniformLocation
);
3103 if (strcmp(name
, "glGetUniformfv") == 0)
3104 return reinterpret_cast<void*>(Mock_glGetUniformfv
);
3105 if (strcmp(name
, "glGetUniformiv") == 0)
3106 return reinterpret_cast<void*>(Mock_glGetUniformiv
);
3107 if (strcmp(name
, "glGetUniformuiv") == 0)
3108 return reinterpret_cast<void*>(Mock_glGetUniformuiv
);
3109 if (strcmp(name
, "glGetVertexAttribPointerv") == 0)
3110 return reinterpret_cast<void*>(Mock_glGetVertexAttribPointerv
);
3111 if (strcmp(name
, "glGetVertexAttribfv") == 0)
3112 return reinterpret_cast<void*>(Mock_glGetVertexAttribfv
);
3113 if (strcmp(name
, "glGetVertexAttribiv") == 0)
3114 return reinterpret_cast<void*>(Mock_glGetVertexAttribiv
);
3115 if (strcmp(name
, "glHint") == 0)
3116 return reinterpret_cast<void*>(Mock_glHint
);
3117 if (strcmp(name
, "glInsertEventMarkerEXT") == 0)
3118 return reinterpret_cast<void*>(Mock_glInsertEventMarkerEXT
);
3119 if (strcmp(name
, "glInvalidateFramebuffer") == 0)
3120 return reinterpret_cast<void*>(Mock_glInvalidateFramebuffer
);
3121 if (strcmp(name
, "glInvalidateSubFramebuffer") == 0)
3122 return reinterpret_cast<void*>(Mock_glInvalidateSubFramebuffer
);
3123 if (strcmp(name
, "glIsBuffer") == 0)
3124 return reinterpret_cast<void*>(Mock_glIsBuffer
);
3125 if (strcmp(name
, "glIsEnabled") == 0)
3126 return reinterpret_cast<void*>(Mock_glIsEnabled
);
3127 if (strcmp(name
, "glIsFenceAPPLE") == 0)
3128 return reinterpret_cast<void*>(Mock_glIsFenceAPPLE
);
3129 if (strcmp(name
, "glIsFenceNV") == 0)
3130 return reinterpret_cast<void*>(Mock_glIsFenceNV
);
3131 if (strcmp(name
, "glIsFramebuffer") == 0)
3132 return reinterpret_cast<void*>(Mock_glIsFramebuffer
);
3133 if (strcmp(name
, "glIsFramebufferEXT") == 0)
3134 return reinterpret_cast<void*>(Mock_glIsFramebufferEXT
);
3135 if (strcmp(name
, "glIsPathNV") == 0)
3136 return reinterpret_cast<void*>(Mock_glIsPathNV
);
3137 if (strcmp(name
, "glIsProgram") == 0)
3138 return reinterpret_cast<void*>(Mock_glIsProgram
);
3139 if (strcmp(name
, "glIsQuery") == 0)
3140 return reinterpret_cast<void*>(Mock_glIsQuery
);
3141 if (strcmp(name
, "glIsQueryARB") == 0)
3142 return reinterpret_cast<void*>(Mock_glIsQueryARB
);
3143 if (strcmp(name
, "glIsQueryEXT") == 0)
3144 return reinterpret_cast<void*>(Mock_glIsQueryEXT
);
3145 if (strcmp(name
, "glIsRenderbuffer") == 0)
3146 return reinterpret_cast<void*>(Mock_glIsRenderbuffer
);
3147 if (strcmp(name
, "glIsRenderbufferEXT") == 0)
3148 return reinterpret_cast<void*>(Mock_glIsRenderbufferEXT
);
3149 if (strcmp(name
, "glIsSampler") == 0)
3150 return reinterpret_cast<void*>(Mock_glIsSampler
);
3151 if (strcmp(name
, "glIsShader") == 0)
3152 return reinterpret_cast<void*>(Mock_glIsShader
);
3153 if (strcmp(name
, "glIsSync") == 0)
3154 return reinterpret_cast<void*>(Mock_glIsSync
);
3155 if (strcmp(name
, "glIsTexture") == 0)
3156 return reinterpret_cast<void*>(Mock_glIsTexture
);
3157 if (strcmp(name
, "glIsTransformFeedback") == 0)
3158 return reinterpret_cast<void*>(Mock_glIsTransformFeedback
);
3159 if (strcmp(name
, "glIsVertexArray") == 0)
3160 return reinterpret_cast<void*>(Mock_glIsVertexArray
);
3161 if (strcmp(name
, "glIsVertexArrayAPPLE") == 0)
3162 return reinterpret_cast<void*>(Mock_glIsVertexArrayAPPLE
);
3163 if (strcmp(name
, "glIsVertexArrayOES") == 0)
3164 return reinterpret_cast<void*>(Mock_glIsVertexArrayOES
);
3165 if (strcmp(name
, "glLineWidth") == 0)
3166 return reinterpret_cast<void*>(Mock_glLineWidth
);
3167 if (strcmp(name
, "glLinkProgram") == 0)
3168 return reinterpret_cast<void*>(Mock_glLinkProgram
);
3169 if (strcmp(name
, "glMapBuffer") == 0)
3170 return reinterpret_cast<void*>(Mock_glMapBuffer
);
3171 if (strcmp(name
, "glMapBufferOES") == 0)
3172 return reinterpret_cast<void*>(Mock_glMapBufferOES
);
3173 if (strcmp(name
, "glMapBufferRange") == 0)
3174 return reinterpret_cast<void*>(Mock_glMapBufferRange
);
3175 if (strcmp(name
, "glMapBufferRangeEXT") == 0)
3176 return reinterpret_cast<void*>(Mock_glMapBufferRangeEXT
);
3177 if (strcmp(name
, "glMatrixLoadIdentityEXT") == 0)
3178 return reinterpret_cast<void*>(Mock_glMatrixLoadIdentityEXT
);
3179 if (strcmp(name
, "glMatrixLoadfEXT") == 0)
3180 return reinterpret_cast<void*>(Mock_glMatrixLoadfEXT
);
3181 if (strcmp(name
, "glPathCommandsNV") == 0)
3182 return reinterpret_cast<void*>(Mock_glPathCommandsNV
);
3183 if (strcmp(name
, "glPathParameterfNV") == 0)
3184 return reinterpret_cast<void*>(Mock_glPathParameterfNV
);
3185 if (strcmp(name
, "glPathParameteriNV") == 0)
3186 return reinterpret_cast<void*>(Mock_glPathParameteriNV
);
3187 if (strcmp(name
, "glPathStencilFuncNV") == 0)
3188 return reinterpret_cast<void*>(Mock_glPathStencilFuncNV
);
3189 if (strcmp(name
, "glPauseTransformFeedback") == 0)
3190 return reinterpret_cast<void*>(Mock_glPauseTransformFeedback
);
3191 if (strcmp(name
, "glPixelStorei") == 0)
3192 return reinterpret_cast<void*>(Mock_glPixelStorei
);
3193 if (strcmp(name
, "glPointParameteri") == 0)
3194 return reinterpret_cast<void*>(Mock_glPointParameteri
);
3195 if (strcmp(name
, "glPolygonOffset") == 0)
3196 return reinterpret_cast<void*>(Mock_glPolygonOffset
);
3197 if (strcmp(name
, "glPopGroupMarkerEXT") == 0)
3198 return reinterpret_cast<void*>(Mock_glPopGroupMarkerEXT
);
3199 if (strcmp(name
, "glProgramBinary") == 0)
3200 return reinterpret_cast<void*>(Mock_glProgramBinary
);
3201 if (strcmp(name
, "glProgramBinaryOES") == 0)
3202 return reinterpret_cast<void*>(Mock_glProgramBinaryOES
);
3203 if (strcmp(name
, "glProgramParameteri") == 0)
3204 return reinterpret_cast<void*>(Mock_glProgramParameteri
);
3205 if (strcmp(name
, "glPushGroupMarkerEXT") == 0)
3206 return reinterpret_cast<void*>(Mock_glPushGroupMarkerEXT
);
3207 if (strcmp(name
, "glQueryCounter") == 0)
3208 return reinterpret_cast<void*>(Mock_glQueryCounter
);
3209 if (strcmp(name
, "glQueryCounterEXT") == 0)
3210 return reinterpret_cast<void*>(Mock_glQueryCounterEXT
);
3211 if (strcmp(name
, "glReadBuffer") == 0)
3212 return reinterpret_cast<void*>(Mock_glReadBuffer
);
3213 if (strcmp(name
, "glReadPixels") == 0)
3214 return reinterpret_cast<void*>(Mock_glReadPixels
);
3215 if (strcmp(name
, "glReleaseShaderCompiler") == 0)
3216 return reinterpret_cast<void*>(Mock_glReleaseShaderCompiler
);
3217 if (strcmp(name
, "glRenderbufferStorage") == 0)
3218 return reinterpret_cast<void*>(Mock_glRenderbufferStorage
);
3219 if (strcmp(name
, "glRenderbufferStorageEXT") == 0)
3220 return reinterpret_cast<void*>(Mock_glRenderbufferStorageEXT
);
3221 if (strcmp(name
, "glRenderbufferStorageMultisample") == 0)
3222 return reinterpret_cast<void*>(Mock_glRenderbufferStorageMultisample
);
3223 if (strcmp(name
, "glRenderbufferStorageMultisampleANGLE") == 0)
3224 return reinterpret_cast<void*>(Mock_glRenderbufferStorageMultisampleANGLE
);
3225 if (strcmp(name
, "glRenderbufferStorageMultisampleEXT") == 0)
3226 return reinterpret_cast<void*>(Mock_glRenderbufferStorageMultisampleEXT
);
3227 if (strcmp(name
, "glRenderbufferStorageMultisampleIMG") == 0)
3228 return reinterpret_cast<void*>(Mock_glRenderbufferStorageMultisampleIMG
);
3229 if (strcmp(name
, "glResumeTransformFeedback") == 0)
3230 return reinterpret_cast<void*>(Mock_glResumeTransformFeedback
);
3231 if (strcmp(name
, "glSampleCoverage") == 0)
3232 return reinterpret_cast<void*>(Mock_glSampleCoverage
);
3233 if (strcmp(name
, "glSamplerParameterf") == 0)
3234 return reinterpret_cast<void*>(Mock_glSamplerParameterf
);
3235 if (strcmp(name
, "glSamplerParameterfv") == 0)
3236 return reinterpret_cast<void*>(Mock_glSamplerParameterfv
);
3237 if (strcmp(name
, "glSamplerParameteri") == 0)
3238 return reinterpret_cast<void*>(Mock_glSamplerParameteri
);
3239 if (strcmp(name
, "glSamplerParameteriv") == 0)
3240 return reinterpret_cast<void*>(Mock_glSamplerParameteriv
);
3241 if (strcmp(name
, "glScissor") == 0)
3242 return reinterpret_cast<void*>(Mock_glScissor
);
3243 if (strcmp(name
, "glSetFenceAPPLE") == 0)
3244 return reinterpret_cast<void*>(Mock_glSetFenceAPPLE
);
3245 if (strcmp(name
, "glSetFenceNV") == 0)
3246 return reinterpret_cast<void*>(Mock_glSetFenceNV
);
3247 if (strcmp(name
, "glShaderBinary") == 0)
3248 return reinterpret_cast<void*>(Mock_glShaderBinary
);
3249 if (strcmp(name
, "glShaderSource") == 0)
3250 return reinterpret_cast<void*>(Mock_glShaderSource
);
3251 if (strcmp(name
, "glStencilFillPathNV") == 0)
3252 return reinterpret_cast<void*>(Mock_glStencilFillPathNV
);
3253 if (strcmp(name
, "glStencilFunc") == 0)
3254 return reinterpret_cast<void*>(Mock_glStencilFunc
);
3255 if (strcmp(name
, "glStencilFuncSeparate") == 0)
3256 return reinterpret_cast<void*>(Mock_glStencilFuncSeparate
);
3257 if (strcmp(name
, "glStencilMask") == 0)
3258 return reinterpret_cast<void*>(Mock_glStencilMask
);
3259 if (strcmp(name
, "glStencilMaskSeparate") == 0)
3260 return reinterpret_cast<void*>(Mock_glStencilMaskSeparate
);
3261 if (strcmp(name
, "glStencilOp") == 0)
3262 return reinterpret_cast<void*>(Mock_glStencilOp
);
3263 if (strcmp(name
, "glStencilOpSeparate") == 0)
3264 return reinterpret_cast<void*>(Mock_glStencilOpSeparate
);
3265 if (strcmp(name
, "glStencilStrokePathNV") == 0)
3266 return reinterpret_cast<void*>(Mock_glStencilStrokePathNV
);
3267 if (strcmp(name
, "glStencilThenCoverFillPathNV") == 0)
3268 return reinterpret_cast<void*>(Mock_glStencilThenCoverFillPathNV
);
3269 if (strcmp(name
, "glStencilThenCoverStrokePathNV") == 0)
3270 return reinterpret_cast<void*>(Mock_glStencilThenCoverStrokePathNV
);
3271 if (strcmp(name
, "glTestFenceAPPLE") == 0)
3272 return reinterpret_cast<void*>(Mock_glTestFenceAPPLE
);
3273 if (strcmp(name
, "glTestFenceNV") == 0)
3274 return reinterpret_cast<void*>(Mock_glTestFenceNV
);
3275 if (strcmp(name
, "glTexImage2D") == 0)
3276 return reinterpret_cast<void*>(Mock_glTexImage2D
);
3277 if (strcmp(name
, "glTexImage3D") == 0)
3278 return reinterpret_cast<void*>(Mock_glTexImage3D
);
3279 if (strcmp(name
, "glTexParameterf") == 0)
3280 return reinterpret_cast<void*>(Mock_glTexParameterf
);
3281 if (strcmp(name
, "glTexParameterfv") == 0)
3282 return reinterpret_cast<void*>(Mock_glTexParameterfv
);
3283 if (strcmp(name
, "glTexParameteri") == 0)
3284 return reinterpret_cast<void*>(Mock_glTexParameteri
);
3285 if (strcmp(name
, "glTexParameteriv") == 0)
3286 return reinterpret_cast<void*>(Mock_glTexParameteriv
);
3287 if (strcmp(name
, "glTexStorage2D") == 0)
3288 return reinterpret_cast<void*>(Mock_glTexStorage2D
);
3289 if (strcmp(name
, "glTexStorage2DEXT") == 0)
3290 return reinterpret_cast<void*>(Mock_glTexStorage2DEXT
);
3291 if (strcmp(name
, "glTexStorage3D") == 0)
3292 return reinterpret_cast<void*>(Mock_glTexStorage3D
);
3293 if (strcmp(name
, "glTexSubImage2D") == 0)
3294 return reinterpret_cast<void*>(Mock_glTexSubImage2D
);
3295 if (strcmp(name
, "glTexSubImage3D") == 0)
3296 return reinterpret_cast<void*>(Mock_glTexSubImage3D
);
3297 if (strcmp(name
, "glTransformFeedbackVaryings") == 0)
3298 return reinterpret_cast<void*>(Mock_glTransformFeedbackVaryings
);
3299 if (strcmp(name
, "glUniform1f") == 0)
3300 return reinterpret_cast<void*>(Mock_glUniform1f
);
3301 if (strcmp(name
, "glUniform1fv") == 0)
3302 return reinterpret_cast<void*>(Mock_glUniform1fv
);
3303 if (strcmp(name
, "glUniform1i") == 0)
3304 return reinterpret_cast<void*>(Mock_glUniform1i
);
3305 if (strcmp(name
, "glUniform1iv") == 0)
3306 return reinterpret_cast<void*>(Mock_glUniform1iv
);
3307 if (strcmp(name
, "glUniform1ui") == 0)
3308 return reinterpret_cast<void*>(Mock_glUniform1ui
);
3309 if (strcmp(name
, "glUniform1uiv") == 0)
3310 return reinterpret_cast<void*>(Mock_glUniform1uiv
);
3311 if (strcmp(name
, "glUniform2f") == 0)
3312 return reinterpret_cast<void*>(Mock_glUniform2f
);
3313 if (strcmp(name
, "glUniform2fv") == 0)
3314 return reinterpret_cast<void*>(Mock_glUniform2fv
);
3315 if (strcmp(name
, "glUniform2i") == 0)
3316 return reinterpret_cast<void*>(Mock_glUniform2i
);
3317 if (strcmp(name
, "glUniform2iv") == 0)
3318 return reinterpret_cast<void*>(Mock_glUniform2iv
);
3319 if (strcmp(name
, "glUniform2ui") == 0)
3320 return reinterpret_cast<void*>(Mock_glUniform2ui
);
3321 if (strcmp(name
, "glUniform2uiv") == 0)
3322 return reinterpret_cast<void*>(Mock_glUniform2uiv
);
3323 if (strcmp(name
, "glUniform3f") == 0)
3324 return reinterpret_cast<void*>(Mock_glUniform3f
);
3325 if (strcmp(name
, "glUniform3fv") == 0)
3326 return reinterpret_cast<void*>(Mock_glUniform3fv
);
3327 if (strcmp(name
, "glUniform3i") == 0)
3328 return reinterpret_cast<void*>(Mock_glUniform3i
);
3329 if (strcmp(name
, "glUniform3iv") == 0)
3330 return reinterpret_cast<void*>(Mock_glUniform3iv
);
3331 if (strcmp(name
, "glUniform3ui") == 0)
3332 return reinterpret_cast<void*>(Mock_glUniform3ui
);
3333 if (strcmp(name
, "glUniform3uiv") == 0)
3334 return reinterpret_cast<void*>(Mock_glUniform3uiv
);
3335 if (strcmp(name
, "glUniform4f") == 0)
3336 return reinterpret_cast<void*>(Mock_glUniform4f
);
3337 if (strcmp(name
, "glUniform4fv") == 0)
3338 return reinterpret_cast<void*>(Mock_glUniform4fv
);
3339 if (strcmp(name
, "glUniform4i") == 0)
3340 return reinterpret_cast<void*>(Mock_glUniform4i
);
3341 if (strcmp(name
, "glUniform4iv") == 0)
3342 return reinterpret_cast<void*>(Mock_glUniform4iv
);
3343 if (strcmp(name
, "glUniform4ui") == 0)
3344 return reinterpret_cast<void*>(Mock_glUniform4ui
);
3345 if (strcmp(name
, "glUniform4uiv") == 0)
3346 return reinterpret_cast<void*>(Mock_glUniform4uiv
);
3347 if (strcmp(name
, "glUniformBlockBinding") == 0)
3348 return reinterpret_cast<void*>(Mock_glUniformBlockBinding
);
3349 if (strcmp(name
, "glUniformMatrix2fv") == 0)
3350 return reinterpret_cast<void*>(Mock_glUniformMatrix2fv
);
3351 if (strcmp(name
, "glUniformMatrix2x3fv") == 0)
3352 return reinterpret_cast<void*>(Mock_glUniformMatrix2x3fv
);
3353 if (strcmp(name
, "glUniformMatrix2x4fv") == 0)
3354 return reinterpret_cast<void*>(Mock_glUniformMatrix2x4fv
);
3355 if (strcmp(name
, "glUniformMatrix3fv") == 0)
3356 return reinterpret_cast<void*>(Mock_glUniformMatrix3fv
);
3357 if (strcmp(name
, "glUniformMatrix3x2fv") == 0)
3358 return reinterpret_cast<void*>(Mock_glUniformMatrix3x2fv
);
3359 if (strcmp(name
, "glUniformMatrix3x4fv") == 0)
3360 return reinterpret_cast<void*>(Mock_glUniformMatrix3x4fv
);
3361 if (strcmp(name
, "glUniformMatrix4fv") == 0)
3362 return reinterpret_cast<void*>(Mock_glUniformMatrix4fv
);
3363 if (strcmp(name
, "glUniformMatrix4x2fv") == 0)
3364 return reinterpret_cast<void*>(Mock_glUniformMatrix4x2fv
);
3365 if (strcmp(name
, "glUniformMatrix4x3fv") == 0)
3366 return reinterpret_cast<void*>(Mock_glUniformMatrix4x3fv
);
3367 if (strcmp(name
, "glUnmapBuffer") == 0)
3368 return reinterpret_cast<void*>(Mock_glUnmapBuffer
);
3369 if (strcmp(name
, "glUnmapBufferOES") == 0)
3370 return reinterpret_cast<void*>(Mock_glUnmapBufferOES
);
3371 if (strcmp(name
, "glUseProgram") == 0)
3372 return reinterpret_cast<void*>(Mock_glUseProgram
);
3373 if (strcmp(name
, "glValidateProgram") == 0)
3374 return reinterpret_cast<void*>(Mock_glValidateProgram
);
3375 if (strcmp(name
, "glVertexAttrib1f") == 0)
3376 return reinterpret_cast<void*>(Mock_glVertexAttrib1f
);
3377 if (strcmp(name
, "glVertexAttrib1fv") == 0)
3378 return reinterpret_cast<void*>(Mock_glVertexAttrib1fv
);
3379 if (strcmp(name
, "glVertexAttrib2f") == 0)
3380 return reinterpret_cast<void*>(Mock_glVertexAttrib2f
);
3381 if (strcmp(name
, "glVertexAttrib2fv") == 0)
3382 return reinterpret_cast<void*>(Mock_glVertexAttrib2fv
);
3383 if (strcmp(name
, "glVertexAttrib3f") == 0)
3384 return reinterpret_cast<void*>(Mock_glVertexAttrib3f
);
3385 if (strcmp(name
, "glVertexAttrib3fv") == 0)
3386 return reinterpret_cast<void*>(Mock_glVertexAttrib3fv
);
3387 if (strcmp(name
, "glVertexAttrib4f") == 0)
3388 return reinterpret_cast<void*>(Mock_glVertexAttrib4f
);
3389 if (strcmp(name
, "glVertexAttrib4fv") == 0)
3390 return reinterpret_cast<void*>(Mock_glVertexAttrib4fv
);
3391 if (strcmp(name
, "glVertexAttribDivisor") == 0)
3392 return reinterpret_cast<void*>(Mock_glVertexAttribDivisor
);
3393 if (strcmp(name
, "glVertexAttribDivisorANGLE") == 0)
3394 return reinterpret_cast<void*>(Mock_glVertexAttribDivisorANGLE
);
3395 if (strcmp(name
, "glVertexAttribDivisorARB") == 0)
3396 return reinterpret_cast<void*>(Mock_glVertexAttribDivisorARB
);
3397 if (strcmp(name
, "glVertexAttribI4i") == 0)
3398 return reinterpret_cast<void*>(Mock_glVertexAttribI4i
);
3399 if (strcmp(name
, "glVertexAttribI4iv") == 0)
3400 return reinterpret_cast<void*>(Mock_glVertexAttribI4iv
);
3401 if (strcmp(name
, "glVertexAttribI4ui") == 0)
3402 return reinterpret_cast<void*>(Mock_glVertexAttribI4ui
);
3403 if (strcmp(name
, "glVertexAttribI4uiv") == 0)
3404 return reinterpret_cast<void*>(Mock_glVertexAttribI4uiv
);
3405 if (strcmp(name
, "glVertexAttribIPointer") == 0)
3406 return reinterpret_cast<void*>(Mock_glVertexAttribIPointer
);
3407 if (strcmp(name
, "glVertexAttribPointer") == 0)
3408 return reinterpret_cast<void*>(Mock_glVertexAttribPointer
);
3409 if (strcmp(name
, "glViewport") == 0)
3410 return reinterpret_cast<void*>(Mock_glViewport
);
3411 if (strcmp(name
, "glWaitSync") == 0)
3412 return reinterpret_cast<void*>(Mock_glWaitSync
);
3413 return reinterpret_cast<void*>(&MockInvalidFunction
);