diff options
author | Jesse Hall <jessehall@google.com> | 2014-05-20 21:38:44 +0000 |
---|---|---|
committer | Jesse Hall <jessehall@google.com> | 2014-05-20 21:38:44 +0000 |
commit | 0b96e6c44b3c4549bd947fd2947540f4b62a038e (patch) | |
tree | a6cfce335d0a8eee02be5b6164e67e8013b2b7ee /opengl/libs/GLES_trace | |
parent | 4a73962c694bfe57eb2bea40ed6fb626be7006aa (diff) | |
download | frameworks_native-0b96e6c44b3c4549bd947fd2947540f4b62a038e.zip frameworks_native-0b96e6c44b3c4549bd947fd2947540f4b62a038e.tar.gz frameworks_native-0b96e6c44b3c4549bd947fd2947540f4b62a038e.tar.bz2 |
Revert "opengl: Generate *.in from registry XML"
This reverts commit 4a73962c694bfe57eb2bea40ed6fb626be7006aa.
Change-Id: I1fa5cbe4d0b86f6df69d616157b3fec68d706d7a
Diffstat (limited to 'opengl/libs/GLES_trace')
-rw-r--r-- | opengl/libs/GLES_trace/gltrace.proto | 101 | ||||
-rw-r--r-- | opengl/libs/GLES_trace/src/gltrace.pb.cpp | 200 | ||||
-rw-r--r-- | opengl/libs/GLES_trace/src/gltrace.pb.h | 200 | ||||
-rw-r--r-- | opengl/libs/GLES_trace/src/gltrace_api.cpp | 7920 | ||||
-rw-r--r-- | opengl/libs/GLES_trace/src/gltrace_api.h | 728 | ||||
-rwxr-xr-x | opengl/libs/GLES_trace/tools/genapi.py | 15 |
6 files changed, 2134 insertions, 7030 deletions
diff --git a/opengl/libs/GLES_trace/gltrace.proto b/opengl/libs/GLES_trace/gltrace.proto index 671bcf5..f8f4938 100644 --- a/opengl/libs/GLES_trace/gltrace.proto +++ b/opengl/libs/GLES_trace/gltrace.proto @@ -503,28 +503,7 @@ message GLMessage { glTexStorage2D = 477; glTexStorage3D = 478; glGetInternalformativ = 479; - glBeginPerfQueryINTEL = 480; - glCreatePerfQueryINTEL = 481; - glDeletePerfQueryINTEL = 482; - glEndPerfQueryINTEL = 483; - glGetFirstPerfQueryIdINTEL = 484; - glGetNextPerfQueryIdINTEL = 485; - glGetPerfCounterInfoINTEL = 486; - glGetPerfQueryDataINTEL = 487; - glGetPerfQueryIdByNameINTEL = 488; - glGetPerfQueryInfoINTEL = 489; - glBlendBarrierKHR = 490; - glBlendBarrierNV = 491; - glBlendParameteriNV = 492; - glBlitFramebufferNV = 493; - glFenceSyncAPPLE = 494; - glIsSyncAPPLE = 495; - glDeleteSyncAPPLE = 496; - glClientWaitSyncAPPLE = 497; - glWaitSyncAPPLE = 498; - glGetInteger64vAPPLE = 499; - glGetSyncivAPPLE = 500; - glCopyBufferSubDataNV = 501; + glActiveShaderProgramEXT = 502; glAlphaFuncQCOM = 503; glBeginQueryEXT = 504; @@ -586,84 +565,6 @@ message GLMessage { glTextureStorage3DEXT = 559; glUseProgramStagesEXT = 560; glValidateProgramPipelineEXT = 561; - glCopyTextureLevelsAPPLE = 562; - glDebugMessageControlKHR = 563; - glDebugMessageInsertKHR = 564; - glDebugMessageCallbackKHR = 565; - glGetDebugMessageLogKHR = 566; - glPushDebugGroupKHR = 567; - glPopDebugGroupKHR = 568; - glObjectLabelKHR = 569; - glGetObjectLabelKHR = 570; - glObjectPtrLabelKHR = 571; - glGetObjectPtrLabelKHR = 572; - glGetPointervKHR = 573; - glDrawArraysInstancedANGLE = 574; - glDrawElementsInstancedANGLE = 575; - glVertexAttribDivisorANGLE = 576; - glDrawArraysInstancedEXT = 577; - glDrawElementsInstancedEXT = 578; - glVertexAttribDivisorEXT = 579; - glDrawArraysInstancedNV = 580; - glDrawElementsInstancedNV = 581; - glVertexAttribDivisorNV = 582; - glDrawBuffersEXT = 583; - glReadBufferIndexedEXT = 584; - glDrawBuffersIndexedEXT = 585; - glGetIntegeri_vEXT = 586; - glMapBufferRangeEXT = 587; - glFlushMappedBufferRangeEXT = 588; - glQueryCounterEXT = 589; - glGetQueryObjecti64vEXT = 590; - glGetQueryObjectivEXT = 591; - glGetQueryObjectui64vEXT = 592; - glGetTranslatedShaderSourceANGLE = 593; - glMinSampleShadingOES = 594; - glMultiTexCoord1bOES = 595; - glMultiTexCoord1bvOES = 596; - glMultiTexCoord2bOES = 597; - glMultiTexCoord2bvOES = 598; - glMultiTexCoord3bOES = 599; - glMultiTexCoord3bvOES = 600; - glMultiTexCoord4bOES = 601; - glMultiTexCoord4bvOES = 602; - glTexCoord1bOES = 603; - glTexCoord1bvOES = 604; - glTexCoord2bOES = 605; - glTexCoord2bvOES = 606; - glTexCoord3bOES = 607; - glTexCoord3bvOES = 608; - glTexCoord4bOES = 609; - glTexCoord4bvOES = 610; - glVertex2bOES = 611; - glVertex2bvOES = 612; - glVertex3bOES = 613; - glVertex3bvOES = 614; - glVertex4bOES = 615; - glVertex4bvOES = 616; - glProgramUniform1uiEXT = 617; - glProgramUniform2uiEXT = 618; - glProgramUniform3uiEXT = 619; - glProgramUniform4uiEXT = 620; - glProgramUniform1uivEXT = 621; - glProgramUniform2uivEXT = 622; - glProgramUniform3uivEXT = 623; - glProgramUniform4uivEXT = 624; - glProgramUniformMatrix2x3fvEXT = 625; - glProgramUniformMatrix3x2fvEXT = 626; - glProgramUniformMatrix2x4fvEXT = 627; - glProgramUniformMatrix4x2fvEXT = 628; - glProgramUniformMatrix3x4fvEXT = 629; - glProgramUniformMatrix4x3fvEXT = 630; - glRenderbufferStorageMultisampleNV = 631; - glSampleCoverageOES = 632; - glTexStorage3DMultisampleOES = 633; - glUniformMatrix2x3fvNV = 634; - glUniformMatrix3x2fvNV = 635; - glUniformMatrix2x4fvNV = 636; - glUniformMatrix4x2fvNV = 637; - glUniformMatrix3x4fvNV = 638; - glUniformMatrix4x3fvNV = 639; eglGetDisplay = 2000; eglInitialize = 2001; diff --git a/opengl/libs/GLES_trace/src/gltrace.pb.cpp b/opengl/libs/GLES_trace/src/gltrace.pb.cpp index f1034a3..ed9a457 100644 --- a/opengl/libs/GLES_trace/src/gltrace.pb.cpp +++ b/opengl/libs/GLES_trace/src/gltrace.pb.cpp @@ -523,28 +523,6 @@ bool GLMessage_Function_IsValid(int value) { case 477: case 478: case 479: - case 480: - case 481: - case 482: - case 483: - case 484: - case 485: - case 486: - case 487: - case 488: - case 489: - case 490: - case 491: - case 492: - case 493: - case 494: - case 495: - case 496: - case 497: - case 498: - case 499: - case 500: - case 501: case 502: case 503: case 504: @@ -605,84 +583,6 @@ bool GLMessage_Function_IsValid(int value) { case 559: case 560: case 561: - case 562: - case 563: - case 564: - case 565: - case 566: - case 567: - case 568: - case 569: - case 570: - case 571: - case 572: - case 573: - case 574: - case 575: - case 576: - case 577: - case 578: - case 579: - case 580: - case 581: - case 582: - case 583: - case 584: - case 585: - case 586: - case 587: - case 588: - case 589: - case 590: - case 591: - case 592: - case 593: - case 594: - case 595: - case 596: - case 597: - case 598: - case 599: - case 600: - case 601: - case 602: - case 603: - case 604: - case 605: - case 606: - case 607: - case 608: - case 609: - case 610: - case 611: - case 612: - case 613: - case 614: - case 615: - case 616: - case 617: - case 618: - case 619: - case 620: - case 621: - case 622: - case 623: - case 624: - case 625: - case 626: - case 627: - case 628: - case 629: - case 630: - case 631: - case 632: - case 633: - case 634: - case 635: - case 636: - case 637: - case 638: - case 639: case 2000: case 2001: case 2002: @@ -1218,28 +1118,6 @@ const GLMessage_Function GLMessage::glInvalidateSubFramebuffer; const GLMessage_Function GLMessage::glTexStorage2D; const GLMessage_Function GLMessage::glTexStorage3D; const GLMessage_Function GLMessage::glGetInternalformativ; -const GLMessage_Function GLMessage::glBeginPerfQueryINTEL; -const GLMessage_Function GLMessage::glCreatePerfQueryINTEL; -const GLMessage_Function GLMessage::glDeletePerfQueryINTEL; -const GLMessage_Function GLMessage::glEndPerfQueryINTEL; -const GLMessage_Function GLMessage::glGetFirstPerfQueryIdINTEL; -const GLMessage_Function GLMessage::glGetNextPerfQueryIdINTEL; -const GLMessage_Function GLMessage::glGetPerfCounterInfoINTEL; -const GLMessage_Function GLMessage::glGetPerfQueryDataINTEL; -const GLMessage_Function GLMessage::glGetPerfQueryIdByNameINTEL; -const GLMessage_Function GLMessage::glGetPerfQueryInfoINTEL; -const GLMessage_Function GLMessage::glBlendBarrierKHR; -const GLMessage_Function GLMessage::glBlendBarrierNV; -const GLMessage_Function GLMessage::glBlendParameteriNV; -const GLMessage_Function GLMessage::glBlitFramebufferNV; -const GLMessage_Function GLMessage::glFenceSyncAPPLE; -const GLMessage_Function GLMessage::glIsSyncAPPLE; -const GLMessage_Function GLMessage::glDeleteSyncAPPLE; -const GLMessage_Function GLMessage::glClientWaitSyncAPPLE; -const GLMessage_Function GLMessage::glWaitSyncAPPLE; -const GLMessage_Function GLMessage::glGetInteger64vAPPLE; -const GLMessage_Function GLMessage::glGetSyncivAPPLE; -const GLMessage_Function GLMessage::glCopyBufferSubDataNV; const GLMessage_Function GLMessage::glActiveShaderProgramEXT; const GLMessage_Function GLMessage::glAlphaFuncQCOM; const GLMessage_Function GLMessage::glBeginQueryEXT; @@ -1301,84 +1179,6 @@ const GLMessage_Function GLMessage::glTextureStorage2DEXT; const GLMessage_Function GLMessage::glTextureStorage3DEXT; const GLMessage_Function GLMessage::glUseProgramStagesEXT; const GLMessage_Function GLMessage::glValidateProgramPipelineEXT; -const GLMessage_Function GLMessage::glCopyTextureLevelsAPPLE; -const GLMessage_Function GLMessage::glDebugMessageControlKHR; -const GLMessage_Function GLMessage::glDebugMessageInsertKHR; -const GLMessage_Function GLMessage::glDebugMessageCallbackKHR; -const GLMessage_Function GLMessage::glGetDebugMessageLogKHR; -const GLMessage_Function GLMessage::glPushDebugGroupKHR; -const GLMessage_Function GLMessage::glPopDebugGroupKHR; -const GLMessage_Function GLMessage::glObjectLabelKHR; -const GLMessage_Function GLMessage::glGetObjectLabelKHR; -const GLMessage_Function GLMessage::glObjectPtrLabelKHR; -const GLMessage_Function GLMessage::glGetObjectPtrLabelKHR; -const GLMessage_Function GLMessage::glGetPointervKHR; -const GLMessage_Function GLMessage::glDrawArraysInstancedANGLE; -const GLMessage_Function GLMessage::glDrawElementsInstancedANGLE; -const GLMessage_Function GLMessage::glVertexAttribDivisorANGLE; -const GLMessage_Function GLMessage::glDrawArraysInstancedEXT; -const GLMessage_Function GLMessage::glDrawElementsInstancedEXT; -const GLMessage_Function GLMessage::glVertexAttribDivisorEXT; -const GLMessage_Function GLMessage::glDrawArraysInstancedNV; -const GLMessage_Function GLMessage::glDrawElementsInstancedNV; -const GLMessage_Function GLMessage::glVertexAttribDivisorNV; -const GLMessage_Function GLMessage::glDrawBuffersEXT; -const GLMessage_Function GLMessage::glReadBufferIndexedEXT; -const GLMessage_Function GLMessage::glDrawBuffersIndexedEXT; -const GLMessage_Function GLMessage::glGetIntegeri_vEXT; -const GLMessage_Function GLMessage::glMapBufferRangeEXT; -const GLMessage_Function GLMessage::glFlushMappedBufferRangeEXT; -const GLMessage_Function GLMessage::glQueryCounterEXT; -const GLMessage_Function GLMessage::glGetQueryObjecti64vEXT; -const GLMessage_Function GLMessage::glGetQueryObjectivEXT; -const GLMessage_Function GLMessage::glGetQueryObjectui64vEXT; -const GLMessage_Function GLMessage::glGetTranslatedShaderSourceANGLE; -const GLMessage_Function GLMessage::glMinSampleShadingOES; -const GLMessage_Function GLMessage::glMultiTexCoord1bOES; -const GLMessage_Function GLMessage::glMultiTexCoord1bvOES; -const GLMessage_Function GLMessage::glMultiTexCoord2bOES; -const GLMessage_Function GLMessage::glMultiTexCoord2bvOES; -const GLMessage_Function GLMessage::glMultiTexCoord3bOES; -const GLMessage_Function GLMessage::glMultiTexCoord3bvOES; -const GLMessage_Function GLMessage::glMultiTexCoord4bOES; -const GLMessage_Function GLMessage::glMultiTexCoord4bvOES; -const GLMessage_Function GLMessage::glTexCoord1bOES; -const GLMessage_Function GLMessage::glTexCoord1bvOES; -const GLMessage_Function GLMessage::glTexCoord2bOES; -const GLMessage_Function GLMessage::glTexCoord2bvOES; -const GLMessage_Function GLMessage::glTexCoord3bOES; -const GLMessage_Function GLMessage::glTexCoord3bvOES; -const GLMessage_Function GLMessage::glTexCoord4bOES; -const GLMessage_Function GLMessage::glTexCoord4bvOES; -const GLMessage_Function GLMessage::glVertex2bOES; -const GLMessage_Function GLMessage::glVertex2bvOES; -const GLMessage_Function GLMessage::glVertex3bOES; -const GLMessage_Function GLMessage::glVertex3bvOES; -const GLMessage_Function GLMessage::glVertex4bOES; -const GLMessage_Function GLMessage::glVertex4bvOES; -const GLMessage_Function GLMessage::glProgramUniform1uiEXT; -const GLMessage_Function GLMessage::glProgramUniform2uiEXT; -const GLMessage_Function GLMessage::glProgramUniform3uiEXT; -const GLMessage_Function GLMessage::glProgramUniform4uiEXT; -const GLMessage_Function GLMessage::glProgramUniform1uivEXT; -const GLMessage_Function GLMessage::glProgramUniform2uivEXT; -const GLMessage_Function GLMessage::glProgramUniform3uivEXT; -const GLMessage_Function GLMessage::glProgramUniform4uivEXT; -const GLMessage_Function GLMessage::glProgramUniformMatrix2x3fvEXT; -const GLMessage_Function GLMessage::glProgramUniformMatrix3x2fvEXT; -const GLMessage_Function GLMessage::glProgramUniformMatrix2x4fvEXT; -const GLMessage_Function GLMessage::glProgramUniformMatrix4x2fvEXT; -const GLMessage_Function GLMessage::glProgramUniformMatrix3x4fvEXT; -const GLMessage_Function GLMessage::glProgramUniformMatrix4x3fvEXT; -const GLMessage_Function GLMessage::glRenderbufferStorageMultisampleNV; -const GLMessage_Function GLMessage::glSampleCoverageOES; -const GLMessage_Function GLMessage::glTexStorage3DMultisampleOES; -const GLMessage_Function GLMessage::glUniformMatrix2x3fvNV; -const GLMessage_Function GLMessage::glUniformMatrix3x2fvNV; -const GLMessage_Function GLMessage::glUniformMatrix2x4fvNV; -const GLMessage_Function GLMessage::glUniformMatrix4x2fvNV; -const GLMessage_Function GLMessage::glUniformMatrix3x4fvNV; -const GLMessage_Function GLMessage::glUniformMatrix4x3fvNV; const GLMessage_Function GLMessage::eglGetDisplay; const GLMessage_Function GLMessage::eglInitialize; const GLMessage_Function GLMessage::eglTerminate; diff --git a/opengl/libs/GLES_trace/src/gltrace.pb.h b/opengl/libs/GLES_trace/src/gltrace.pb.h index 966360b..9eae26c 100644 --- a/opengl/libs/GLES_trace/src/gltrace.pb.h +++ b/opengl/libs/GLES_trace/src/gltrace.pb.h @@ -532,28 +532,6 @@ enum GLMessage_Function { GLMessage_Function_glTexStorage2D = 477, GLMessage_Function_glTexStorage3D = 478, GLMessage_Function_glGetInternalformativ = 479, - GLMessage_Function_glBeginPerfQueryINTEL = 480, - GLMessage_Function_glCreatePerfQueryINTEL = 481, - GLMessage_Function_glDeletePerfQueryINTEL = 482, - GLMessage_Function_glEndPerfQueryINTEL = 483, - GLMessage_Function_glGetFirstPerfQueryIdINTEL = 484, - GLMessage_Function_glGetNextPerfQueryIdINTEL = 485, - GLMessage_Function_glGetPerfCounterInfoINTEL = 486, - GLMessage_Function_glGetPerfQueryDataINTEL = 487, - GLMessage_Function_glGetPerfQueryIdByNameINTEL = 488, - GLMessage_Function_glGetPerfQueryInfoINTEL = 489, - GLMessage_Function_glBlendBarrierKHR = 490, - GLMessage_Function_glBlendBarrierNV = 491, - GLMessage_Function_glBlendParameteriNV = 492, - GLMessage_Function_glBlitFramebufferNV = 493, - GLMessage_Function_glFenceSyncAPPLE = 494, - GLMessage_Function_glIsSyncAPPLE = 495, - GLMessage_Function_glDeleteSyncAPPLE = 496, - GLMessage_Function_glClientWaitSyncAPPLE = 497, - GLMessage_Function_glWaitSyncAPPLE = 498, - GLMessage_Function_glGetInteger64vAPPLE = 499, - GLMessage_Function_glGetSyncivAPPLE = 500, - GLMessage_Function_glCopyBufferSubDataNV = 501, GLMessage_Function_glActiveShaderProgramEXT = 502, GLMessage_Function_glAlphaFuncQCOM = 503, GLMessage_Function_glBeginQueryEXT = 504, @@ -615,84 +593,6 @@ enum GLMessage_Function { GLMessage_Function_glTextureStorage3DEXT = 559, GLMessage_Function_glUseProgramStagesEXT = 560, GLMessage_Function_glValidateProgramPipelineEXT = 561, - GLMessage_Function_glCopyTextureLevelsAPPLE = 562, - GLMessage_Function_glDebugMessageControlKHR = 563, - GLMessage_Function_glDebugMessageInsertKHR = 564, - GLMessage_Function_glDebugMessageCallbackKHR = 565, - GLMessage_Function_glGetDebugMessageLogKHR = 566, - GLMessage_Function_glPushDebugGroupKHR = 567, - GLMessage_Function_glPopDebugGroupKHR = 568, - GLMessage_Function_glObjectLabelKHR = 569, - GLMessage_Function_glGetObjectLabelKHR = 570, - GLMessage_Function_glObjectPtrLabelKHR = 571, - GLMessage_Function_glGetObjectPtrLabelKHR = 572, - GLMessage_Function_glGetPointervKHR = 573, - GLMessage_Function_glDrawArraysInstancedANGLE = 574, - GLMessage_Function_glDrawElementsInstancedANGLE = 575, - GLMessage_Function_glVertexAttribDivisorANGLE = 576, - GLMessage_Function_glDrawArraysInstancedEXT = 577, - GLMessage_Function_glDrawElementsInstancedEXT = 578, - GLMessage_Function_glVertexAttribDivisorEXT = 579, - GLMessage_Function_glDrawArraysInstancedNV = 580, - GLMessage_Function_glDrawElementsInstancedNV = 581, - GLMessage_Function_glVertexAttribDivisorNV = 582, - GLMessage_Function_glDrawBuffersEXT = 583, - GLMessage_Function_glReadBufferIndexedEXT = 584, - GLMessage_Function_glDrawBuffersIndexedEXT = 585, - GLMessage_Function_glGetIntegeri_vEXT = 586, - GLMessage_Function_glMapBufferRangeEXT = 587, - GLMessage_Function_glFlushMappedBufferRangeEXT = 588, - GLMessage_Function_glQueryCounterEXT = 589, - GLMessage_Function_glGetQueryObjecti64vEXT = 590, - GLMessage_Function_glGetQueryObjectivEXT = 591, - GLMessage_Function_glGetQueryObjectui64vEXT = 592, - GLMessage_Function_glGetTranslatedShaderSourceANGLE = 593, - GLMessage_Function_glMinSampleShadingOES = 594, - GLMessage_Function_glMultiTexCoord1bOES = 595, - GLMessage_Function_glMultiTexCoord1bvOES = 596, - GLMessage_Function_glMultiTexCoord2bOES = 597, - GLMessage_Function_glMultiTexCoord2bvOES = 598, - GLMessage_Function_glMultiTexCoord3bOES = 599, - GLMessage_Function_glMultiTexCoord3bvOES = 600, - GLMessage_Function_glMultiTexCoord4bOES = 601, - GLMessage_Function_glMultiTexCoord4bvOES = 602, - GLMessage_Function_glTexCoord1bOES = 603, - GLMessage_Function_glTexCoord1bvOES = 604, - GLMessage_Function_glTexCoord2bOES = 605, - GLMessage_Function_glTexCoord2bvOES = 606, - GLMessage_Function_glTexCoord3bOES = 607, - GLMessage_Function_glTexCoord3bvOES = 608, - GLMessage_Function_glTexCoord4bOES = 609, - GLMessage_Function_glTexCoord4bvOES = 610, - GLMessage_Function_glVertex2bOES = 611, - GLMessage_Function_glVertex2bvOES = 612, - GLMessage_Function_glVertex3bOES = 613, - GLMessage_Function_glVertex3bvOES = 614, - GLMessage_Function_glVertex4bOES = 615, - GLMessage_Function_glVertex4bvOES = 616, - GLMessage_Function_glProgramUniform1uiEXT = 617, - GLMessage_Function_glProgramUniform2uiEXT = 618, - GLMessage_Function_glProgramUniform3uiEXT = 619, - GLMessage_Function_glProgramUniform4uiEXT = 620, - GLMessage_Function_glProgramUniform1uivEXT = 621, - GLMessage_Function_glProgramUniform2uivEXT = 622, - GLMessage_Function_glProgramUniform3uivEXT = 623, - GLMessage_Function_glProgramUniform4uivEXT = 624, - GLMessage_Function_glProgramUniformMatrix2x3fvEXT = 625, - GLMessage_Function_glProgramUniformMatrix3x2fvEXT = 626, - GLMessage_Function_glProgramUniformMatrix2x4fvEXT = 627, - GLMessage_Function_glProgramUniformMatrix4x2fvEXT = 628, - GLMessage_Function_glProgramUniformMatrix3x4fvEXT = 629, - GLMessage_Function_glProgramUniformMatrix4x3fvEXT = 630, - GLMessage_Function_glRenderbufferStorageMultisampleNV = 631, - GLMessage_Function_glSampleCoverageOES = 632, - GLMessage_Function_glTexStorage3DMultisampleOES = 633, - GLMessage_Function_glUniformMatrix2x3fvNV = 634, - GLMessage_Function_glUniformMatrix3x2fvNV = 635, - GLMessage_Function_glUniformMatrix2x4fvNV = 636, - GLMessage_Function_glUniformMatrix4x2fvNV = 637, - GLMessage_Function_glUniformMatrix3x4fvNV = 638, - GLMessage_Function_glUniformMatrix4x3fvNV = 639, GLMessage_Function_eglGetDisplay = 2000, GLMessage_Function_eglInitialize = 2001, GLMessage_Function_eglTerminate = 2002, @@ -1566,28 +1466,6 @@ class GLMessage : public ::google::protobuf::MessageLite { static const Function glTexStorage2D = GLMessage_Function_glTexStorage2D; static const Function glTexStorage3D = GLMessage_Function_glTexStorage3D; static const Function glGetInternalformativ = GLMessage_Function_glGetInternalformativ; - static const Function glBeginPerfQueryINTEL = GLMessage_Function_glBeginPerfQueryINTEL; - static const Function glCreatePerfQueryINTEL = GLMessage_Function_glCreatePerfQueryINTEL; - static const Function glDeletePerfQueryINTEL = GLMessage_Function_glDeletePerfQueryINTEL; - static const Function glEndPerfQueryINTEL = GLMessage_Function_glEndPerfQueryINTEL; - static const Function glGetFirstPerfQueryIdINTEL = GLMessage_Function_glGetFirstPerfQueryIdINTEL; - static const Function glGetNextPerfQueryIdINTEL = GLMessage_Function_glGetNextPerfQueryIdINTEL; - static const Function glGetPerfCounterInfoINTEL = GLMessage_Function_glGetPerfCounterInfoINTEL; - static const Function glGetPerfQueryDataINTEL = GLMessage_Function_glGetPerfQueryDataINTEL; - static const Function glGetPerfQueryIdByNameINTEL = GLMessage_Function_glGetPerfQueryIdByNameINTEL; - static const Function glGetPerfQueryInfoINTEL = GLMessage_Function_glGetPerfQueryInfoINTEL; - static const Function glBlendBarrierKHR = GLMessage_Function_glBlendBarrierKHR; - static const Function glBlendBarrierNV = GLMessage_Function_glBlendBarrierNV; - static const Function glBlendParameteriNV = GLMessage_Function_glBlendParameteriNV; - static const Function glBlitFramebufferNV = GLMessage_Function_glBlitFramebufferNV; - static const Function glFenceSyncAPPLE = GLMessage_Function_glFenceSyncAPPLE; - static const Function glIsSyncAPPLE = GLMessage_Function_glIsSyncAPPLE; - static const Function glDeleteSyncAPPLE = GLMessage_Function_glDeleteSyncAPPLE; - static const Function glClientWaitSyncAPPLE = GLMessage_Function_glClientWaitSyncAPPLE; - static const Function glWaitSyncAPPLE = GLMessage_Function_glWaitSyncAPPLE; - static const Function glGetInteger64vAPPLE = GLMessage_Function_glGetInteger64vAPPLE; - static const Function glGetSyncivAPPLE = GLMessage_Function_glGetSyncivAPPLE; - static const Function glCopyBufferSubDataNV = GLMessage_Function_glCopyBufferSubDataNV; static const Function glActiveShaderProgramEXT = GLMessage_Function_glActiveShaderProgramEXT; static const Function glAlphaFuncQCOM = GLMessage_Function_glAlphaFuncQCOM; static const Function glBeginQueryEXT = GLMessage_Function_glBeginQueryEXT; @@ -1649,84 +1527,6 @@ class GLMessage : public ::google::protobuf::MessageLite { static const Function glTextureStorage3DEXT = GLMessage_Function_glTextureStorage3DEXT; static const Function glUseProgramStagesEXT = GLMessage_Function_glUseProgramStagesEXT; static const Function glValidateProgramPipelineEXT = GLMessage_Function_glValidateProgramPipelineEXT; - static const Function glCopyTextureLevelsAPPLE = GLMessage_Function_glCopyTextureLevelsAPPLE; - static const Function glDebugMessageControlKHR = GLMessage_Function_glDebugMessageControlKHR; - static const Function glDebugMessageInsertKHR = GLMessage_Function_glDebugMessageInsertKHR; - static const Function glDebugMessageCallbackKHR = GLMessage_Function_glDebugMessageCallbackKHR; - static const Function glGetDebugMessageLogKHR = GLMessage_Function_glGetDebugMessageLogKHR; - static const Function glPushDebugGroupKHR = GLMessage_Function_glPushDebugGroupKHR; - static const Function glPopDebugGroupKHR = GLMessage_Function_glPopDebugGroupKHR; - static const Function glObjectLabelKHR = GLMessage_Function_glObjectLabelKHR; - static const Function glGetObjectLabelKHR = GLMessage_Function_glGetObjectLabelKHR; - static const Function glObjectPtrLabelKHR = GLMessage_Function_glObjectPtrLabelKHR; - static const Function glGetObjectPtrLabelKHR = GLMessage_Function_glGetObjectPtrLabelKHR; - static const Function glGetPointervKHR = GLMessage_Function_glGetPointervKHR; - static const Function glDrawArraysInstancedANGLE = GLMessage_Function_glDrawArraysInstancedANGLE; - static const Function glDrawElementsInstancedANGLE = GLMessage_Function_glDrawElementsInstancedANGLE; - static const Function glVertexAttribDivisorANGLE = GLMessage_Function_glVertexAttribDivisorANGLE; - static const Function glDrawArraysInstancedEXT = GLMessage_Function_glDrawArraysInstancedEXT; - static const Function glDrawElementsInstancedEXT = GLMessage_Function_glDrawElementsInstancedEXT; - static const Function glVertexAttribDivisorEXT = GLMessage_Function_glVertexAttribDivisorEXT; - static const Function glDrawArraysInstancedNV = GLMessage_Function_glDrawArraysInstancedNV; - static const Function glDrawElementsInstancedNV = GLMessage_Function_glDrawElementsInstancedNV; - static const Function glVertexAttribDivisorNV = GLMessage_Function_glVertexAttribDivisorNV; - static const Function glDrawBuffersEXT = GLMessage_Function_glDrawBuffersEXT; - static const Function glReadBufferIndexedEXT = GLMessage_Function_glReadBufferIndexedEXT; - static const Function glDrawBuffersIndexedEXT = GLMessage_Function_glDrawBuffersIndexedEXT; - static const Function glGetIntegeri_vEXT = GLMessage_Function_glGetIntegeri_vEXT; - static const Function glMapBufferRangeEXT = GLMessage_Function_glMapBufferRangeEXT; - static const Function glFlushMappedBufferRangeEXT = GLMessage_Function_glFlushMappedBufferRangeEXT; - static const Function glQueryCounterEXT = GLMessage_Function_glQueryCounterEXT; - static const Function glGetQueryObjecti64vEXT = GLMessage_Function_glGetQueryObjecti64vEXT; - static const Function glGetQueryObjectivEXT = GLMessage_Function_glGetQueryObjectivEXT; - static const Function glGetQueryObjectui64vEXT = GLMessage_Function_glGetQueryObjectui64vEXT; - static const Function glGetTranslatedShaderSourceANGLE = GLMessage_Function_glGetTranslatedShaderSourceANGLE; - static const Function glMinSampleShadingOES = GLMessage_Function_glMinSampleShadingOES; - static const Function glMultiTexCoord1bOES = GLMessage_Function_glMultiTexCoord1bOES; - static const Function glMultiTexCoord1bvOES = GLMessage_Function_glMultiTexCoord1bvOES; - static const Function glMultiTexCoord2bOES = GLMessage_Function_glMultiTexCoord2bOES; - static const Function glMultiTexCoord2bvOES = GLMessage_Function_glMultiTexCoord2bvOES; - static const Function glMultiTexCoord3bOES = GLMessage_Function_glMultiTexCoord3bOES; - static const Function glMultiTexCoord3bvOES = GLMessage_Function_glMultiTexCoord3bvOES; - static const Function glMultiTexCoord4bOES = GLMessage_Function_glMultiTexCoord4bOES; - static const Function glMultiTexCoord4bvOES = GLMessage_Function_glMultiTexCoord4bvOES; - static const Function glTexCoord1bOES = GLMessage_Function_glTexCoord1bOES; - static const Function glTexCoord1bvOES = GLMessage_Function_glTexCoord1bvOES; - static const Function glTexCoord2bOES = GLMessage_Function_glTexCoord2bOES; - static const Function glTexCoord2bvOES = GLMessage_Function_glTexCoord2bvOES; - static const Function glTexCoord3bOES = GLMessage_Function_glTexCoord3bOES; - static const Function glTexCoord3bvOES = GLMessage_Function_glTexCoord3bvOES; - static const Function glTexCoord4bOES = GLMessage_Function_glTexCoord4bOES; - static const Function glTexCoord4bvOES = GLMessage_Function_glTexCoord4bvOES; - static const Function glVertex2bOES = GLMessage_Function_glVertex2bOES; - static const Function glVertex2bvOES = GLMessage_Function_glVertex2bvOES; - static const Function glVertex3bOES = GLMessage_Function_glVertex3bOES; - static const Function glVertex3bvOES = GLMessage_Function_glVertex3bvOES; - static const Function glVertex4bOES = GLMessage_Function_glVertex4bOES; - static const Function glVertex4bvOES = GLMessage_Function_glVertex4bvOES; - static const Function glProgramUniform1uiEXT = GLMessage_Function_glProgramUniform1uiEXT; - static const Function glProgramUniform2uiEXT = GLMessage_Function_glProgramUniform2uiEXT; - static const Function glProgramUniform3uiEXT = GLMessage_Function_glProgramUniform3uiEXT; - static const Function glProgramUniform4uiEXT = GLMessage_Function_glProgramUniform4uiEXT; - static const Function glProgramUniform1uivEXT = GLMessage_Function_glProgramUniform1uivEXT; - static const Function glProgramUniform2uivEXT = GLMessage_Function_glProgramUniform2uivEXT; - static const Function glProgramUniform3uivEXT = GLMessage_Function_glProgramUniform3uivEXT; - static const Function glProgramUniform4uivEXT = GLMessage_Function_glProgramUniform4uivEXT; - static const Function glProgramUniformMatrix2x3fvEXT = GLMessage_Function_glProgramUniformMatrix2x3fvEXT; - static const Function glProgramUniformMatrix3x2fvEXT = GLMessage_Function_glProgramUniformMatrix3x2fvEXT; - static const Function glProgramUniformMatrix2x4fvEXT = GLMessage_Function_glProgramUniformMatrix2x4fvEXT; - static const Function glProgramUniformMatrix4x2fvEXT = GLMessage_Function_glProgramUniformMatrix4x2fvEXT; - static const Function glProgramUniformMatrix3x4fvEXT = GLMessage_Function_glProgramUniformMatrix3x4fvEXT; - static const Function glProgramUniformMatrix4x3fvEXT = GLMessage_Function_glProgramUniformMatrix4x3fvEXT; - static const Function glRenderbufferStorageMultisampleNV = GLMessage_Function_glRenderbufferStorageMultisampleNV; - static const Function glSampleCoverageOES = GLMessage_Function_glSampleCoverageOES; - static const Function glTexStorage3DMultisampleOES = GLMessage_Function_glTexStorage3DMultisampleOES; - static const Function glUniformMatrix2x3fvNV = GLMessage_Function_glUniformMatrix2x3fvNV; - static const Function glUniformMatrix3x2fvNV = GLMessage_Function_glUniformMatrix3x2fvNV; - static const Function glUniformMatrix2x4fvNV = GLMessage_Function_glUniformMatrix2x4fvNV; - static const Function glUniformMatrix4x2fvNV = GLMessage_Function_glUniformMatrix4x2fvNV; - static const Function glUniformMatrix3x4fvNV = GLMessage_Function_glUniformMatrix3x4fvNV; - static const Function glUniformMatrix4x3fvNV = GLMessage_Function_glUniformMatrix4x3fvNV; static const Function eglGetDisplay = GLMessage_Function_eglGetDisplay; static const Function eglInitialize = GLMessage_Function_eglInitialize; static const Function eglTerminate = GLMessage_Function_eglTerminate; diff --git a/opengl/libs/GLES_trace/src/gltrace_api.cpp b/opengl/libs/GLES_trace/src/gltrace_api.cpp index 4fbd124..747ccfa 100644 --- a/opengl/libs/GLES_trace/src/gltrace_api.cpp +++ b/opengl/libs/GLES_trace/src/gltrace_api.cpp @@ -92,7 +92,7 @@ void GLTrace_glAttachShader(GLuint program, GLuint shader) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glBindAttribLocation(GLuint program, GLuint index, const GLchar * name) { +void GLTrace_glBindAttribLocation(GLuint program, GLuint index, const GLchar* name) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -411,40 +411,40 @@ void GLTrace_glBlendFunc(GLenum sfactor, GLenum dfactor) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glBlendFuncSeparate(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha) { +void GLTrace_glBlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); glmsg.set_function(GLMessage::glBlendFuncSeparate); - // copy argument sfactorRGB - GLMessage_DataType *arg_sfactorRGB = glmsg.add_args(); - arg_sfactorRGB->set_isarray(false); - arg_sfactorRGB->set_type(GLMessage::DataType::ENUM); - arg_sfactorRGB->add_intvalue((int)sfactorRGB); + // copy argument srcRGB + GLMessage_DataType *arg_srcRGB = glmsg.add_args(); + arg_srcRGB->set_isarray(false); + arg_srcRGB->set_type(GLMessage::DataType::ENUM); + arg_srcRGB->add_intvalue((int)srcRGB); - // copy argument dfactorRGB - GLMessage_DataType *arg_dfactorRGB = glmsg.add_args(); - arg_dfactorRGB->set_isarray(false); - arg_dfactorRGB->set_type(GLMessage::DataType::ENUM); - arg_dfactorRGB->add_intvalue((int)dfactorRGB); + // copy argument dstRGB + GLMessage_DataType *arg_dstRGB = glmsg.add_args(); + arg_dstRGB->set_isarray(false); + arg_dstRGB->set_type(GLMessage::DataType::ENUM); + arg_dstRGB->add_intvalue((int)dstRGB); - // copy argument sfactorAlpha - GLMessage_DataType *arg_sfactorAlpha = glmsg.add_args(); - arg_sfactorAlpha->set_isarray(false); - arg_sfactorAlpha->set_type(GLMessage::DataType::ENUM); - arg_sfactorAlpha->add_intvalue((int)sfactorAlpha); + // copy argument srcAlpha + GLMessage_DataType *arg_srcAlpha = glmsg.add_args(); + arg_srcAlpha->set_isarray(false); + arg_srcAlpha->set_type(GLMessage::DataType::ENUM); + arg_srcAlpha->add_intvalue((int)srcAlpha); - // copy argument dfactorAlpha - GLMessage_DataType *arg_dfactorAlpha = glmsg.add_args(); - arg_dfactorAlpha->set_isarray(false); - arg_dfactorAlpha->set_type(GLMessage::DataType::ENUM); - arg_dfactorAlpha->add_intvalue((int)dfactorAlpha); + // copy argument dstAlpha + GLMessage_DataType *arg_dstAlpha = glmsg.add_args(); + arg_dstAlpha->set_isarray(false); + arg_dstAlpha->set_type(GLMessage::DataType::ENUM); + arg_dstAlpha->add_intvalue((int)dstAlpha); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glBlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha); + glContext->hooks->gl.glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -457,7 +457,7 @@ void GLTrace_glBlendFuncSeparate(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sf glContext->traceGLMessage(&glmsg); } -void GLTrace_glBufferData(GLenum target, GLsizeiptr size, const void * data, GLenum usage) { +void GLTrace_glBufferData(GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -504,7 +504,7 @@ void GLTrace_glBufferData(GLenum target, GLsizeiptr size, const void * data, GLe glContext->traceGLMessage(&glmsg); } -void GLTrace_glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const void * data) { +void GLTrace_glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -661,22 +661,22 @@ void GLTrace_glClearColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alph glContext->traceGLMessage(&glmsg); } -void GLTrace_glClearDepthf(GLfloat d) { +void GLTrace_glClearDepthf(GLfloat depth) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); glmsg.set_function(GLMessage::glClearDepthf); - // copy argument d - GLMessage_DataType *arg_d = glmsg.add_args(); - arg_d->set_isarray(false); - arg_d->set_type(GLMessage::DataType::FLOAT); - arg_d->add_floatvalue(d); + // copy argument depth + GLMessage_DataType *arg_depth = glmsg.add_args(); + arg_depth->set_isarray(false); + arg_depth->set_type(GLMessage::DataType::FLOAT); + arg_depth->add_floatvalue(depth); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glClearDepthf(d); + glContext->hooks->gl.glClearDepthf(depth); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -791,7 +791,7 @@ void GLTrace_glCompileShader(GLuint shader) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void * data) { +void GLTrace_glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -862,7 +862,7 @@ void GLTrace_glCompressedTexImage2D(GLenum target, GLint level, GLenum internalf glContext->traceGLMessage(&glmsg); } -void GLTrace_glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void * data) { +void GLTrace_glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -1173,7 +1173,7 @@ void GLTrace_glCullFace(GLenum mode) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glDeleteBuffers(GLsizei n, const GLuint * buffers) { +void GLTrace_glDeleteBuffers(GLsizei n, const GLuint* buffers) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -1208,7 +1208,7 @@ void GLTrace_glDeleteBuffers(GLsizei n, const GLuint * buffers) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glDeleteFramebuffers(GLsizei n, const GLuint * framebuffers) { +void GLTrace_glDeleteFramebuffers(GLsizei n, const GLuint* framebuffers) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -1271,7 +1271,7 @@ void GLTrace_glDeleteProgram(GLuint program) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glDeleteRenderbuffers(GLsizei n, const GLuint * renderbuffers) { +void GLTrace_glDeleteRenderbuffers(GLsizei n, const GLuint* renderbuffers) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -1334,7 +1334,7 @@ void GLTrace_glDeleteShader(GLuint shader) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glDeleteTextures(GLsizei n, const GLuint * textures) { +void GLTrace_glDeleteTextures(GLsizei n, const GLuint* textures) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -1589,7 +1589,7 @@ void GLTrace_glDrawArrays(GLenum mode, GLint first, GLsizei count) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glDrawElements(GLenum mode, GLsizei count, GLenum type, const void * indices) { +void GLTrace_glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid* indices) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -1862,7 +1862,7 @@ void GLTrace_glFrontFace(GLenum mode) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGenBuffers(GLsizei n, GLuint * buffers) { +void GLTrace_glGenBuffers(GLsizei n, GLuint* buffers) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -1925,7 +1925,7 @@ void GLTrace_glGenerateMipmap(GLenum target) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGenFramebuffers(GLsizei n, GLuint * framebuffers) { +void GLTrace_glGenFramebuffers(GLsizei n, GLuint* framebuffers) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -1960,7 +1960,7 @@ void GLTrace_glGenFramebuffers(GLsizei n, GLuint * framebuffers) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGenRenderbuffers(GLsizei n, GLuint * renderbuffers) { +void GLTrace_glGenRenderbuffers(GLsizei n, GLuint* renderbuffers) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -1995,7 +1995,7 @@ void GLTrace_glGenRenderbuffers(GLsizei n, GLuint * renderbuffers) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGenTextures(GLsizei n, GLuint * textures) { +void GLTrace_glGenTextures(GLsizei n, GLuint* textures) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -2030,7 +2030,7 @@ void GLTrace_glGenTextures(GLsizei n, GLuint * textures) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLint * size, GLenum * type, GLchar * name) { +void GLTrace_glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -2048,11 +2048,11 @@ void GLTrace_glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufSize, GL arg_index->set_type(GLMessage::DataType::INT); arg_index->add_intvalue(index); - // copy argument bufSize - GLMessage_DataType *arg_bufSize = glmsg.add_args(); - arg_bufSize->set_isarray(false); - arg_bufSize->set_type(GLMessage::DataType::INT); - arg_bufSize->add_intvalue(bufSize); + // copy argument bufsize + GLMessage_DataType *arg_bufsize = glmsg.add_args(); + arg_bufsize->set_isarray(false); + arg_bufsize->set_type(GLMessage::DataType::INT); + arg_bufsize->add_intvalue(bufsize); // copy argument length GLMessage_DataType *arg_length = glmsg.add_args(); @@ -2081,7 +2081,7 @@ void GLTrace_glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufSize, GL // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetActiveAttrib(program, index, bufSize, length, size, type, name); + glContext->hooks->gl.glGetActiveAttrib(program, index, bufsize, length, size, type, name); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -2098,7 +2098,7 @@ void GLTrace_glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufSize, GL glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetActiveUniform(GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLint * size, GLenum * type, GLchar * name) { +void GLTrace_glGetActiveUniform(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -2116,11 +2116,11 @@ void GLTrace_glGetActiveUniform(GLuint program, GLuint index, GLsizei bufSize, G arg_index->set_type(GLMessage::DataType::INT); arg_index->add_intvalue(index); - // copy argument bufSize - GLMessage_DataType *arg_bufSize = glmsg.add_args(); - arg_bufSize->set_isarray(false); - arg_bufSize->set_type(GLMessage::DataType::INT); - arg_bufSize->add_intvalue(bufSize); + // copy argument bufsize + GLMessage_DataType *arg_bufsize = glmsg.add_args(); + arg_bufsize->set_isarray(false); + arg_bufsize->set_type(GLMessage::DataType::INT); + arg_bufsize->add_intvalue(bufsize); // copy argument length GLMessage_DataType *arg_length = glmsg.add_args(); @@ -2149,7 +2149,7 @@ void GLTrace_glGetActiveUniform(GLuint program, GLuint index, GLsizei bufSize, G // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetActiveUniform(program, index, bufSize, length, size, type, name); + glContext->hooks->gl.glGetActiveUniform(program, index, bufsize, length, size, type, name); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -2166,7 +2166,7 @@ void GLTrace_glGetActiveUniform(GLuint program, GLuint index, GLsizei bufSize, G glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetAttachedShaders(GLuint program, GLsizei maxCount, GLsizei * count, GLuint * shaders) { +void GLTrace_glGetAttachedShaders(GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -2178,11 +2178,11 @@ void GLTrace_glGetAttachedShaders(GLuint program, GLsizei maxCount, GLsizei * co arg_program->set_type(GLMessage::DataType::INT); arg_program->add_intvalue(program); - // copy argument maxCount - GLMessage_DataType *arg_maxCount = glmsg.add_args(); - arg_maxCount->set_isarray(false); - arg_maxCount->set_type(GLMessage::DataType::INT); - arg_maxCount->add_intvalue(maxCount); + // copy argument maxcount + GLMessage_DataType *arg_maxcount = glmsg.add_args(); + arg_maxcount->set_isarray(false); + arg_maxcount->set_type(GLMessage::DataType::INT); + arg_maxcount->add_intvalue(maxcount); // copy argument count GLMessage_DataType *arg_count = glmsg.add_args(); @@ -2199,7 +2199,7 @@ void GLTrace_glGetAttachedShaders(GLuint program, GLsizei maxCount, GLsizei * co // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetAttachedShaders(program, maxCount, count, shaders); + glContext->hooks->gl.glGetAttachedShaders(program, maxcount, count, shaders); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -2214,7 +2214,7 @@ void GLTrace_glGetAttachedShaders(GLuint program, GLsizei maxCount, GLsizei * co glContext->traceGLMessage(&glmsg); } -GLint GLTrace_glGetAttribLocation(GLuint program, const GLchar * name) { +GLint GLTrace_glGetAttribLocation(GLuint program, const GLchar* name) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -2257,7 +2257,7 @@ GLint GLTrace_glGetAttribLocation(GLuint program, const GLchar * name) { return retValue; } -void GLTrace_glGetBooleanv(GLenum pname, GLboolean * data) { +void GLTrace_glGetBooleanv(GLenum pname, GLboolean* params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -2269,21 +2269,21 @@ void GLTrace_glGetBooleanv(GLenum pname, GLboolean * data) { arg_pname->set_type(GLMessage::DataType::ENUM); arg_pname->add_intvalue((int)pname); - // copy argument data - GLMessage_DataType *arg_data = glmsg.add_args(); - arg_data->set_isarray(false); - arg_data->set_type(GLMessage::DataType::INT64); - arg_data->add_int64value((uintptr_t)data); + // copy argument params + GLMessage_DataType *arg_params = glmsg.add_args(); + arg_params->set_isarray(false); + arg_params->set_type(GLMessage::DataType::INT64); + arg_params->add_int64value((uintptr_t)params); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetBooleanv(pname, data); + glContext->hooks->gl.glGetBooleanv(pname, params); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) data, + (void *) params, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -2292,7 +2292,7 @@ void GLTrace_glGetBooleanv(GLenum pname, GLboolean * data) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetBufferParameteriv(GLenum target, GLenum pname, GLint * params) { +void GLTrace_glGetBufferParameteriv(GLenum target, GLenum pname, GLint* params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -2363,7 +2363,7 @@ GLenum GLTrace_glGetError(void) { return retValue; } -void GLTrace_glGetFloatv(GLenum pname, GLfloat * data) { +void GLTrace_glGetFloatv(GLenum pname, GLfloat* params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -2375,21 +2375,21 @@ void GLTrace_glGetFloatv(GLenum pname, GLfloat * data) { arg_pname->set_type(GLMessage::DataType::ENUM); arg_pname->add_intvalue((int)pname); - // copy argument data - GLMessage_DataType *arg_data = glmsg.add_args(); - arg_data->set_isarray(false); - arg_data->set_type(GLMessage::DataType::INT64); - arg_data->add_int64value((uintptr_t)data); + // copy argument params + GLMessage_DataType *arg_params = glmsg.add_args(); + arg_params->set_isarray(false); + arg_params->set_type(GLMessage::DataType::INT64); + arg_params->add_int64value((uintptr_t)params); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetFloatv(pname, data); + glContext->hooks->gl.glGetFloatv(pname, params); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) data, + (void *) params, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -2398,7 +2398,7 @@ void GLTrace_glGetFloatv(GLenum pname, GLfloat * data) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint * params) { +void GLTrace_glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint* params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -2445,7 +2445,7 @@ void GLTrace_glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachm glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetIntegerv(GLenum pname, GLint * data) { +void GLTrace_glGetIntegerv(GLenum pname, GLint* params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -2457,21 +2457,21 @@ void GLTrace_glGetIntegerv(GLenum pname, GLint * data) { arg_pname->set_type(GLMessage::DataType::ENUM); arg_pname->add_intvalue((int)pname); - // copy argument data - GLMessage_DataType *arg_data = glmsg.add_args(); - arg_data->set_isarray(false); - arg_data->set_type(GLMessage::DataType::INT64); - arg_data->add_int64value((uintptr_t)data); + // copy argument params + GLMessage_DataType *arg_params = glmsg.add_args(); + arg_params->set_isarray(false); + arg_params->set_type(GLMessage::DataType::INT64); + arg_params->add_int64value((uintptr_t)params); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetIntegerv(pname, data); + glContext->hooks->gl.glGetIntegerv(pname, params); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) data, + (void *) params, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -2480,7 +2480,7 @@ void GLTrace_glGetIntegerv(GLenum pname, GLint * data) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetProgramiv(GLuint program, GLenum pname, GLint * params) { +void GLTrace_glGetProgramiv(GLuint program, GLenum pname, GLint* params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -2521,7 +2521,7 @@ void GLTrace_glGetProgramiv(GLuint program, GLenum pname, GLint * params) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei * length, GLchar * infoLog) { +void GLTrace_glGetProgramInfoLog(GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -2533,11 +2533,11 @@ void GLTrace_glGetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei * leng arg_program->set_type(GLMessage::DataType::INT); arg_program->add_intvalue(program); - // copy argument bufSize - GLMessage_DataType *arg_bufSize = glmsg.add_args(); - arg_bufSize->set_isarray(false); - arg_bufSize->set_type(GLMessage::DataType::INT); - arg_bufSize->add_intvalue(bufSize); + // copy argument bufsize + GLMessage_DataType *arg_bufsize = glmsg.add_args(); + arg_bufsize->set_isarray(false); + arg_bufsize->set_type(GLMessage::DataType::INT); + arg_bufsize->add_intvalue(bufsize); // copy argument length GLMessage_DataType *arg_length = glmsg.add_args(); @@ -2545,22 +2545,22 @@ void GLTrace_glGetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei * leng arg_length->set_type(GLMessage::DataType::INT64); arg_length->add_int64value((uintptr_t)length); - // copy argument infoLog - GLMessage_DataType *arg_infoLog = glmsg.add_args(); - arg_infoLog->set_isarray(false); - arg_infoLog->set_type(GLMessage::DataType::INT64); - arg_infoLog->add_int64value((uintptr_t)infoLog); + // copy argument infolog + GLMessage_DataType *arg_infolog = glmsg.add_args(); + arg_infolog->set_isarray(false); + arg_infolog->set_type(GLMessage::DataType::INT64); + arg_infolog->add_int64value((uintptr_t)infolog); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetProgramInfoLog(program, bufSize, length, infoLog); + glContext->hooks->gl.glGetProgramInfoLog(program, bufsize, length, infolog); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { (void *) length, - (void *) infoLog, + (void *) infolog, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -2569,7 +2569,7 @@ void GLTrace_glGetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei * leng glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint * params) { +void GLTrace_glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint* params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -2610,7 +2610,7 @@ void GLTrace_glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint * p glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetShaderiv(GLuint shader, GLenum pname, GLint * params) { +void GLTrace_glGetShaderiv(GLuint shader, GLenum pname, GLint* params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -2651,7 +2651,7 @@ void GLTrace_glGetShaderiv(GLuint shader, GLenum pname, GLint * params) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei * length, GLchar * infoLog) { +void GLTrace_glGetShaderInfoLog(GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -2663,11 +2663,11 @@ void GLTrace_glGetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei * length arg_shader->set_type(GLMessage::DataType::INT); arg_shader->add_intvalue(shader); - // copy argument bufSize - GLMessage_DataType *arg_bufSize = glmsg.add_args(); - arg_bufSize->set_isarray(false); - arg_bufSize->set_type(GLMessage::DataType::INT); - arg_bufSize->add_intvalue(bufSize); + // copy argument bufsize + GLMessage_DataType *arg_bufsize = glmsg.add_args(); + arg_bufsize->set_isarray(false); + arg_bufsize->set_type(GLMessage::DataType::INT); + arg_bufsize->add_intvalue(bufsize); // copy argument length GLMessage_DataType *arg_length = glmsg.add_args(); @@ -2675,22 +2675,22 @@ void GLTrace_glGetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei * length arg_length->set_type(GLMessage::DataType::INT64); arg_length->add_int64value((uintptr_t)length); - // copy argument infoLog - GLMessage_DataType *arg_infoLog = glmsg.add_args(); - arg_infoLog->set_isarray(false); - arg_infoLog->set_type(GLMessage::DataType::INT64); - arg_infoLog->add_int64value((uintptr_t)infoLog); + // copy argument infolog + GLMessage_DataType *arg_infolog = glmsg.add_args(); + arg_infolog->set_isarray(false); + arg_infolog->set_type(GLMessage::DataType::INT64); + arg_infolog->add_int64value((uintptr_t)infolog); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetShaderInfoLog(shader, bufSize, length, infoLog); + glContext->hooks->gl.glGetShaderInfoLog(shader, bufsize, length, infolog); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { (void *) length, - (void *) infoLog, + (void *) infolog, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -2699,7 +2699,7 @@ void GLTrace_glGetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei * length glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint * range, GLint * precision) { +void GLTrace_glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -2747,7 +2747,7 @@ void GLTrace_glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetShaderSource(GLuint shader, GLsizei bufSize, GLsizei * length, GLchar * source) { +void GLTrace_glGetShaderSource(GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -2759,11 +2759,11 @@ void GLTrace_glGetShaderSource(GLuint shader, GLsizei bufSize, GLsizei * length, arg_shader->set_type(GLMessage::DataType::INT); arg_shader->add_intvalue(shader); - // copy argument bufSize - GLMessage_DataType *arg_bufSize = glmsg.add_args(); - arg_bufSize->set_isarray(false); - arg_bufSize->set_type(GLMessage::DataType::INT); - arg_bufSize->add_intvalue(bufSize); + // copy argument bufsize + GLMessage_DataType *arg_bufsize = glmsg.add_args(); + arg_bufsize->set_isarray(false); + arg_bufsize->set_type(GLMessage::DataType::INT); + arg_bufsize->add_intvalue(bufsize); // copy argument length GLMessage_DataType *arg_length = glmsg.add_args(); @@ -2780,7 +2780,7 @@ void GLTrace_glGetShaderSource(GLuint shader, GLsizei bufSize, GLsizei * length, // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetShaderSource(shader, bufSize, length, source); + glContext->hooks->gl.glGetShaderSource(shader, bufsize, length, source); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -2795,7 +2795,7 @@ void GLTrace_glGetShaderSource(GLuint shader, GLsizei bufSize, GLsizei * length, glContext->traceGLMessage(&glmsg); } -const GLubyte * GLTrace_glGetString(GLenum name) { +const GLubyte* GLTrace_glGetString(GLenum name) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -2810,7 +2810,7 @@ const GLubyte * GLTrace_glGetString(GLenum name) { // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - const GLubyte * retValue = glContext->hooks->gl.glGetString(name); + const GLubyte* retValue = glContext->hooks->gl.glGetString(name); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -2832,7 +2832,7 @@ const GLubyte * GLTrace_glGetString(GLenum name) { return retValue; } -void GLTrace_glGetTexParameterfv(GLenum target, GLenum pname, GLfloat * params) { +void GLTrace_glGetTexParameterfv(GLenum target, GLenum pname, GLfloat* params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -2873,7 +2873,7 @@ void GLTrace_glGetTexParameterfv(GLenum target, GLenum pname, GLfloat * params) glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetTexParameteriv(GLenum target, GLenum pname, GLint * params) { +void GLTrace_glGetTexParameteriv(GLenum target, GLenum pname, GLint* params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -2914,7 +2914,7 @@ void GLTrace_glGetTexParameteriv(GLenum target, GLenum pname, GLint * params) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetUniformfv(GLuint program, GLint location, GLfloat * params) { +void GLTrace_glGetUniformfv(GLuint program, GLint location, GLfloat* params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -2955,7 +2955,7 @@ void GLTrace_glGetUniformfv(GLuint program, GLint location, GLfloat * params) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetUniformiv(GLuint program, GLint location, GLint * params) { +void GLTrace_glGetUniformiv(GLuint program, GLint location, GLint* params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -2996,7 +2996,7 @@ void GLTrace_glGetUniformiv(GLuint program, GLint location, GLint * params) { glContext->traceGLMessage(&glmsg); } -GLint GLTrace_glGetUniformLocation(GLuint program, const GLchar * name) { +GLint GLTrace_glGetUniformLocation(GLuint program, const GLchar* name) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -3039,7 +3039,7 @@ GLint GLTrace_glGetUniformLocation(GLuint program, const GLchar * name) { return retValue; } -void GLTrace_glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat * params) { +void GLTrace_glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat* params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -3080,7 +3080,7 @@ void GLTrace_glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat * params) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetVertexAttribiv(GLuint index, GLenum pname, GLint * params) { +void GLTrace_glGetVertexAttribiv(GLuint index, GLenum pname, GLint* params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -3121,7 +3121,7 @@ void GLTrace_glGetVertexAttribiv(GLuint index, GLenum pname, GLint * params) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetVertexAttribPointerv(GLuint index, GLenum pname, void ** pointer) { +void GLTrace_glGetVertexAttribPointerv(GLuint index, GLenum pname, GLvoid** pointer) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -3572,7 +3572,7 @@ void GLTrace_glPolygonOffset(GLfloat factor, GLfloat units) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void * pixels) { +void GLTrace_glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -3785,17 +3785,17 @@ void GLTrace_glScissor(GLint x, GLint y, GLsizei width, GLsizei height) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glShaderBinary(GLsizei count, const GLuint * shaders, GLenum binaryformat, const void * binary, GLsizei length) { +void GLTrace_glShaderBinary(GLsizei n, const GLuint* shaders, GLenum binaryformat, const GLvoid* binary, GLsizei length) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); glmsg.set_function(GLMessage::glShaderBinary); - // copy argument count - GLMessage_DataType *arg_count = glmsg.add_args(); - arg_count->set_isarray(false); - arg_count->set_type(GLMessage::DataType::INT); - arg_count->add_intvalue(count); + // copy argument n + GLMessage_DataType *arg_n = glmsg.add_args(); + arg_n->set_isarray(false); + arg_n->set_type(GLMessage::DataType::INT); + arg_n->add_intvalue(n); // copy argument shaders GLMessage_DataType *arg_shaders = glmsg.add_args(); @@ -3824,7 +3824,7 @@ void GLTrace_glShaderBinary(GLsizei count, const GLuint * shaders, GLenum binary // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glShaderBinary(count, shaders, binaryformat, binary, length); + glContext->hooks->gl.glShaderBinary(n, shaders, binaryformat, binary, length); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -3839,7 +3839,7 @@ void GLTrace_glShaderBinary(GLsizei count, const GLuint * shaders, GLenum binary glContext->traceGLMessage(&glmsg); } -void GLTrace_glShaderSource(GLuint shader, GLsizei count, const GLchar *const* string, const GLint * length) { +void GLTrace_glShaderSource(GLuint shader, GLsizei count, const GLchar* const* string, const GLint* length) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -4075,7 +4075,7 @@ void GLTrace_glStencilOp(GLenum fail, GLenum zfail, GLenum zpass) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glStencilOpSeparate(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass) { +void GLTrace_glStencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -4087,28 +4087,28 @@ void GLTrace_glStencilOpSeparate(GLenum face, GLenum sfail, GLenum dpfail, GLenu arg_face->set_type(GLMessage::DataType::ENUM); arg_face->add_intvalue((int)face); - // copy argument sfail - GLMessage_DataType *arg_sfail = glmsg.add_args(); - arg_sfail->set_isarray(false); - arg_sfail->set_type(GLMessage::DataType::ENUM); - arg_sfail->add_intvalue((int)sfail); + // copy argument fail + GLMessage_DataType *arg_fail = glmsg.add_args(); + arg_fail->set_isarray(false); + arg_fail->set_type(GLMessage::DataType::ENUM); + arg_fail->add_intvalue((int)fail); - // copy argument dpfail - GLMessage_DataType *arg_dpfail = glmsg.add_args(); - arg_dpfail->set_isarray(false); - arg_dpfail->set_type(GLMessage::DataType::ENUM); - arg_dpfail->add_intvalue((int)dpfail); + // copy argument zfail + GLMessage_DataType *arg_zfail = glmsg.add_args(); + arg_zfail->set_isarray(false); + arg_zfail->set_type(GLMessage::DataType::ENUM); + arg_zfail->add_intvalue((int)zfail); - // copy argument dppass - GLMessage_DataType *arg_dppass = glmsg.add_args(); - arg_dppass->set_isarray(false); - arg_dppass->set_type(GLMessage::DataType::ENUM); - arg_dppass->add_intvalue((int)dppass); + // copy argument zpass + GLMessage_DataType *arg_zpass = glmsg.add_args(); + arg_zpass->set_isarray(false); + arg_zpass->set_type(GLMessage::DataType::ENUM); + arg_zpass->add_intvalue((int)zpass); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glStencilOpSeparate(face, sfail, dpfail, dppass); + glContext->hooks->gl.glStencilOpSeparate(face, fail, zfail, zpass); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -4121,7 +4121,7 @@ void GLTrace_glStencilOpSeparate(GLenum face, GLenum sfail, GLenum dpfail, GLenu glContext->traceGLMessage(&glmsg); } -void GLTrace_glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void * pixels) { +void GLTrace_glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* pixels) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -4238,7 +4238,7 @@ void GLTrace_glTexParameterf(GLenum target, GLenum pname, GLfloat param) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glTexParameterfv(GLenum target, GLenum pname, const GLfloat * params) { +void GLTrace_glTexParameterfv(GLenum target, GLenum pname, const GLfloat* params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -4319,7 +4319,7 @@ void GLTrace_glTexParameteri(GLenum target, GLenum pname, GLint param) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glTexParameteriv(GLenum target, GLenum pname, const GLint * params) { +void GLTrace_glTexParameteriv(GLenum target, GLenum pname, const GLint* params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -4360,7 +4360,7 @@ void GLTrace_glTexParameteriv(GLenum target, GLenum pname, const GLint * params) glContext->traceGLMessage(&glmsg); } -void GLTrace_glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void * pixels) { +void GLTrace_glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* pixels) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -4437,7 +4437,7 @@ void GLTrace_glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yo glContext->traceGLMessage(&glmsg); } -void GLTrace_glUniform1f(GLint location, GLfloat v0) { +void GLTrace_glUniform1f(GLint location, GLfloat x) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -4449,16 +4449,16 @@ void GLTrace_glUniform1f(GLint location, GLfloat v0) { arg_location->set_type(GLMessage::DataType::INT); arg_location->add_intvalue(location); - // copy argument v0 - GLMessage_DataType *arg_v0 = glmsg.add_args(); - arg_v0->set_isarray(false); - arg_v0->set_type(GLMessage::DataType::FLOAT); - arg_v0->add_floatvalue(v0); + // copy argument x + GLMessage_DataType *arg_x = glmsg.add_args(); + arg_x->set_isarray(false); + arg_x->set_type(GLMessage::DataType::FLOAT); + arg_x->add_floatvalue(x); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glUniform1f(location, v0); + glContext->hooks->gl.glUniform1f(location, x); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -4471,7 +4471,7 @@ void GLTrace_glUniform1f(GLint location, GLfloat v0) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glUniform1fv(GLint location, GLsizei count, const GLfloat * value) { +void GLTrace_glUniform1fv(GLint location, GLsizei count, const GLfloat* v) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -4489,21 +4489,21 @@ void GLTrace_glUniform1fv(GLint location, GLsizei count, const GLfloat * value) arg_count->set_type(GLMessage::DataType::INT); arg_count->add_intvalue(count); - // copy argument value - GLMessage_DataType *arg_value = glmsg.add_args(); - arg_value->set_isarray(false); - arg_value->set_type(GLMessage::DataType::INT64); - arg_value->add_int64value((uintptr_t)value); + // copy argument v + GLMessage_DataType *arg_v = glmsg.add_args(); + arg_v->set_isarray(false); + arg_v->set_type(GLMessage::DataType::INT64); + arg_v->add_int64value((uintptr_t)v); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glUniform1fv(location, count, value); + glContext->hooks->gl.glUniform1fv(location, count, v); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) value, + (void *) v, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -4512,7 +4512,7 @@ void GLTrace_glUniform1fv(GLint location, GLsizei count, const GLfloat * value) glContext->traceGLMessage(&glmsg); } -void GLTrace_glUniform1i(GLint location, GLint v0) { +void GLTrace_glUniform1i(GLint location, GLint x) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -4524,16 +4524,16 @@ void GLTrace_glUniform1i(GLint location, GLint v0) { arg_location->set_type(GLMessage::DataType::INT); arg_location->add_intvalue(location); - // copy argument v0 - GLMessage_DataType *arg_v0 = glmsg.add_args(); - arg_v0->set_isarray(false); - arg_v0->set_type(GLMessage::DataType::INT); - arg_v0->add_intvalue(v0); + // copy argument x + GLMessage_DataType *arg_x = glmsg.add_args(); + arg_x->set_isarray(false); + arg_x->set_type(GLMessage::DataType::INT); + arg_x->add_intvalue(x); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glUniform1i(location, v0); + glContext->hooks->gl.glUniform1i(location, x); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -4546,7 +4546,7 @@ void GLTrace_glUniform1i(GLint location, GLint v0) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glUniform1iv(GLint location, GLsizei count, const GLint * value) { +void GLTrace_glUniform1iv(GLint location, GLsizei count, const GLint* v) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -4564,21 +4564,21 @@ void GLTrace_glUniform1iv(GLint location, GLsizei count, const GLint * value) { arg_count->set_type(GLMessage::DataType::INT); arg_count->add_intvalue(count); - // copy argument value - GLMessage_DataType *arg_value = glmsg.add_args(); - arg_value->set_isarray(false); - arg_value->set_type(GLMessage::DataType::INT64); - arg_value->add_int64value((uintptr_t)value); + // copy argument v + GLMessage_DataType *arg_v = glmsg.add_args(); + arg_v->set_isarray(false); + arg_v->set_type(GLMessage::DataType::INT64); + arg_v->add_int64value((uintptr_t)v); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glUniform1iv(location, count, value); + glContext->hooks->gl.glUniform1iv(location, count, v); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) value, + (void *) v, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -4587,7 +4587,7 @@ void GLTrace_glUniform1iv(GLint location, GLsizei count, const GLint * value) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glUniform2f(GLint location, GLfloat v0, GLfloat v1) { +void GLTrace_glUniform2f(GLint location, GLfloat x, GLfloat y) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -4599,22 +4599,22 @@ void GLTrace_glUniform2f(GLint location, GLfloat v0, GLfloat v1) { arg_location->set_type(GLMessage::DataType::INT); arg_location->add_intvalue(location); - // copy argument v0 - GLMessage_DataType *arg_v0 = glmsg.add_args(); - arg_v0->set_isarray(false); - arg_v0->set_type(GLMessage::DataType::FLOAT); - arg_v0->add_floatvalue(v0); + // copy argument x + GLMessage_DataType *arg_x = glmsg.add_args(); + arg_x->set_isarray(false); + arg_x->set_type(GLMessage::DataType::FLOAT); + arg_x->add_floatvalue(x); - // copy argument v1 - GLMessage_DataType *arg_v1 = glmsg.add_args(); - arg_v1->set_isarray(false); - arg_v1->set_type(GLMessage::DataType::FLOAT); - arg_v1->add_floatvalue(v1); + // copy argument y + GLMessage_DataType *arg_y = glmsg.add_args(); + arg_y->set_isarray(false); + arg_y->set_type(GLMessage::DataType::FLOAT); + arg_y->add_floatvalue(y); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glUniform2f(location, v0, v1); + glContext->hooks->gl.glUniform2f(location, x, y); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -4627,7 +4627,7 @@ void GLTrace_glUniform2f(GLint location, GLfloat v0, GLfloat v1) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glUniform2fv(GLint location, GLsizei count, const GLfloat * value) { +void GLTrace_glUniform2fv(GLint location, GLsizei count, const GLfloat* v) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -4645,21 +4645,21 @@ void GLTrace_glUniform2fv(GLint location, GLsizei count, const GLfloat * value) arg_count->set_type(GLMessage::DataType::INT); arg_count->add_intvalue(count); - // copy argument value - GLMessage_DataType *arg_value = glmsg.add_args(); - arg_value->set_isarray(false); - arg_value->set_type(GLMessage::DataType::INT64); - arg_value->add_int64value((uintptr_t)value); + // copy argument v + GLMessage_DataType *arg_v = glmsg.add_args(); + arg_v->set_isarray(false); + arg_v->set_type(GLMessage::DataType::INT64); + arg_v->add_int64value((uintptr_t)v); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glUniform2fv(location, count, value); + glContext->hooks->gl.glUniform2fv(location, count, v); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) value, + (void *) v, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -4668,7 +4668,7 @@ void GLTrace_glUniform2fv(GLint location, GLsizei count, const GLfloat * value) glContext->traceGLMessage(&glmsg); } -void GLTrace_glUniform2i(GLint location, GLint v0, GLint v1) { +void GLTrace_glUniform2i(GLint location, GLint x, GLint y) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -4680,22 +4680,22 @@ void GLTrace_glUniform2i(GLint location, GLint v0, GLint v1) { arg_location->set_type(GLMessage::DataType::INT); arg_location->add_intvalue(location); - // copy argument v0 - GLMessage_DataType *arg_v0 = glmsg.add_args(); - arg_v0->set_isarray(false); - arg_v0->set_type(GLMessage::DataType::INT); - arg_v0->add_intvalue(v0); + // copy argument x + GLMessage_DataType *arg_x = glmsg.add_args(); + arg_x->set_isarray(false); + arg_x->set_type(GLMessage::DataType::INT); + arg_x->add_intvalue(x); - // copy argument v1 - GLMessage_DataType *arg_v1 = glmsg.add_args(); - arg_v1->set_isarray(false); - arg_v1->set_type(GLMessage::DataType::INT); - arg_v1->add_intvalue(v1); + // copy argument y + GLMessage_DataType *arg_y = glmsg.add_args(); + arg_y->set_isarray(false); + arg_y->set_type(GLMessage::DataType::INT); + arg_y->add_intvalue(y); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glUniform2i(location, v0, v1); + glContext->hooks->gl.glUniform2i(location, x, y); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -4708,7 +4708,7 @@ void GLTrace_glUniform2i(GLint location, GLint v0, GLint v1) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glUniform2iv(GLint location, GLsizei count, const GLint * value) { +void GLTrace_glUniform2iv(GLint location, GLsizei count, const GLint* v) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -4726,21 +4726,21 @@ void GLTrace_glUniform2iv(GLint location, GLsizei count, const GLint * value) { arg_count->set_type(GLMessage::DataType::INT); arg_count->add_intvalue(count); - // copy argument value - GLMessage_DataType *arg_value = glmsg.add_args(); - arg_value->set_isarray(false); - arg_value->set_type(GLMessage::DataType::INT64); - arg_value->add_int64value((uintptr_t)value); + // copy argument v + GLMessage_DataType *arg_v = glmsg.add_args(); + arg_v->set_isarray(false); + arg_v->set_type(GLMessage::DataType::INT64); + arg_v->add_int64value((uintptr_t)v); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glUniform2iv(location, count, value); + glContext->hooks->gl.glUniform2iv(location, count, v); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) value, + (void *) v, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -4749,7 +4749,7 @@ void GLTrace_glUniform2iv(GLint location, GLsizei count, const GLint * value) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glUniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2) { +void GLTrace_glUniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -4761,28 +4761,28 @@ void GLTrace_glUniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2) { arg_location->set_type(GLMessage::DataType::INT); arg_location->add_intvalue(location); - // copy argument v0 - GLMessage_DataType *arg_v0 = glmsg.add_args(); - arg_v0->set_isarray(false); - arg_v0->set_type(GLMessage::DataType::FLOAT); - arg_v0->add_floatvalue(v0); + // copy argument x + GLMessage_DataType *arg_x = glmsg.add_args(); + arg_x->set_isarray(false); + arg_x->set_type(GLMessage::DataType::FLOAT); + arg_x->add_floatvalue(x); - // copy argument v1 - GLMessage_DataType *arg_v1 = glmsg.add_args(); - arg_v1->set_isarray(false); - arg_v1->set_type(GLMessage::DataType::FLOAT); - arg_v1->add_floatvalue(v1); + // copy argument y + GLMessage_DataType *arg_y = glmsg.add_args(); + arg_y->set_isarray(false); + arg_y->set_type(GLMessage::DataType::FLOAT); + arg_y->add_floatvalue(y); - // copy argument v2 - GLMessage_DataType *arg_v2 = glmsg.add_args(); - arg_v2->set_isarray(false); - arg_v2->set_type(GLMessage::DataType::FLOAT); - arg_v2->add_floatvalue(v2); + // copy argument z + GLMessage_DataType *arg_z = glmsg.add_args(); + arg_z->set_isarray(false); + arg_z->set_type(GLMessage::DataType::FLOAT); + arg_z->add_floatvalue(z); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glUniform3f(location, v0, v1, v2); + glContext->hooks->gl.glUniform3f(location, x, y, z); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -4795,7 +4795,7 @@ void GLTrace_glUniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glUniform3fv(GLint location, GLsizei count, const GLfloat * value) { +void GLTrace_glUniform3fv(GLint location, GLsizei count, const GLfloat* v) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -4813,21 +4813,21 @@ void GLTrace_glUniform3fv(GLint location, GLsizei count, const GLfloat * value) arg_count->set_type(GLMessage::DataType::INT); arg_count->add_intvalue(count); - // copy argument value - GLMessage_DataType *arg_value = glmsg.add_args(); - arg_value->set_isarray(false); - arg_value->set_type(GLMessage::DataType::INT64); - arg_value->add_int64value((uintptr_t)value); + // copy argument v + GLMessage_DataType *arg_v = glmsg.add_args(); + arg_v->set_isarray(false); + arg_v->set_type(GLMessage::DataType::INT64); + arg_v->add_int64value((uintptr_t)v); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glUniform3fv(location, count, value); + glContext->hooks->gl.glUniform3fv(location, count, v); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) value, + (void *) v, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -4836,7 +4836,7 @@ void GLTrace_glUniform3fv(GLint location, GLsizei count, const GLfloat * value) glContext->traceGLMessage(&glmsg); } -void GLTrace_glUniform3i(GLint location, GLint v0, GLint v1, GLint v2) { +void GLTrace_glUniform3i(GLint location, GLint x, GLint y, GLint z) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -4848,28 +4848,28 @@ void GLTrace_glUniform3i(GLint location, GLint v0, GLint v1, GLint v2) { arg_location->set_type(GLMessage::DataType::INT); arg_location->add_intvalue(location); - // copy argument v0 - GLMessage_DataType *arg_v0 = glmsg.add_args(); - arg_v0->set_isarray(false); - arg_v0->set_type(GLMessage::DataType::INT); - arg_v0->add_intvalue(v0); + // copy argument x + GLMessage_DataType *arg_x = glmsg.add_args(); + arg_x->set_isarray(false); + arg_x->set_type(GLMessage::DataType::INT); + arg_x->add_intvalue(x); - // copy argument v1 - GLMessage_DataType *arg_v1 = glmsg.add_args(); - arg_v1->set_isarray(false); - arg_v1->set_type(GLMessage::DataType::INT); - arg_v1->add_intvalue(v1); + // copy argument y + GLMessage_DataType *arg_y = glmsg.add_args(); + arg_y->set_isarray(false); + arg_y->set_type(GLMessage::DataType::INT); + arg_y->add_intvalue(y); - // copy argument v2 - GLMessage_DataType *arg_v2 = glmsg.add_args(); - arg_v2->set_isarray(false); - arg_v2->set_type(GLMessage::DataType::INT); - arg_v2->add_intvalue(v2); + // copy argument z + GLMessage_DataType *arg_z = glmsg.add_args(); + arg_z->set_isarray(false); + arg_z->set_type(GLMessage::DataType::INT); + arg_z->add_intvalue(z); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glUniform3i(location, v0, v1, v2); + glContext->hooks->gl.glUniform3i(location, x, y, z); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -4882,7 +4882,7 @@ void GLTrace_glUniform3i(GLint location, GLint v0, GLint v1, GLint v2) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glUniform3iv(GLint location, GLsizei count, const GLint * value) { +void GLTrace_glUniform3iv(GLint location, GLsizei count, const GLint* v) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -4900,21 +4900,21 @@ void GLTrace_glUniform3iv(GLint location, GLsizei count, const GLint * value) { arg_count->set_type(GLMessage::DataType::INT); arg_count->add_intvalue(count); - // copy argument value - GLMessage_DataType *arg_value = glmsg.add_args(); - arg_value->set_isarray(false); - arg_value->set_type(GLMessage::DataType::INT64); - arg_value->add_int64value((uintptr_t)value); + // copy argument v + GLMessage_DataType *arg_v = glmsg.add_args(); + arg_v->set_isarray(false); + arg_v->set_type(GLMessage::DataType::INT64); + arg_v->add_int64value((uintptr_t)v); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glUniform3iv(location, count, value); + glContext->hooks->gl.glUniform3iv(location, count, v); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) value, + (void *) v, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -4923,7 +4923,7 @@ void GLTrace_glUniform3iv(GLint location, GLsizei count, const GLint * value) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glUniform4f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3) { +void GLTrace_glUniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -4935,34 +4935,34 @@ void GLTrace_glUniform4f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLf arg_location->set_type(GLMessage::DataType::INT); arg_location->add_intvalue(location); - // copy argument v0 - GLMessage_DataType *arg_v0 = glmsg.add_args(); - arg_v0->set_isarray(false); - arg_v0->set_type(GLMessage::DataType::FLOAT); - arg_v0->add_floatvalue(v0); + // copy argument x + GLMessage_DataType *arg_x = glmsg.add_args(); + arg_x->set_isarray(false); + arg_x->set_type(GLMessage::DataType::FLOAT); + arg_x->add_floatvalue(x); - // copy argument v1 - GLMessage_DataType *arg_v1 = glmsg.add_args(); - arg_v1->set_isarray(false); - arg_v1->set_type(GLMessage::DataType::FLOAT); - arg_v1->add_floatvalue(v1); + // copy argument y + GLMessage_DataType *arg_y = glmsg.add_args(); + arg_y->set_isarray(false); + arg_y->set_type(GLMessage::DataType::FLOAT); + arg_y->add_floatvalue(y); - // copy argument v2 - GLMessage_DataType *arg_v2 = glmsg.add_args(); - arg_v2->set_isarray(false); - arg_v2->set_type(GLMessage::DataType::FLOAT); - arg_v2->add_floatvalue(v2); + // copy argument z + GLMessage_DataType *arg_z = glmsg.add_args(); + arg_z->set_isarray(false); + arg_z->set_type(GLMessage::DataType::FLOAT); + arg_z->add_floatvalue(z); - // copy argument v3 - GLMessage_DataType *arg_v3 = glmsg.add_args(); - arg_v3->set_isarray(false); - arg_v3->set_type(GLMessage::DataType::FLOAT); - arg_v3->add_floatvalue(v3); + // copy argument w + GLMessage_DataType *arg_w = glmsg.add_args(); + arg_w->set_isarray(false); + arg_w->set_type(GLMessage::DataType::FLOAT); + arg_w->add_floatvalue(w); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glUniform4f(location, v0, v1, v2, v3); + glContext->hooks->gl.glUniform4f(location, x, y, z, w); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -4975,7 +4975,7 @@ void GLTrace_glUniform4f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLf glContext->traceGLMessage(&glmsg); } -void GLTrace_glUniform4fv(GLint location, GLsizei count, const GLfloat * value) { +void GLTrace_glUniform4fv(GLint location, GLsizei count, const GLfloat* v) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -4993,21 +4993,21 @@ void GLTrace_glUniform4fv(GLint location, GLsizei count, const GLfloat * value) arg_count->set_type(GLMessage::DataType::INT); arg_count->add_intvalue(count); - // copy argument value - GLMessage_DataType *arg_value = glmsg.add_args(); - arg_value->set_isarray(false); - arg_value->set_type(GLMessage::DataType::INT64); - arg_value->add_int64value((uintptr_t)value); + // copy argument v + GLMessage_DataType *arg_v = glmsg.add_args(); + arg_v->set_isarray(false); + arg_v->set_type(GLMessage::DataType::INT64); + arg_v->add_int64value((uintptr_t)v); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glUniform4fv(location, count, value); + glContext->hooks->gl.glUniform4fv(location, count, v); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) value, + (void *) v, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -5016,7 +5016,7 @@ void GLTrace_glUniform4fv(GLint location, GLsizei count, const GLfloat * value) glContext->traceGLMessage(&glmsg); } -void GLTrace_glUniform4i(GLint location, GLint v0, GLint v1, GLint v2, GLint v3) { +void GLTrace_glUniform4i(GLint location, GLint x, GLint y, GLint z, GLint w) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -5028,34 +5028,34 @@ void GLTrace_glUniform4i(GLint location, GLint v0, GLint v1, GLint v2, GLint v3) arg_location->set_type(GLMessage::DataType::INT); arg_location->add_intvalue(location); - // copy argument v0 - GLMessage_DataType *arg_v0 = glmsg.add_args(); - arg_v0->set_isarray(false); - arg_v0->set_type(GLMessage::DataType::INT); - arg_v0->add_intvalue(v0); + // copy argument x + GLMessage_DataType *arg_x = glmsg.add_args(); + arg_x->set_isarray(false); + arg_x->set_type(GLMessage::DataType::INT); + arg_x->add_intvalue(x); - // copy argument v1 - GLMessage_DataType *arg_v1 = glmsg.add_args(); - arg_v1->set_isarray(false); - arg_v1->set_type(GLMessage::DataType::INT); - arg_v1->add_intvalue(v1); + // copy argument y + GLMessage_DataType *arg_y = glmsg.add_args(); + arg_y->set_isarray(false); + arg_y->set_type(GLMessage::DataType::INT); + arg_y->add_intvalue(y); - // copy argument v2 - GLMessage_DataType *arg_v2 = glmsg.add_args(); - arg_v2->set_isarray(false); - arg_v2->set_type(GLMessage::DataType::INT); - arg_v2->add_intvalue(v2); + // copy argument z + GLMessage_DataType *arg_z = glmsg.add_args(); + arg_z->set_isarray(false); + arg_z->set_type(GLMessage::DataType::INT); + arg_z->add_intvalue(z); - // copy argument v3 - GLMessage_DataType *arg_v3 = glmsg.add_args(); - arg_v3->set_isarray(false); - arg_v3->set_type(GLMessage::DataType::INT); - arg_v3->add_intvalue(v3); + // copy argument w + GLMessage_DataType *arg_w = glmsg.add_args(); + arg_w->set_isarray(false); + arg_w->set_type(GLMessage::DataType::INT); + arg_w->add_intvalue(w); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glUniform4i(location, v0, v1, v2, v3); + glContext->hooks->gl.glUniform4i(location, x, y, z, w); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -5068,7 +5068,7 @@ void GLTrace_glUniform4i(GLint location, GLint v0, GLint v1, GLint v2, GLint v3) glContext->traceGLMessage(&glmsg); } -void GLTrace_glUniform4iv(GLint location, GLsizei count, const GLint * value) { +void GLTrace_glUniform4iv(GLint location, GLsizei count, const GLint* v) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -5086,21 +5086,21 @@ void GLTrace_glUniform4iv(GLint location, GLsizei count, const GLint * value) { arg_count->set_type(GLMessage::DataType::INT); arg_count->add_intvalue(count); - // copy argument value - GLMessage_DataType *arg_value = glmsg.add_args(); - arg_value->set_isarray(false); - arg_value->set_type(GLMessage::DataType::INT64); - arg_value->add_int64value((uintptr_t)value); + // copy argument v + GLMessage_DataType *arg_v = glmsg.add_args(); + arg_v->set_isarray(false); + arg_v->set_type(GLMessage::DataType::INT64); + arg_v->add_int64value((uintptr_t)v); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glUniform4iv(location, count, value); + glContext->hooks->gl.glUniform4iv(location, count, v); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) value, + (void *) v, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -5109,7 +5109,7 @@ void GLTrace_glUniform4iv(GLint location, GLsizei count, const GLint * value) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { +void GLTrace_glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -5156,7 +5156,7 @@ void GLTrace_glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpo glContext->traceGLMessage(&glmsg); } -void GLTrace_glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { +void GLTrace_glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -5203,7 +5203,7 @@ void GLTrace_glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpo glContext->traceGLMessage(&glmsg); } -void GLTrace_glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { +void GLTrace_glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -5306,17 +5306,17 @@ void GLTrace_glValidateProgram(GLuint program) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glVertexAttrib1f(GLuint index, GLfloat x) { +void GLTrace_glVertexAttrib1f(GLuint indx, GLfloat x) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); glmsg.set_function(GLMessage::glVertexAttrib1f); - // copy argument index - GLMessage_DataType *arg_index = glmsg.add_args(); - arg_index->set_isarray(false); - arg_index->set_type(GLMessage::DataType::INT); - arg_index->add_intvalue(index); + // copy argument indx + GLMessage_DataType *arg_indx = glmsg.add_args(); + arg_indx->set_isarray(false); + arg_indx->set_type(GLMessage::DataType::INT); + arg_indx->add_intvalue(indx); // copy argument x GLMessage_DataType *arg_x = glmsg.add_args(); @@ -5327,7 +5327,7 @@ void GLTrace_glVertexAttrib1f(GLuint index, GLfloat x) { // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glVertexAttrib1f(index, x); + glContext->hooks->gl.glVertexAttrib1f(indx, x); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -5340,33 +5340,33 @@ void GLTrace_glVertexAttrib1f(GLuint index, GLfloat x) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glVertexAttrib1fv(GLuint index, const GLfloat * v) { +void GLTrace_glVertexAttrib1fv(GLuint indx, const GLfloat* values) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); glmsg.set_function(GLMessage::glVertexAttrib1fv); - // copy argument index - GLMessage_DataType *arg_index = glmsg.add_args(); - arg_index->set_isarray(false); - arg_index->set_type(GLMessage::DataType::INT); - arg_index->add_intvalue(index); + // copy argument indx + GLMessage_DataType *arg_indx = glmsg.add_args(); + arg_indx->set_isarray(false); + arg_indx->set_type(GLMessage::DataType::INT); + arg_indx->add_intvalue(indx); - // copy argument v - GLMessage_DataType *arg_v = glmsg.add_args(); - arg_v->set_isarray(false); - arg_v->set_type(GLMessage::DataType::INT64); - arg_v->add_int64value((uintptr_t)v); + // copy argument values + GLMessage_DataType *arg_values = glmsg.add_args(); + arg_values->set_isarray(false); + arg_values->set_type(GLMessage::DataType::INT64); + arg_values->add_int64value((uintptr_t)values); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glVertexAttrib1fv(index, v); + glContext->hooks->gl.glVertexAttrib1fv(indx, values); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) v, + (void *) values, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -5375,17 +5375,17 @@ void GLTrace_glVertexAttrib1fv(GLuint index, const GLfloat * v) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glVertexAttrib2f(GLuint index, GLfloat x, GLfloat y) { +void GLTrace_glVertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); glmsg.set_function(GLMessage::glVertexAttrib2f); - // copy argument index - GLMessage_DataType *arg_index = glmsg.add_args(); - arg_index->set_isarray(false); - arg_index->set_type(GLMessage::DataType::INT); - arg_index->add_intvalue(index); + // copy argument indx + GLMessage_DataType *arg_indx = glmsg.add_args(); + arg_indx->set_isarray(false); + arg_indx->set_type(GLMessage::DataType::INT); + arg_indx->add_intvalue(indx); // copy argument x GLMessage_DataType *arg_x = glmsg.add_args(); @@ -5402,7 +5402,7 @@ void GLTrace_glVertexAttrib2f(GLuint index, GLfloat x, GLfloat y) { // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glVertexAttrib2f(index, x, y); + glContext->hooks->gl.glVertexAttrib2f(indx, x, y); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -5415,33 +5415,33 @@ void GLTrace_glVertexAttrib2f(GLuint index, GLfloat x, GLfloat y) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glVertexAttrib2fv(GLuint index, const GLfloat * v) { +void GLTrace_glVertexAttrib2fv(GLuint indx, const GLfloat* values) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); glmsg.set_function(GLMessage::glVertexAttrib2fv); - // copy argument index - GLMessage_DataType *arg_index = glmsg.add_args(); - arg_index->set_isarray(false); - arg_index->set_type(GLMessage::DataType::INT); - arg_index->add_intvalue(index); + // copy argument indx + GLMessage_DataType *arg_indx = glmsg.add_args(); + arg_indx->set_isarray(false); + arg_indx->set_type(GLMessage::DataType::INT); + arg_indx->add_intvalue(indx); - // copy argument v - GLMessage_DataType *arg_v = glmsg.add_args(); - arg_v->set_isarray(false); - arg_v->set_type(GLMessage::DataType::INT64); - arg_v->add_int64value((uintptr_t)v); + // copy argument values + GLMessage_DataType *arg_values = glmsg.add_args(); + arg_values->set_isarray(false); + arg_values->set_type(GLMessage::DataType::INT64); + arg_values->add_int64value((uintptr_t)values); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glVertexAttrib2fv(index, v); + glContext->hooks->gl.glVertexAttrib2fv(indx, values); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) v, + (void *) values, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -5450,17 +5450,17 @@ void GLTrace_glVertexAttrib2fv(GLuint index, const GLfloat * v) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glVertexAttrib3f(GLuint index, GLfloat x, GLfloat y, GLfloat z) { +void GLTrace_glVertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); glmsg.set_function(GLMessage::glVertexAttrib3f); - // copy argument index - GLMessage_DataType *arg_index = glmsg.add_args(); - arg_index->set_isarray(false); - arg_index->set_type(GLMessage::DataType::INT); - arg_index->add_intvalue(index); + // copy argument indx + GLMessage_DataType *arg_indx = glmsg.add_args(); + arg_indx->set_isarray(false); + arg_indx->set_type(GLMessage::DataType::INT); + arg_indx->add_intvalue(indx); // copy argument x GLMessage_DataType *arg_x = glmsg.add_args(); @@ -5483,7 +5483,7 @@ void GLTrace_glVertexAttrib3f(GLuint index, GLfloat x, GLfloat y, GLfloat z) { // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glVertexAttrib3f(index, x, y, z); + glContext->hooks->gl.glVertexAttrib3f(indx, x, y, z); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -5496,33 +5496,33 @@ void GLTrace_glVertexAttrib3f(GLuint index, GLfloat x, GLfloat y, GLfloat z) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glVertexAttrib3fv(GLuint index, const GLfloat * v) { +void GLTrace_glVertexAttrib3fv(GLuint indx, const GLfloat* values) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); glmsg.set_function(GLMessage::glVertexAttrib3fv); - // copy argument index - GLMessage_DataType *arg_index = glmsg.add_args(); - arg_index->set_isarray(false); - arg_index->set_type(GLMessage::DataType::INT); - arg_index->add_intvalue(index); + // copy argument indx + GLMessage_DataType *arg_indx = glmsg.add_args(); + arg_indx->set_isarray(false); + arg_indx->set_type(GLMessage::DataType::INT); + arg_indx->add_intvalue(indx); - // copy argument v - GLMessage_DataType *arg_v = glmsg.add_args(); - arg_v->set_isarray(false); - arg_v->set_type(GLMessage::DataType::INT64); - arg_v->add_int64value((uintptr_t)v); + // copy argument values + GLMessage_DataType *arg_values = glmsg.add_args(); + arg_values->set_isarray(false); + arg_values->set_type(GLMessage::DataType::INT64); + arg_values->add_int64value((uintptr_t)values); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glVertexAttrib3fv(index, v); + glContext->hooks->gl.glVertexAttrib3fv(indx, values); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) v, + (void *) values, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -5531,17 +5531,17 @@ void GLTrace_glVertexAttrib3fv(GLuint index, const GLfloat * v) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glVertexAttrib4f(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { +void GLTrace_glVertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); glmsg.set_function(GLMessage::glVertexAttrib4f); - // copy argument index - GLMessage_DataType *arg_index = glmsg.add_args(); - arg_index->set_isarray(false); - arg_index->set_type(GLMessage::DataType::INT); - arg_index->add_intvalue(index); + // copy argument indx + GLMessage_DataType *arg_indx = glmsg.add_args(); + arg_indx->set_isarray(false); + arg_indx->set_type(GLMessage::DataType::INT); + arg_indx->add_intvalue(indx); // copy argument x GLMessage_DataType *arg_x = glmsg.add_args(); @@ -5570,7 +5570,7 @@ void GLTrace_glVertexAttrib4f(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLf // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glVertexAttrib4f(index, x, y, z, w); + glContext->hooks->gl.glVertexAttrib4f(indx, x, y, z, w); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -5583,33 +5583,33 @@ void GLTrace_glVertexAttrib4f(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLf glContext->traceGLMessage(&glmsg); } -void GLTrace_glVertexAttrib4fv(GLuint index, const GLfloat * v) { +void GLTrace_glVertexAttrib4fv(GLuint indx, const GLfloat* values) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); glmsg.set_function(GLMessage::glVertexAttrib4fv); - // copy argument index - GLMessage_DataType *arg_index = glmsg.add_args(); - arg_index->set_isarray(false); - arg_index->set_type(GLMessage::DataType::INT); - arg_index->add_intvalue(index); + // copy argument indx + GLMessage_DataType *arg_indx = glmsg.add_args(); + arg_indx->set_isarray(false); + arg_indx->set_type(GLMessage::DataType::INT); + arg_indx->add_intvalue(indx); - // copy argument v - GLMessage_DataType *arg_v = glmsg.add_args(); - arg_v->set_isarray(false); - arg_v->set_type(GLMessage::DataType::INT64); - arg_v->add_int64value((uintptr_t)v); + // copy argument values + GLMessage_DataType *arg_values = glmsg.add_args(); + arg_values->set_isarray(false); + arg_values->set_type(GLMessage::DataType::INT64); + arg_values->add_int64value((uintptr_t)values); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glVertexAttrib4fv(index, v); + glContext->hooks->gl.glVertexAttrib4fv(indx, values); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) v, + (void *) values, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -5618,17 +5618,17 @@ void GLTrace_glVertexAttrib4fv(GLuint index, const GLfloat * v) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void * pointer) { +void GLTrace_glVertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid* ptr) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); glmsg.set_function(GLMessage::glVertexAttribPointer); - // copy argument index - GLMessage_DataType *arg_index = glmsg.add_args(); - arg_index->set_isarray(false); - arg_index->set_type(GLMessage::DataType::INT); - arg_index->add_intvalue(index); + // copy argument indx + GLMessage_DataType *arg_indx = glmsg.add_args(); + arg_indx->set_isarray(false); + arg_indx->set_type(GLMessage::DataType::INT); + arg_indx->add_intvalue(indx); // copy argument size GLMessage_DataType *arg_size = glmsg.add_args(); @@ -5654,21 +5654,21 @@ void GLTrace_glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLbool arg_stride->set_type(GLMessage::DataType::INT); arg_stride->add_intvalue(stride); - // copy argument pointer - GLMessage_DataType *arg_pointer = glmsg.add_args(); - arg_pointer->set_isarray(false); - arg_pointer->set_type(GLMessage::DataType::INT64); - arg_pointer->add_int64value((uintptr_t)pointer); + // copy argument ptr + GLMessage_DataType *arg_ptr = glmsg.add_args(); + arg_ptr->set_isarray(false); + arg_ptr->set_type(GLMessage::DataType::INT64); + arg_ptr->add_int64value((uintptr_t)ptr); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glVertexAttribPointer(index, size, type, normalized, stride, pointer); + glContext->hooks->gl.glVertexAttribPointer(indx, size, type, normalized, stride, ptr); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) pointer, + (void *) ptr, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -5751,7 +5751,7 @@ void GLTrace_glReadBuffer(GLenum mode) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glDrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void * indices) { +void GLTrace_glDrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid* indices) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -5810,7 +5810,7 @@ void GLTrace_glDrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei glContext->traceGLMessage(&glmsg); } -void GLTrace_glTexImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void * pixels) { +void GLTrace_glTexImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid* pixels) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -5893,7 +5893,7 @@ void GLTrace_glTexImage3D(GLenum target, GLint level, GLint internalformat, GLsi glContext->traceGLMessage(&glmsg); } -void GLTrace_glTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void * pixels) { +void GLTrace_glTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid* pixels) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -6058,7 +6058,7 @@ void GLTrace_glCopyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLin glContext->traceGLMessage(&glmsg); } -void GLTrace_glCompressedTexImage3D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void * data) { +void GLTrace_glCompressedTexImage3D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid* data) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -6135,7 +6135,7 @@ void GLTrace_glCompressedTexImage3D(GLenum target, GLint level, GLenum internalf glContext->traceGLMessage(&glmsg); } -void GLTrace_glCompressedTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void * data) { +void GLTrace_glCompressedTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid* data) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -6224,7 +6224,7 @@ void GLTrace_glCompressedTexSubImage3D(GLenum target, GLint level, GLint xoffset glContext->traceGLMessage(&glmsg); } -void GLTrace_glGenQueries(GLsizei n, GLuint * ids) { +void GLTrace_glGenQueries(GLsizei n, GLuint* ids) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -6259,7 +6259,7 @@ void GLTrace_glGenQueries(GLsizei n, GLuint * ids) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glDeleteQueries(GLsizei n, const GLuint * ids) { +void GLTrace_glDeleteQueries(GLsizei n, const GLuint* ids) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -6392,7 +6392,7 @@ void GLTrace_glEndQuery(GLenum target) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetQueryiv(GLenum target, GLenum pname, GLint * params) { +void GLTrace_glGetQueryiv(GLenum target, GLenum pname, GLint* params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -6433,7 +6433,7 @@ void GLTrace_glGetQueryiv(GLenum target, GLenum pname, GLint * params) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint * params) { +void GLTrace_glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint* params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -6510,7 +6510,7 @@ GLboolean GLTrace_glUnmapBuffer(GLenum target) { return retValue; } -void GLTrace_glGetBufferPointerv(GLenum target, GLenum pname, void ** params) { +void GLTrace_glGetBufferPointerv(GLenum target, GLenum pname, GLvoid** params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -6551,7 +6551,7 @@ void GLTrace_glGetBufferPointerv(GLenum target, GLenum pname, void ** params) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glDrawBuffers(GLsizei n, const GLenum * bufs) { +void GLTrace_glDrawBuffers(GLsizei n, const GLenum* bufs) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -6586,7 +6586,7 @@ void GLTrace_glDrawBuffers(GLsizei n, const GLenum * bufs) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glUniformMatrix2x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { +void GLTrace_glUniformMatrix2x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -6633,7 +6633,7 @@ void GLTrace_glUniformMatrix2x3fv(GLint location, GLsizei count, GLboolean trans glContext->traceGLMessage(&glmsg); } -void GLTrace_glUniformMatrix3x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { +void GLTrace_glUniformMatrix3x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -6680,7 +6680,7 @@ void GLTrace_glUniformMatrix3x2fv(GLint location, GLsizei count, GLboolean trans glContext->traceGLMessage(&glmsg); } -void GLTrace_glUniformMatrix2x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { +void GLTrace_glUniformMatrix2x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -6727,7 +6727,7 @@ void GLTrace_glUniformMatrix2x4fv(GLint location, GLsizei count, GLboolean trans glContext->traceGLMessage(&glmsg); } -void GLTrace_glUniformMatrix4x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { +void GLTrace_glUniformMatrix4x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -6774,7 +6774,7 @@ void GLTrace_glUniformMatrix4x2fv(GLint location, GLsizei count, GLboolean trans glContext->traceGLMessage(&glmsg); } -void GLTrace_glUniformMatrix3x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { +void GLTrace_glUniformMatrix3x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -6821,7 +6821,7 @@ void GLTrace_glUniformMatrix3x4fv(GLint location, GLsizei count, GLboolean trans glContext->traceGLMessage(&glmsg); } -void GLTrace_glUniformMatrix4x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { +void GLTrace_glUniformMatrix4x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -7054,7 +7054,7 @@ void GLTrace_glFramebufferTextureLayer(GLenum target, GLenum attachment, GLuint glContext->traceGLMessage(&glmsg); } -void * GLTrace_glMapBufferRange(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access) { +GLvoid* GLTrace_glMapBufferRange(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -7087,7 +7087,7 @@ void * GLTrace_glMapBufferRange(GLenum target, GLintptr offset, GLsizeiptr lengt // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - void * retValue = glContext->hooks->gl.glMapBufferRange(target, offset, length, access); + GLvoid* retValue = glContext->hooks->gl.glMapBufferRange(target, offset, length, access); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -7177,7 +7177,7 @@ void GLTrace_glBindVertexArray(GLuint array) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glDeleteVertexArrays(GLsizei n, const GLuint * arrays) { +void GLTrace_glDeleteVertexArrays(GLsizei n, const GLuint* arrays) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -7212,7 +7212,7 @@ void GLTrace_glDeleteVertexArrays(GLsizei n, const GLuint * arrays) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGenVertexArrays(GLsizei n, GLuint * arrays) { +void GLTrace_glGenVertexArrays(GLsizei n, GLuint* arrays) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -7283,7 +7283,7 @@ GLboolean GLTrace_glIsVertexArray(GLuint array) { return retValue; } -void GLTrace_glGetIntegeri_v(GLenum target, GLuint index, GLint * data) { +void GLTrace_glGetIntegeri_v(GLenum target, GLuint index, GLint* data) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -7466,7 +7466,7 @@ void GLTrace_glBindBufferBase(GLenum target, GLuint index, GLuint buffer) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glTransformFeedbackVaryings(GLuint program, GLsizei count, const GLchar *const* varyings, GLenum bufferMode) { +void GLTrace_glTransformFeedbackVaryings(GLuint program, GLsizei count, const GLchar* const* varyings, GLenum bufferMode) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -7513,7 +7513,7 @@ void GLTrace_glTransformFeedbackVaryings(GLuint program, GLsizei count, const GL glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetTransformFeedbackVarying(GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLsizei * size, GLenum * type, GLchar * name) { +void GLTrace_glGetTransformFeedbackVarying(GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLsizei* size, GLenum* type, GLchar* name) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -7581,7 +7581,7 @@ void GLTrace_glGetTransformFeedbackVarying(GLuint program, GLuint index, GLsizei glContext->traceGLMessage(&glmsg); } -void GLTrace_glVertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei stride, const void * pointer) { +void GLTrace_glVertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid* pointer) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -7634,7 +7634,7 @@ void GLTrace_glVertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsiz glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetVertexAttribIiv(GLuint index, GLenum pname, GLint * params) { +void GLTrace_glGetVertexAttribIiv(GLuint index, GLenum pname, GLint* params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -7675,7 +7675,7 @@ void GLTrace_glGetVertexAttribIiv(GLuint index, GLenum pname, GLint * params) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetVertexAttribIuiv(GLuint index, GLenum pname, GLuint * params) { +void GLTrace_glGetVertexAttribIuiv(GLuint index, GLenum pname, GLuint* params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -7820,7 +7820,7 @@ void GLTrace_glVertexAttribI4ui(GLuint index, GLuint x, GLuint y, GLuint z, GLui glContext->traceGLMessage(&glmsg); } -void GLTrace_glVertexAttribI4iv(GLuint index, const GLint * v) { +void GLTrace_glVertexAttribI4iv(GLuint index, const GLint* v) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -7855,7 +7855,7 @@ void GLTrace_glVertexAttribI4iv(GLuint index, const GLint * v) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glVertexAttribI4uiv(GLuint index, const GLuint * v) { +void GLTrace_glVertexAttribI4uiv(GLuint index, const GLuint* v) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -7890,7 +7890,7 @@ void GLTrace_glVertexAttribI4uiv(GLuint index, const GLuint * v) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetUniformuiv(GLuint program, GLint location, GLuint * params) { +void GLTrace_glGetUniformuiv(GLuint program, GLint location, GLuint* params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -7931,7 +7931,7 @@ void GLTrace_glGetUniformuiv(GLuint program, GLint location, GLuint * params) { glContext->traceGLMessage(&glmsg); } -GLint GLTrace_glGetFragDataLocation(GLuint program, const GLchar * name) { +GLint GLTrace_glGetFragDataLocation(GLuint program, const GLchar *name) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -8146,7 +8146,7 @@ void GLTrace_glUniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuin glContext->traceGLMessage(&glmsg); } -void GLTrace_glUniform1uiv(GLint location, GLsizei count, const GLuint * value) { +void GLTrace_glUniform1uiv(GLint location, GLsizei count, const GLuint* value) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -8187,7 +8187,7 @@ void GLTrace_glUniform1uiv(GLint location, GLsizei count, const GLuint * value) glContext->traceGLMessage(&glmsg); } -void GLTrace_glUniform2uiv(GLint location, GLsizei count, const GLuint * value) { +void GLTrace_glUniform2uiv(GLint location, GLsizei count, const GLuint* value) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -8228,7 +8228,7 @@ void GLTrace_glUniform2uiv(GLint location, GLsizei count, const GLuint * value) glContext->traceGLMessage(&glmsg); } -void GLTrace_glUniform3uiv(GLint location, GLsizei count, const GLuint * value) { +void GLTrace_glUniform3uiv(GLint location, GLsizei count, const GLuint* value) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -8269,7 +8269,7 @@ void GLTrace_glUniform3uiv(GLint location, GLsizei count, const GLuint * value) glContext->traceGLMessage(&glmsg); } -void GLTrace_glUniform4uiv(GLint location, GLsizei count, const GLuint * value) { +void GLTrace_glUniform4uiv(GLint location, GLsizei count, const GLuint* value) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -8310,7 +8310,7 @@ void GLTrace_glUniform4uiv(GLint location, GLsizei count, const GLuint * value) glContext->traceGLMessage(&glmsg); } -void GLTrace_glClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint * value) { +void GLTrace_glClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint* value) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -8351,7 +8351,7 @@ void GLTrace_glClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint * valu glContext->traceGLMessage(&glmsg); } -void GLTrace_glClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint * value) { +void GLTrace_glClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint* value) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -8392,7 +8392,7 @@ void GLTrace_glClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint * va glContext->traceGLMessage(&glmsg); } -void GLTrace_glClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat * value) { +void GLTrace_glClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat* value) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -8479,7 +8479,7 @@ void GLTrace_glClearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLi glContext->traceGLMessage(&glmsg); } -const GLubyte * GLTrace_glGetStringi(GLenum name, GLuint index) { +const GLubyte* GLTrace_glGetStringi(GLenum name, GLuint index) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -8500,7 +8500,7 @@ const GLubyte * GLTrace_glGetStringi(GLenum name, GLuint index) { // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - const GLubyte * retValue = glContext->hooks->gl.glGetStringi(name, index); + const GLubyte* retValue = glContext->hooks->gl.glGetStringi(name, index); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -8574,7 +8574,7 @@ void GLTrace_glCopyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetUniformIndices(GLuint program, GLsizei uniformCount, const GLchar *const* uniformNames, GLuint * uniformIndices) { +void GLTrace_glGetUniformIndices(GLuint program, GLsizei uniformCount, const GLchar* const* uniformNames, GLuint* uniformIndices) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -8622,7 +8622,7 @@ void GLTrace_glGetUniformIndices(GLuint program, GLsizei uniformCount, const GLc glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetActiveUniformsiv(GLuint program, GLsizei uniformCount, const GLuint * uniformIndices, GLenum pname, GLint * params) { +void GLTrace_glGetActiveUniformsiv(GLuint program, GLsizei uniformCount, const GLuint* uniformIndices, GLenum pname, GLint* params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -8676,7 +8676,7 @@ void GLTrace_glGetActiveUniformsiv(GLuint program, GLsizei uniformCount, const G glContext->traceGLMessage(&glmsg); } -GLuint GLTrace_glGetUniformBlockIndex(GLuint program, const GLchar * uniformBlockName) { +GLuint GLTrace_glGetUniformBlockIndex(GLuint program, const GLchar* uniformBlockName) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -8719,7 +8719,7 @@ GLuint GLTrace_glGetUniformBlockIndex(GLuint program, const GLchar * uniformBloc return retValue; } -void GLTrace_glGetActiveUniformBlockiv(GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint * params) { +void GLTrace_glGetActiveUniformBlockiv(GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint* params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -8766,7 +8766,7 @@ void GLTrace_glGetActiveUniformBlockiv(GLuint program, GLuint uniformBlockIndex, glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetActiveUniformBlockName(GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei * length, GLchar * uniformBlockName) { +void GLTrace_glGetActiveUniformBlockName(GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei* length, GLchar* uniformBlockName) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -8860,7 +8860,7 @@ void GLTrace_glUniformBlockBinding(GLuint program, GLuint uniformBlockIndex, GLu glContext->traceGLMessage(&glmsg); } -void GLTrace_glDrawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsizei instancecount) { +void GLTrace_glDrawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsizei instanceCount) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -8884,16 +8884,16 @@ void GLTrace_glDrawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsi arg_count->set_type(GLMessage::DataType::INT); arg_count->add_intvalue(count); - // copy argument instancecount - GLMessage_DataType *arg_instancecount = glmsg.add_args(); - arg_instancecount->set_isarray(false); - arg_instancecount->set_type(GLMessage::DataType::INT); - arg_instancecount->add_intvalue(instancecount); + // copy argument instanceCount + GLMessage_DataType *arg_instanceCount = glmsg.add_args(); + arg_instanceCount->set_isarray(false); + arg_instanceCount->set_type(GLMessage::DataType::INT); + arg_instanceCount->add_intvalue(instanceCount); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glDrawArraysInstanced(mode, first, count, instancecount); + glContext->hooks->gl.glDrawArraysInstanced(mode, first, count, instanceCount); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -8906,7 +8906,7 @@ void GLTrace_glDrawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsi glContext->traceGLMessage(&glmsg); } -void GLTrace_glDrawElementsInstanced(GLenum mode, GLsizei count, GLenum type, const void * indices, GLsizei instancecount) { +void GLTrace_glDrawElementsInstanced(GLenum mode, GLsizei count, GLenum type, const GLvoid* indices, GLsizei instanceCount) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -8936,16 +8936,16 @@ void GLTrace_glDrawElementsInstanced(GLenum mode, GLsizei count, GLenum type, co arg_indices->set_type(GLMessage::DataType::INT64); arg_indices->add_int64value((uintptr_t)indices); - // copy argument instancecount - GLMessage_DataType *arg_instancecount = glmsg.add_args(); - arg_instancecount->set_isarray(false); - arg_instancecount->set_type(GLMessage::DataType::INT); - arg_instancecount->add_intvalue(instancecount); + // copy argument instanceCount + GLMessage_DataType *arg_instanceCount = glmsg.add_args(); + arg_instanceCount->set_isarray(false); + arg_instanceCount->set_type(GLMessage::DataType::INT); + arg_instanceCount->add_intvalue(instanceCount); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glDrawElementsInstanced(mode, count, type, indices, instancecount); + glContext->hooks->gl.glDrawElementsInstanced(mode, count, type, indices, instanceCount); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -9158,7 +9158,7 @@ void GLTrace_glWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetInteger64v(GLenum pname, GLint64 * data) { +void GLTrace_glGetInteger64v(GLenum pname, GLint64* params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -9170,21 +9170,21 @@ void GLTrace_glGetInteger64v(GLenum pname, GLint64 * data) { arg_pname->set_type(GLMessage::DataType::ENUM); arg_pname->add_intvalue((int)pname); - // copy argument data - GLMessage_DataType *arg_data = glmsg.add_args(); - arg_data->set_isarray(false); - arg_data->set_type(GLMessage::DataType::INT64); - arg_data->add_int64value((uintptr_t)data); + // copy argument params + GLMessage_DataType *arg_params = glmsg.add_args(); + arg_params->set_isarray(false); + arg_params->set_type(GLMessage::DataType::INT64); + arg_params->add_int64value((uintptr_t)params); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetInteger64v(pname, data); + glContext->hooks->gl.glGetInteger64v(pname, params); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) data, + (void *) params, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -9193,7 +9193,7 @@ void GLTrace_glGetInteger64v(GLenum pname, GLint64 * data) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetSynciv(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei * length, GLint * values) { +void GLTrace_glGetSynciv(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei* length, GLint* values) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -9248,7 +9248,7 @@ void GLTrace_glGetSynciv(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei * l glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetInteger64i_v(GLenum target, GLuint index, GLint64 * data) { +void GLTrace_glGetInteger64i_v(GLenum target, GLuint index, GLint64* data) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -9289,7 +9289,7 @@ void GLTrace_glGetInteger64i_v(GLenum target, GLuint index, GLint64 * data) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetBufferParameteri64v(GLenum target, GLenum pname, GLint64 * params) { +void GLTrace_glGetBufferParameteri64v(GLenum target, GLenum pname, GLint64* params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -9330,7 +9330,7 @@ void GLTrace_glGetBufferParameteri64v(GLenum target, GLenum pname, GLint64 * par glContext->traceGLMessage(&glmsg); } -void GLTrace_glGenSamplers(GLsizei count, GLuint * samplers) { +void GLTrace_glGenSamplers(GLsizei count, GLuint* samplers) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -9365,7 +9365,7 @@ void GLTrace_glGenSamplers(GLsizei count, GLuint * samplers) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glDeleteSamplers(GLsizei count, const GLuint * samplers) { +void GLTrace_glDeleteSamplers(GLsizei count, const GLuint* samplers) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -9510,7 +9510,7 @@ void GLTrace_glSamplerParameteri(GLuint sampler, GLenum pname, GLint param) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glSamplerParameteriv(GLuint sampler, GLenum pname, const GLint * param) { +void GLTrace_glSamplerParameteriv(GLuint sampler, GLenum pname, const GLint* param) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -9591,7 +9591,7 @@ void GLTrace_glSamplerParameterf(GLuint sampler, GLenum pname, GLfloat param) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glSamplerParameterfv(GLuint sampler, GLenum pname, const GLfloat * param) { +void GLTrace_glSamplerParameterfv(GLuint sampler, GLenum pname, const GLfloat* param) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -9632,7 +9632,7 @@ void GLTrace_glSamplerParameterfv(GLuint sampler, GLenum pname, const GLfloat * glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetSamplerParameteriv(GLuint sampler, GLenum pname, GLint * params) { +void GLTrace_glGetSamplerParameteriv(GLuint sampler, GLenum pname, GLint* params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -9673,7 +9673,7 @@ void GLTrace_glGetSamplerParameteriv(GLuint sampler, GLenum pname, GLint * param glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetSamplerParameterfv(GLuint sampler, GLenum pname, GLfloat * params) { +void GLTrace_glGetSamplerParameterfv(GLuint sampler, GLenum pname, GLfloat* params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -9782,7 +9782,7 @@ void GLTrace_glBindTransformFeedback(GLenum target, GLuint id) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glDeleteTransformFeedbacks(GLsizei n, const GLuint * ids) { +void GLTrace_glDeleteTransformFeedbacks(GLsizei n, const GLuint* ids) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -9817,7 +9817,7 @@ void GLTrace_glDeleteTransformFeedbacks(GLsizei n, const GLuint * ids) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGenTransformFeedbacks(GLsizei n, GLuint * ids) { +void GLTrace_glGenTransformFeedbacks(GLsizei n, GLuint* ids) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -9932,7 +9932,7 @@ void GLTrace_glResumeTransformFeedback(void) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetProgramBinary(GLuint program, GLsizei bufSize, GLsizei * length, GLenum * binaryFormat, void * binary) { +void GLTrace_glGetProgramBinary(GLuint program, GLsizei bufSize, GLsizei* length, GLenum* binaryFormat, GLvoid* binary) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -9987,7 +9987,7 @@ void GLTrace_glGetProgramBinary(GLuint program, GLsizei bufSize, GLsizei * lengt glContext->traceGLMessage(&glmsg); } -void GLTrace_glProgramBinary(GLuint program, GLenum binaryFormat, const void * binary, GLsizei length) { +void GLTrace_glProgramBinary(GLuint program, GLenum binaryFormat, const GLvoid* binary, GLsizei length) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -10074,7 +10074,7 @@ void GLTrace_glProgramParameteri(GLuint program, GLenum pname, GLint value) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glInvalidateFramebuffer(GLenum target, GLsizei numAttachments, const GLenum * attachments) { +void GLTrace_glInvalidateFramebuffer(GLenum target, GLsizei numAttachments, const GLenum* attachments) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -10115,7 +10115,7 @@ void GLTrace_glInvalidateFramebuffer(GLenum target, GLsizei numAttachments, cons glContext->traceGLMessage(&glmsg); } -void GLTrace_glInvalidateSubFramebuffer(GLenum target, GLsizei numAttachments, const GLenum * attachments, GLint x, GLint y, GLsizei width, GLsizei height) { +void GLTrace_glInvalidateSubFramebuffer(GLenum target, GLsizei numAttachments, const GLenum* attachments, GLint x, GLint y, GLsizei width, GLsizei height) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -10290,7 +10290,7 @@ void GLTrace_glTexStorage3D(GLenum target, GLsizei levels, GLenum internalformat glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetInternalformativ(GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint * params) { +void GLTrace_glGetInternalformativ(GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint* params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -10346,562 +10346,6 @@ void GLTrace_glGetInternalformativ(GLenum target, GLenum internalformat, GLenum // Definitions for GL2Ext APIs -void GLTrace_glBlendBarrierKHR(void) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glBlendBarrierKHR); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glBlendBarrierKHR(); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glDebugMessageControlKHR(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint * ids, GLboolean enabled) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glDebugMessageControlKHR); - - // copy argument source - GLMessage_DataType *arg_source = glmsg.add_args(); - arg_source->set_isarray(false); - arg_source->set_type(GLMessage::DataType::ENUM); - arg_source->add_intvalue((int)source); - - // copy argument type - GLMessage_DataType *arg_type = glmsg.add_args(); - arg_type->set_isarray(false); - arg_type->set_type(GLMessage::DataType::ENUM); - arg_type->add_intvalue((int)type); - - // copy argument severity - GLMessage_DataType *arg_severity = glmsg.add_args(); - arg_severity->set_isarray(false); - arg_severity->set_type(GLMessage::DataType::ENUM); - arg_severity->add_intvalue((int)severity); - - // copy argument count - GLMessage_DataType *arg_count = glmsg.add_args(); - arg_count->set_isarray(false); - arg_count->set_type(GLMessage::DataType::INT); - arg_count->add_intvalue(count); - - // copy argument ids - GLMessage_DataType *arg_ids = glmsg.add_args(); - arg_ids->set_isarray(false); - arg_ids->set_type(GLMessage::DataType::INT64); - arg_ids->add_int64value((uintptr_t)ids); - - // copy argument enabled - GLMessage_DataType *arg_enabled = glmsg.add_args(); - arg_enabled->set_isarray(false); - arg_enabled->set_type(GLMessage::DataType::BOOL); - arg_enabled->add_boolvalue(enabled); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glDebugMessageControlKHR(source, type, severity, count, ids, enabled); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) ids, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glDebugMessageInsertKHR(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar * buf) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glDebugMessageInsertKHR); - - // copy argument source - GLMessage_DataType *arg_source = glmsg.add_args(); - arg_source->set_isarray(false); - arg_source->set_type(GLMessage::DataType::ENUM); - arg_source->add_intvalue((int)source); - - // copy argument type - GLMessage_DataType *arg_type = glmsg.add_args(); - arg_type->set_isarray(false); - arg_type->set_type(GLMessage::DataType::ENUM); - arg_type->add_intvalue((int)type); - - // copy argument id - GLMessage_DataType *arg_id = glmsg.add_args(); - arg_id->set_isarray(false); - arg_id->set_type(GLMessage::DataType::INT); - arg_id->add_intvalue(id); - - // copy argument severity - GLMessage_DataType *arg_severity = glmsg.add_args(); - arg_severity->set_isarray(false); - arg_severity->set_type(GLMessage::DataType::ENUM); - arg_severity->add_intvalue((int)severity); - - // copy argument length - GLMessage_DataType *arg_length = glmsg.add_args(); - arg_length->set_isarray(false); - arg_length->set_type(GLMessage::DataType::INT); - arg_length->add_intvalue(length); - - // copy argument buf - GLMessage_DataType *arg_buf = glmsg.add_args(); - arg_buf->set_isarray(false); - arg_buf->set_type(GLMessage::DataType::INT64); - arg_buf->add_int64value((uintptr_t)buf); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glDebugMessageInsertKHR(source, type, id, severity, length, buf); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) buf, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glDebugMessageCallbackKHR(GLDEBUGPROCKHR callback, const void * userParam) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glDebugMessageCallbackKHR); - - // copy argument callback - GLMessage_DataType *arg_callback = glmsg.add_args(); - arg_callback->set_isarray(false); - arg_callback->set_type(GLMessage::DataType::INT64); - arg_callback->add_int64value((uintptr_t)callback); - - // copy argument userParam - GLMessage_DataType *arg_userParam = glmsg.add_args(); - arg_userParam->set_isarray(false); - arg_userParam->set_type(GLMessage::DataType::INT64); - arg_userParam->add_int64value((uintptr_t)userParam); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glDebugMessageCallbackKHR(callback, userParam); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) callback, - (void *) userParam, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -GLuint GLTrace_glGetDebugMessageLogKHR(GLuint count, GLsizei bufSize, GLenum * sources, GLenum * types, GLuint * ids, GLenum * severities, GLsizei * lengths, GLchar * messageLog) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glGetDebugMessageLogKHR); - - // copy argument count - GLMessage_DataType *arg_count = glmsg.add_args(); - arg_count->set_isarray(false); - arg_count->set_type(GLMessage::DataType::INT); - arg_count->add_intvalue(count); - - // copy argument bufSize - GLMessage_DataType *arg_bufSize = glmsg.add_args(); - arg_bufSize->set_isarray(false); - arg_bufSize->set_type(GLMessage::DataType::INT); - arg_bufSize->add_intvalue(bufSize); - - // copy argument sources - GLMessage_DataType *arg_sources = glmsg.add_args(); - arg_sources->set_isarray(false); - arg_sources->set_type(GLMessage::DataType::INT64); - arg_sources->add_int64value((uintptr_t)sources); - - // copy argument types - GLMessage_DataType *arg_types = glmsg.add_args(); - arg_types->set_isarray(false); - arg_types->set_type(GLMessage::DataType::INT64); - arg_types->add_int64value((uintptr_t)types); - - // copy argument ids - GLMessage_DataType *arg_ids = glmsg.add_args(); - arg_ids->set_isarray(false); - arg_ids->set_type(GLMessage::DataType::INT64); - arg_ids->add_int64value((uintptr_t)ids); - - // copy argument severities - GLMessage_DataType *arg_severities = glmsg.add_args(); - arg_severities->set_isarray(false); - arg_severities->set_type(GLMessage::DataType::INT64); - arg_severities->add_int64value((uintptr_t)severities); - - // copy argument lengths - GLMessage_DataType *arg_lengths = glmsg.add_args(); - arg_lengths->set_isarray(false); - arg_lengths->set_type(GLMessage::DataType::INT64); - arg_lengths->add_int64value((uintptr_t)lengths); - - // copy argument messageLog - GLMessage_DataType *arg_messageLog = glmsg.add_args(); - arg_messageLog->set_isarray(false); - arg_messageLog->set_type(GLMessage::DataType::INT64); - arg_messageLog->add_int64value((uintptr_t)messageLog); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - GLuint retValue = glContext->hooks->gl.glGetDebugMessageLogKHR(count, bufSize, sources, types, ids, severities, lengths, messageLog); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - // set return value - GLMessage_DataType *rt = glmsg.mutable_returnvalue(); - rt->set_isarray(false); - rt->set_type(GLMessage::DataType::INT); - rt->add_intvalue(retValue); - - void *pointerArgs[] = { - (void *) sources, - (void *) types, - (void *) ids, - (void *) severities, - (void *) lengths, - (void *) messageLog, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); - - return retValue; -} - -void GLTrace_glPushDebugGroupKHR(GLenum source, GLuint id, GLsizei length, const GLchar * message) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glPushDebugGroupKHR); - - // copy argument source - GLMessage_DataType *arg_source = glmsg.add_args(); - arg_source->set_isarray(false); - arg_source->set_type(GLMessage::DataType::ENUM); - arg_source->add_intvalue((int)source); - - // copy argument id - GLMessage_DataType *arg_id = glmsg.add_args(); - arg_id->set_isarray(false); - arg_id->set_type(GLMessage::DataType::INT); - arg_id->add_intvalue(id); - - // copy argument length - GLMessage_DataType *arg_length = glmsg.add_args(); - arg_length->set_isarray(false); - arg_length->set_type(GLMessage::DataType::INT); - arg_length->add_intvalue(length); - - // copy argument message - GLMessage_DataType *arg_message = glmsg.add_args(); - arg_message->set_isarray(false); - arg_message->set_type(GLMessage::DataType::INT64); - arg_message->add_int64value((uintptr_t)message); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glPushDebugGroupKHR(source, id, length, message); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) message, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glPopDebugGroupKHR(void) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glPopDebugGroupKHR); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glPopDebugGroupKHR(); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glObjectLabelKHR(GLenum identifier, GLuint name, GLsizei length, const GLchar * label) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glObjectLabelKHR); - - // copy argument identifier - GLMessage_DataType *arg_identifier = glmsg.add_args(); - arg_identifier->set_isarray(false); - arg_identifier->set_type(GLMessage::DataType::ENUM); - arg_identifier->add_intvalue((int)identifier); - - // copy argument name - GLMessage_DataType *arg_name = glmsg.add_args(); - arg_name->set_isarray(false); - arg_name->set_type(GLMessage::DataType::INT); - arg_name->add_intvalue(name); - - // copy argument length - GLMessage_DataType *arg_length = glmsg.add_args(); - arg_length->set_isarray(false); - arg_length->set_type(GLMessage::DataType::INT); - arg_length->add_intvalue(length); - - // copy argument label - GLMessage_DataType *arg_label = glmsg.add_args(); - arg_label->set_isarray(false); - arg_label->set_type(GLMessage::DataType::INT64); - arg_label->add_int64value((uintptr_t)label); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glObjectLabelKHR(identifier, name, length, label); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) label, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glGetObjectLabelKHR(GLenum identifier, GLuint name, GLsizei bufSize, GLsizei * length, GLchar * label) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glGetObjectLabelKHR); - - // copy argument identifier - GLMessage_DataType *arg_identifier = glmsg.add_args(); - arg_identifier->set_isarray(false); - arg_identifier->set_type(GLMessage::DataType::ENUM); - arg_identifier->add_intvalue((int)identifier); - - // copy argument name - GLMessage_DataType *arg_name = glmsg.add_args(); - arg_name->set_isarray(false); - arg_name->set_type(GLMessage::DataType::INT); - arg_name->add_intvalue(name); - - // copy argument bufSize - GLMessage_DataType *arg_bufSize = glmsg.add_args(); - arg_bufSize->set_isarray(false); - arg_bufSize->set_type(GLMessage::DataType::INT); - arg_bufSize->add_intvalue(bufSize); - - // copy argument length - GLMessage_DataType *arg_length = glmsg.add_args(); - arg_length->set_isarray(false); - arg_length->set_type(GLMessage::DataType::INT64); - arg_length->add_int64value((uintptr_t)length); - - // copy argument label - GLMessage_DataType *arg_label = glmsg.add_args(); - arg_label->set_isarray(false); - arg_label->set_type(GLMessage::DataType::INT64); - arg_label->add_int64value((uintptr_t)label); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetObjectLabelKHR(identifier, name, bufSize, length, label); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) length, - (void *) label, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glObjectPtrLabelKHR(const void * ptr, GLsizei length, const GLchar * label) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glObjectPtrLabelKHR); - - // copy argument ptr - GLMessage_DataType *arg_ptr = glmsg.add_args(); - arg_ptr->set_isarray(false); - arg_ptr->set_type(GLMessage::DataType::INT64); - arg_ptr->add_int64value((uintptr_t)ptr); - - // copy argument length - GLMessage_DataType *arg_length = glmsg.add_args(); - arg_length->set_isarray(false); - arg_length->set_type(GLMessage::DataType::INT); - arg_length->add_intvalue(length); - - // copy argument label - GLMessage_DataType *arg_label = glmsg.add_args(); - arg_label->set_isarray(false); - arg_label->set_type(GLMessage::DataType::INT64); - arg_label->add_int64value((uintptr_t)label); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glObjectPtrLabelKHR(ptr, length, label); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) ptr, - (void *) label, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glGetObjectPtrLabelKHR(const void * ptr, GLsizei bufSize, GLsizei * length, GLchar * label) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glGetObjectPtrLabelKHR); - - // copy argument ptr - GLMessage_DataType *arg_ptr = glmsg.add_args(); - arg_ptr->set_isarray(false); - arg_ptr->set_type(GLMessage::DataType::INT64); - arg_ptr->add_int64value((uintptr_t)ptr); - - // copy argument bufSize - GLMessage_DataType *arg_bufSize = glmsg.add_args(); - arg_bufSize->set_isarray(false); - arg_bufSize->set_type(GLMessage::DataType::INT); - arg_bufSize->add_intvalue(bufSize); - - // copy argument length - GLMessage_DataType *arg_length = glmsg.add_args(); - arg_length->set_isarray(false); - arg_length->set_type(GLMessage::DataType::INT64); - arg_length->add_int64value((uintptr_t)length); - - // copy argument label - GLMessage_DataType *arg_label = glmsg.add_args(); - arg_label->set_isarray(false); - arg_label->set_type(GLMessage::DataType::INT64); - arg_label->add_int64value((uintptr_t)label); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetObjectPtrLabelKHR(ptr, bufSize, length, label); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) ptr, - (void *) length, - (void *) label, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glGetPointervKHR(GLenum pname, void ** params) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glGetPointervKHR); - - // copy argument pname - GLMessage_DataType *arg_pname = glmsg.add_args(); - arg_pname->set_isarray(false); - arg_pname->set_type(GLMessage::DataType::ENUM); - arg_pname->add_intvalue((int)pname); - - // copy argument params - GLMessage_DataType *arg_params = glmsg.add_args(); - arg_params->set_isarray(false); - arg_params->set_type(GLMessage::DataType::INT64); - arg_params->add_int64value((uintptr_t)params); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetPointervKHR(pname, params); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) params, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - void GLTrace_glEGLImageTargetTexture2DOES(GLenum target, GLeglImageOES image) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -10972,7 +10416,7 @@ void GLTrace_glEGLImageTargetRenderbufferStorageOES(GLenum target, GLeglImageOES glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetProgramBinaryOES(GLuint program, GLsizei bufSize, GLsizei * length, GLenum * binaryFormat, void * binary) { +void GLTrace_glGetProgramBinaryOES(GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -11027,7 +10471,7 @@ void GLTrace_glGetProgramBinaryOES(GLuint program, GLsizei bufSize, GLsizei * le glContext->traceGLMessage(&glmsg); } -void GLTrace_glProgramBinaryOES(GLuint program, GLenum binaryFormat, const void * binary, GLint length) { +void GLTrace_glProgramBinaryOES(GLuint program, GLenum binaryFormat, const GLvoid *binary, GLint length) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -11074,7 +10518,7 @@ void GLTrace_glProgramBinaryOES(GLuint program, GLenum binaryFormat, const void glContext->traceGLMessage(&glmsg); } -void * GLTrace_glMapBufferOES(GLenum target, GLenum access) { +void* GLTrace_glMapBufferOES(GLenum target, GLenum access) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -11095,7 +10539,7 @@ void * GLTrace_glMapBufferOES(GLenum target, GLenum access) { // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - void * retValue = glContext->hooks->gl.glMapBufferOES(target, access); + void* retValue = glContext->hooks->gl.glMapBufferOES(target, access); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -11153,7 +10597,7 @@ GLboolean GLTrace_glUnmapBufferOES(GLenum target) { return retValue; } -void GLTrace_glGetBufferPointervOES(GLenum target, GLenum pname, void ** params) { +void GLTrace_glGetBufferPointervOES(GLenum target, GLenum pname, GLvoid** params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -11194,35 +10638,7 @@ void GLTrace_glGetBufferPointervOES(GLenum target, GLenum pname, void ** params) glContext->traceGLMessage(&glmsg); } -void GLTrace_glMinSampleShadingOES(GLfloat value) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glMinSampleShadingOES); - - // copy argument value - GLMessage_DataType *arg_value = glmsg.add_args(); - arg_value->set_isarray(false); - arg_value->set_type(GLMessage::DataType::FLOAT); - arg_value->add_floatvalue(value); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glMinSampleShadingOES(value); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glTexImage3DOES(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void * pixels) { +void GLTrace_glTexImage3DOES(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid* pixels) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -11305,7 +10721,7 @@ void GLTrace_glTexImage3DOES(GLenum target, GLint level, GLenum internalformat, glContext->traceGLMessage(&glmsg); } -void GLTrace_glTexSubImage3DOES(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void * pixels) { +void GLTrace_glTexSubImage3DOES(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid* pixels) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -11470,7 +10886,7 @@ void GLTrace_glCopyTexSubImage3DOES(GLenum target, GLint level, GLint xoffset, G glContext->traceGLMessage(&glmsg); } -void GLTrace_glCompressedTexImage3DOES(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void * data) { +void GLTrace_glCompressedTexImage3DOES(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid* data) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -11547,7 +10963,7 @@ void GLTrace_glCompressedTexImage3DOES(GLenum target, GLint level, GLenum intern glContext->traceGLMessage(&glmsg); } -void GLTrace_glCompressedTexSubImage3DOES(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void * data) { +void GLTrace_glCompressedTexSubImage3DOES(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid* data) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -11694,70 +11110,6 @@ void GLTrace_glFramebufferTexture3DOES(GLenum target, GLenum attachment, GLenum glContext->traceGLMessage(&glmsg); } -void GLTrace_glTexStorage3DMultisampleOES(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glTexStorage3DMultisampleOES); - - // copy argument target - GLMessage_DataType *arg_target = glmsg.add_args(); - arg_target->set_isarray(false); - arg_target->set_type(GLMessage::DataType::ENUM); - arg_target->add_intvalue((int)target); - - // copy argument samples - GLMessage_DataType *arg_samples = glmsg.add_args(); - arg_samples->set_isarray(false); - arg_samples->set_type(GLMessage::DataType::INT); - arg_samples->add_intvalue(samples); - - // copy argument internalformat - GLMessage_DataType *arg_internalformat = glmsg.add_args(); - arg_internalformat->set_isarray(false); - arg_internalformat->set_type(GLMessage::DataType::ENUM); - arg_internalformat->add_intvalue((int)internalformat); - - // copy argument width - GLMessage_DataType *arg_width = glmsg.add_args(); - arg_width->set_isarray(false); - arg_width->set_type(GLMessage::DataType::INT); - arg_width->add_intvalue(width); - - // copy argument height - GLMessage_DataType *arg_height = glmsg.add_args(); - arg_height->set_isarray(false); - arg_height->set_type(GLMessage::DataType::INT); - arg_height->add_intvalue(height); - - // copy argument depth - GLMessage_DataType *arg_depth = glmsg.add_args(); - arg_depth->set_isarray(false); - arg_depth->set_type(GLMessage::DataType::INT); - arg_depth->add_intvalue(depth); - - // copy argument fixedsamplelocations - GLMessage_DataType *arg_fixedsamplelocations = glmsg.add_args(); - arg_fixedsamplelocations->set_isarray(false); - arg_fixedsamplelocations->set_type(GLMessage::DataType::BOOL); - arg_fixedsamplelocations->add_boolvalue(fixedsamplelocations); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glTexStorage3DMultisampleOES(target, samples, internalformat, width, height, depth, fixedsamplelocations); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - void GLTrace_glBindVertexArrayOES(GLuint array) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -11786,7 +11138,7 @@ void GLTrace_glBindVertexArrayOES(GLuint array) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glDeleteVertexArraysOES(GLsizei n, const GLuint * arrays) { +void GLTrace_glDeleteVertexArraysOES(GLsizei n, const GLuint *arrays) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -11821,7 +11173,7 @@ void GLTrace_glDeleteVertexArraysOES(GLsizei n, const GLuint * arrays) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGenVertexArraysOES(GLsizei n, GLuint * arrays) { +void GLTrace_glGenVertexArraysOES(GLsizei n, GLuint *arrays) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -11892,7 +11244,7 @@ GLboolean GLTrace_glIsVertexArrayOES(GLuint array) { return retValue; } -void GLTrace_glGetPerfMonitorGroupsAMD(GLint * numGroups, GLsizei groupsSize, GLuint * groups) { +void GLTrace_glGetPerfMonitorGroupsAMD(GLint *numGroups, GLsizei groupsSize, GLuint *groups) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -11934,7 +11286,7 @@ void GLTrace_glGetPerfMonitorGroupsAMD(GLint * numGroups, GLsizei groupsSize, GL glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetPerfMonitorCountersAMD(GLuint group, GLint * numCounters, GLint * maxActiveCounters, GLsizei counterSize, GLuint * counters) { +void GLTrace_glGetPerfMonitorCountersAMD(GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -11989,7 +11341,7 @@ void GLTrace_glGetPerfMonitorCountersAMD(GLuint group, GLint * numCounters, GLin glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetPerfMonitorGroupStringAMD(GLuint group, GLsizei bufSize, GLsizei * length, GLchar * groupString) { +void GLTrace_glGetPerfMonitorGroupStringAMD(GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -12037,7 +11389,7 @@ void GLTrace_glGetPerfMonitorGroupStringAMD(GLuint group, GLsizei bufSize, GLsiz glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetPerfMonitorCounterStringAMD(GLuint group, GLuint counter, GLsizei bufSize, GLsizei * length, GLchar * counterString) { +void GLTrace_glGetPerfMonitorCounterStringAMD(GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -12091,7 +11443,7 @@ void GLTrace_glGetPerfMonitorCounterStringAMD(GLuint group, GLuint counter, GLsi glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetPerfMonitorCounterInfoAMD(GLuint group, GLuint counter, GLenum pname, void * data) { +void GLTrace_glGetPerfMonitorCounterInfoAMD(GLuint group, GLuint counter, GLenum pname, GLvoid *data) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -12138,7 +11490,7 @@ void GLTrace_glGetPerfMonitorCounterInfoAMD(GLuint group, GLuint counter, GLenum glContext->traceGLMessage(&glmsg); } -void GLTrace_glGenPerfMonitorsAMD(GLsizei n, GLuint * monitors) { +void GLTrace_glGenPerfMonitorsAMD(GLsizei n, GLuint *monitors) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -12173,7 +11525,7 @@ void GLTrace_glGenPerfMonitorsAMD(GLsizei n, GLuint * monitors) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glDeletePerfMonitorsAMD(GLsizei n, GLuint * monitors) { +void GLTrace_glDeletePerfMonitorsAMD(GLsizei n, GLuint *monitors) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -12208,7 +11560,7 @@ void GLTrace_glDeletePerfMonitorsAMD(GLsizei n, GLuint * monitors) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glSelectPerfMonitorCountersAMD(GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint * counterList) { +void GLTrace_glSelectPerfMonitorCountersAMD(GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *countersList) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -12238,21 +11590,21 @@ void GLTrace_glSelectPerfMonitorCountersAMD(GLuint monitor, GLboolean enable, GL arg_numCounters->set_type(GLMessage::DataType::INT); arg_numCounters->add_intvalue(numCounters); - // copy argument counterList - GLMessage_DataType *arg_counterList = glmsg.add_args(); - arg_counterList->set_isarray(false); - arg_counterList->set_type(GLMessage::DataType::INT64); - arg_counterList->add_int64value((uintptr_t)counterList); + // copy argument countersList + GLMessage_DataType *arg_countersList = glmsg.add_args(); + arg_countersList->set_isarray(false); + arg_countersList->set_type(GLMessage::DataType::INT64); + arg_countersList->add_int64value((uintptr_t)countersList); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glSelectPerfMonitorCountersAMD(monitor, enable, group, numCounters, counterList); + glContext->hooks->gl.glSelectPerfMonitorCountersAMD(monitor, enable, group, numCounters, countersList); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) counterList, + (void *) countersList, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -12317,7 +11669,7 @@ void GLTrace_glEndPerfMonitorAMD(GLuint monitor) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetPerfMonitorCounterDataAMD(GLuint monitor, GLenum pname, GLsizei dataSize, GLuint * data, GLint * bytesWritten) { +void GLTrace_glGetPerfMonitorCounterDataAMD(GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -12505,233 +11857,6 @@ void GLTrace_glRenderbufferStorageMultisampleANGLE(GLenum target, GLsizei sample glContext->traceGLMessage(&glmsg); } -void GLTrace_glDrawArraysInstancedANGLE(GLenum mode, GLint first, GLsizei count, GLsizei primcount) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glDrawArraysInstancedANGLE); - - // copy argument mode - GLMessage_DataType *arg_mode = glmsg.add_args(); - arg_mode->set_isarray(false); - arg_mode->set_type(GLMessage::DataType::ENUM); - arg_mode->add_intvalue((int)mode); - - // copy argument first - GLMessage_DataType *arg_first = glmsg.add_args(); - arg_first->set_isarray(false); - arg_first->set_type(GLMessage::DataType::INT); - arg_first->add_intvalue(first); - - // copy argument count - GLMessage_DataType *arg_count = glmsg.add_args(); - arg_count->set_isarray(false); - arg_count->set_type(GLMessage::DataType::INT); - arg_count->add_intvalue(count); - - // copy argument primcount - GLMessage_DataType *arg_primcount = glmsg.add_args(); - arg_primcount->set_isarray(false); - arg_primcount->set_type(GLMessage::DataType::INT); - arg_primcount->add_intvalue(primcount); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glDrawArraysInstancedANGLE(mode, first, count, primcount); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glDrawElementsInstancedANGLE(GLenum mode, GLsizei count, GLenum type, const void * indices, GLsizei primcount) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glDrawElementsInstancedANGLE); - - // copy argument mode - GLMessage_DataType *arg_mode = glmsg.add_args(); - arg_mode->set_isarray(false); - arg_mode->set_type(GLMessage::DataType::ENUM); - arg_mode->add_intvalue((int)mode); - - // copy argument count - GLMessage_DataType *arg_count = glmsg.add_args(); - arg_count->set_isarray(false); - arg_count->set_type(GLMessage::DataType::INT); - arg_count->add_intvalue(count); - - // copy argument type - GLMessage_DataType *arg_type = glmsg.add_args(); - arg_type->set_isarray(false); - arg_type->set_type(GLMessage::DataType::ENUM); - arg_type->add_intvalue((int)type); - - // copy argument indices - GLMessage_DataType *arg_indices = glmsg.add_args(); - arg_indices->set_isarray(false); - arg_indices->set_type(GLMessage::DataType::INT64); - arg_indices->add_int64value((uintptr_t)indices); - - // copy argument primcount - GLMessage_DataType *arg_primcount = glmsg.add_args(); - arg_primcount->set_isarray(false); - arg_primcount->set_type(GLMessage::DataType::INT); - arg_primcount->add_intvalue(primcount); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glDrawElementsInstancedANGLE(mode, count, type, indices, primcount); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) indices, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glVertexAttribDivisorANGLE(GLuint index, GLuint divisor) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glVertexAttribDivisorANGLE); - - // copy argument index - GLMessage_DataType *arg_index = glmsg.add_args(); - arg_index->set_isarray(false); - arg_index->set_type(GLMessage::DataType::INT); - arg_index->add_intvalue(index); - - // copy argument divisor - GLMessage_DataType *arg_divisor = glmsg.add_args(); - arg_divisor->set_isarray(false); - arg_divisor->set_type(GLMessage::DataType::INT); - arg_divisor->add_intvalue(divisor); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glVertexAttribDivisorANGLE(index, divisor); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glGetTranslatedShaderSourceANGLE(GLuint shader, GLsizei bufsize, GLsizei * length, GLchar * source) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glGetTranslatedShaderSourceANGLE); - - // copy argument shader - GLMessage_DataType *arg_shader = glmsg.add_args(); - arg_shader->set_isarray(false); - arg_shader->set_type(GLMessage::DataType::INT); - arg_shader->add_intvalue(shader); - - // copy argument bufsize - GLMessage_DataType *arg_bufsize = glmsg.add_args(); - arg_bufsize->set_isarray(false); - arg_bufsize->set_type(GLMessage::DataType::INT); - arg_bufsize->add_intvalue(bufsize); - - // copy argument length - GLMessage_DataType *arg_length = glmsg.add_args(); - arg_length->set_isarray(false); - arg_length->set_type(GLMessage::DataType::INT64); - arg_length->add_int64value((uintptr_t)length); - - // copy argument source - GLMessage_DataType *arg_source = glmsg.add_args(); - arg_source->set_isarray(false); - arg_source->set_type(GLMessage::DataType::INT64); - arg_source->add_int64value((uintptr_t)source); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetTranslatedShaderSourceANGLE(shader, bufsize, length, source); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) length, - (void *) source, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glCopyTextureLevelsAPPLE(GLuint destinationTexture, GLuint sourceTexture, GLint sourceBaseLevel, GLsizei sourceLevelCount) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glCopyTextureLevelsAPPLE); - - // copy argument destinationTexture - GLMessage_DataType *arg_destinationTexture = glmsg.add_args(); - arg_destinationTexture->set_isarray(false); - arg_destinationTexture->set_type(GLMessage::DataType::INT); - arg_destinationTexture->add_intvalue(destinationTexture); - - // copy argument sourceTexture - GLMessage_DataType *arg_sourceTexture = glmsg.add_args(); - arg_sourceTexture->set_isarray(false); - arg_sourceTexture->set_type(GLMessage::DataType::INT); - arg_sourceTexture->add_intvalue(sourceTexture); - - // copy argument sourceBaseLevel - GLMessage_DataType *arg_sourceBaseLevel = glmsg.add_args(); - arg_sourceBaseLevel->set_isarray(false); - arg_sourceBaseLevel->set_type(GLMessage::DataType::INT); - arg_sourceBaseLevel->add_intvalue(sourceBaseLevel); - - // copy argument sourceLevelCount - GLMessage_DataType *arg_sourceLevelCount = glmsg.add_args(); - arg_sourceLevelCount->set_isarray(false); - arg_sourceLevelCount->set_type(GLMessage::DataType::INT); - arg_sourceLevelCount->add_intvalue(sourceLevelCount); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glCopyTextureLevelsAPPLE(destinationTexture, sourceTexture, sourceBaseLevel, sourceLevelCount); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - void GLTrace_glRenderbufferStorageMultisampleAPPLE(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -12806,296 +11931,7 @@ void GLTrace_glResolveMultisampleFramebufferAPPLE(void) { glContext->traceGLMessage(&glmsg); } -GLsync GLTrace_glFenceSyncAPPLE(GLenum condition, GLbitfield flags) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glFenceSyncAPPLE); - - // copy argument condition - GLMessage_DataType *arg_condition = glmsg.add_args(); - arg_condition->set_isarray(false); - arg_condition->set_type(GLMessage::DataType::ENUM); - arg_condition->add_intvalue((int)condition); - - // copy argument flags - GLMessage_DataType *arg_flags = glmsg.add_args(); - arg_flags->set_isarray(false); - arg_flags->set_type(GLMessage::DataType::INT); - arg_flags->add_intvalue(flags); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - GLsync retValue = glContext->hooks->gl.glFenceSyncAPPLE(condition, flags); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - // set return value - GLMessage_DataType *rt = glmsg.mutable_returnvalue(); - rt->set_isarray(false); - rt->set_type(GLMessage::DataType::INT64); - rt->add_int64value((uintptr_t)retValue); - - void *pointerArgs[] = { - (void *) retValue, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); - - return retValue; -} - -GLboolean GLTrace_glIsSyncAPPLE(GLsync sync) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glIsSyncAPPLE); - - // copy argument sync - GLMessage_DataType *arg_sync = glmsg.add_args(); - arg_sync->set_isarray(false); - arg_sync->set_type(GLMessage::DataType::INT64); - arg_sync->add_int64value((uintptr_t)sync); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - GLboolean retValue = glContext->hooks->gl.glIsSyncAPPLE(sync); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - // set return value - GLMessage_DataType *rt = glmsg.mutable_returnvalue(); - rt->set_isarray(false); - rt->set_type(GLMessage::DataType::BOOL); - rt->add_boolvalue(retValue); - - void *pointerArgs[] = { - (void *) sync, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); - - return retValue; -} - -void GLTrace_glDeleteSyncAPPLE(GLsync sync) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glDeleteSyncAPPLE); - - // copy argument sync - GLMessage_DataType *arg_sync = glmsg.add_args(); - arg_sync->set_isarray(false); - arg_sync->set_type(GLMessage::DataType::INT64); - arg_sync->add_int64value((uintptr_t)sync); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glDeleteSyncAPPLE(sync); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) sync, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -GLenum GLTrace_glClientWaitSyncAPPLE(GLsync sync, GLbitfield flags, GLuint64 timeout) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glClientWaitSyncAPPLE); - - // copy argument sync - GLMessage_DataType *arg_sync = glmsg.add_args(); - arg_sync->set_isarray(false); - arg_sync->set_type(GLMessage::DataType::INT64); - arg_sync->add_int64value((uintptr_t)sync); - - // copy argument flags - GLMessage_DataType *arg_flags = glmsg.add_args(); - arg_flags->set_isarray(false); - arg_flags->set_type(GLMessage::DataType::INT); - arg_flags->add_intvalue(flags); - - // copy argument timeout - GLMessage_DataType *arg_timeout = glmsg.add_args(); - arg_timeout->set_isarray(false); - arg_timeout->set_type(GLMessage::DataType::INT64); - arg_timeout->add_int64value(timeout); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - GLenum retValue = glContext->hooks->gl.glClientWaitSyncAPPLE(sync, flags, timeout); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - // set return value - GLMessage_DataType *rt = glmsg.mutable_returnvalue(); - rt->set_isarray(false); - rt->set_type(GLMessage::DataType::ENUM); - rt->add_intvalue((int)retValue); - - void *pointerArgs[] = { - (void *) sync, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); - - return retValue; -} - -void GLTrace_glWaitSyncAPPLE(GLsync sync, GLbitfield flags, GLuint64 timeout) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glWaitSyncAPPLE); - - // copy argument sync - GLMessage_DataType *arg_sync = glmsg.add_args(); - arg_sync->set_isarray(false); - arg_sync->set_type(GLMessage::DataType::INT64); - arg_sync->add_int64value((uintptr_t)sync); - - // copy argument flags - GLMessage_DataType *arg_flags = glmsg.add_args(); - arg_flags->set_isarray(false); - arg_flags->set_type(GLMessage::DataType::INT); - arg_flags->add_intvalue(flags); - - // copy argument timeout - GLMessage_DataType *arg_timeout = glmsg.add_args(); - arg_timeout->set_isarray(false); - arg_timeout->set_type(GLMessage::DataType::INT64); - arg_timeout->add_int64value(timeout); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glWaitSyncAPPLE(sync, flags, timeout); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) sync, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glGetInteger64vAPPLE(GLenum pname, GLint64 * params) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glGetInteger64vAPPLE); - - // copy argument pname - GLMessage_DataType *arg_pname = glmsg.add_args(); - arg_pname->set_isarray(false); - arg_pname->set_type(GLMessage::DataType::ENUM); - arg_pname->add_intvalue((int)pname); - - // copy argument params - GLMessage_DataType *arg_params = glmsg.add_args(); - arg_params->set_isarray(false); - arg_params->set_type(GLMessage::DataType::INT64); - arg_params->add_int64value((uintptr_t)params); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetInteger64vAPPLE(pname, params); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) params, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glGetSyncivAPPLE(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei * length, GLint * values) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glGetSyncivAPPLE); - - // copy argument sync - GLMessage_DataType *arg_sync = glmsg.add_args(); - arg_sync->set_isarray(false); - arg_sync->set_type(GLMessage::DataType::INT64); - arg_sync->add_int64value((uintptr_t)sync); - - // copy argument pname - GLMessage_DataType *arg_pname = glmsg.add_args(); - arg_pname->set_isarray(false); - arg_pname->set_type(GLMessage::DataType::ENUM); - arg_pname->add_intvalue((int)pname); - - // copy argument bufSize - GLMessage_DataType *arg_bufSize = glmsg.add_args(); - arg_bufSize->set_isarray(false); - arg_bufSize->set_type(GLMessage::DataType::INT); - arg_bufSize->add_intvalue(bufSize); - - // copy argument length - GLMessage_DataType *arg_length = glmsg.add_args(); - arg_length->set_isarray(false); - arg_length->set_type(GLMessage::DataType::INT64); - arg_length->add_int64value((uintptr_t)length); - - // copy argument values - GLMessage_DataType *arg_values = glmsg.add_args(); - arg_values->set_isarray(false); - arg_values->set_type(GLMessage::DataType::INT64); - arg_values->add_int64value((uintptr_t)values); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetSyncivAPPLE(sync, pname, bufSize, length, values); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) sync, - (void *) length, - (void *) values, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glLabelObjectEXT(GLenum type, GLuint object, GLsizei length, const GLchar * label) { +void GLTrace_glLabelObjectEXT(GLenum type, GLuint object, GLsizei length, const GLchar *label) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -13142,7 +11978,7 @@ void GLTrace_glLabelObjectEXT(GLenum type, GLuint object, GLsizei length, const glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetObjectLabelEXT(GLenum type, GLuint object, GLsizei bufSize, GLsizei * length, GLchar * label) { +void GLTrace_glGetObjectLabelEXT(GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -13196,7 +12032,7 @@ void GLTrace_glGetObjectLabelEXT(GLenum type, GLuint object, GLsizei bufSize, GL glContext->traceGLMessage(&glmsg); } -void GLTrace_glInsertEventMarkerEXT(GLsizei length, const GLchar * marker) { +void GLTrace_glInsertEventMarkerEXT(GLsizei length, const GLchar *marker) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -13231,7 +12067,7 @@ void GLTrace_glInsertEventMarkerEXT(GLsizei length, const GLchar * marker) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glPushGroupMarkerEXT(GLsizei length, const GLchar * marker) { +void GLTrace_glPushGroupMarkerEXT(GLsizei length, const GLchar *marker) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -13288,7 +12124,7 @@ void GLTrace_glPopGroupMarkerEXT(void) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glDiscardFramebufferEXT(GLenum target, GLsizei numAttachments, const GLenum * attachments) { +void GLTrace_glDiscardFramebufferEXT(GLenum target, GLsizei numAttachments, const GLenum *attachments) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -13329,151 +12165,11 @@ void GLTrace_glDiscardFramebufferEXT(GLenum target, GLsizei numAttachments, cons glContext->traceGLMessage(&glmsg); } -void GLTrace_glGenQueriesEXT(GLsizei n, GLuint * ids) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glGenQueriesEXT); - - // copy argument n - GLMessage_DataType *arg_n = glmsg.add_args(); - arg_n->set_isarray(false); - arg_n->set_type(GLMessage::DataType::INT); - arg_n->add_intvalue(n); - - // copy argument ids - GLMessage_DataType *arg_ids = glmsg.add_args(); - arg_ids->set_isarray(false); - arg_ids->set_type(GLMessage::DataType::INT64); - arg_ids->add_int64value((uintptr_t)ids); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGenQueriesEXT(n, ids); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) ids, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glDeleteQueriesEXT(GLsizei n, const GLuint * ids) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glDeleteQueriesEXT); - - // copy argument n - GLMessage_DataType *arg_n = glmsg.add_args(); - arg_n->set_isarray(false); - arg_n->set_type(GLMessage::DataType::INT); - arg_n->add_intvalue(n); - - // copy argument ids - GLMessage_DataType *arg_ids = glmsg.add_args(); - arg_ids->set_isarray(false); - arg_ids->set_type(GLMessage::DataType::INT64); - arg_ids->add_int64value((uintptr_t)ids); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glDeleteQueriesEXT(n, ids); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) ids, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -GLboolean GLTrace_glIsQueryEXT(GLuint id) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glIsQueryEXT); - - // copy argument id - GLMessage_DataType *arg_id = glmsg.add_args(); - arg_id->set_isarray(false); - arg_id->set_type(GLMessage::DataType::INT); - arg_id->add_intvalue(id); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - GLboolean retValue = glContext->hooks->gl.glIsQueryEXT(id); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - // set return value - GLMessage_DataType *rt = glmsg.mutable_returnvalue(); - rt->set_isarray(false); - rt->set_type(GLMessage::DataType::BOOL); - rt->add_boolvalue(retValue); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); - - return retValue; -} - -void GLTrace_glBeginQueryEXT(GLenum target, GLuint id) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glBeginQueryEXT); - - // copy argument target - GLMessage_DataType *arg_target = glmsg.add_args(); - arg_target->set_isarray(false); - arg_target->set_type(GLMessage::DataType::ENUM); - arg_target->add_intvalue((int)target); - - // copy argument id - GLMessage_DataType *arg_id = glmsg.add_args(); - arg_id->set_isarray(false); - arg_id->set_type(GLMessage::DataType::INT); - arg_id->add_intvalue(id); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glBeginQueryEXT(target, id); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glEndQueryEXT(GLenum target) { +void GLTrace_glRenderbufferStorageMultisampleEXT(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glEndQueryEXT); + glmsg.set_function(GLMessage::glRenderbufferStorageMultisampleEXT); // copy argument target GLMessage_DataType *arg_target = glmsg.add_args(); @@ -13481,44 +12177,34 @@ void GLTrace_glEndQueryEXT(GLenum target) { arg_target->set_type(GLMessage::DataType::ENUM); arg_target->add_intvalue((int)target); - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glEndQueryEXT(target); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glQueryCounterEXT(GLuint id, GLenum target) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); + // copy argument samples + GLMessage_DataType *arg_samples = glmsg.add_args(); + arg_samples->set_isarray(false); + arg_samples->set_type(GLMessage::DataType::INT); + arg_samples->add_intvalue(samples); - glmsg.set_function(GLMessage::glQueryCounterEXT); + // copy argument internalformat + GLMessage_DataType *arg_internalformat = glmsg.add_args(); + arg_internalformat->set_isarray(false); + arg_internalformat->set_type(GLMessage::DataType::ENUM); + arg_internalformat->add_intvalue((int)internalformat); - // copy argument id - GLMessage_DataType *arg_id = glmsg.add_args(); - arg_id->set_isarray(false); - arg_id->set_type(GLMessage::DataType::INT); - arg_id->add_intvalue(id); + // copy argument width + GLMessage_DataType *arg_width = glmsg.add_args(); + arg_width->set_isarray(false); + arg_width->set_type(GLMessage::DataType::INT); + arg_width->add_intvalue(width); - // copy argument target - GLMessage_DataType *arg_target = glmsg.add_args(); - arg_target->set_isarray(false); - arg_target->set_type(GLMessage::DataType::ENUM); - arg_target->add_intvalue((int)target); + // copy argument height + GLMessage_DataType *arg_height = glmsg.add_args(); + arg_height->set_isarray(false); + arg_height->set_type(GLMessage::DataType::INT); + arg_height->add_intvalue(height); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glQueryCounterEXT(id, target); + glContext->hooks->gl.glRenderbufferStorageMultisampleEXT(target, samples, internalformat, width, height); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -13531,11 +12217,11 @@ void GLTrace_glQueryCounterEXT(GLuint id, GLenum target) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetQueryivEXT(GLenum target, GLenum pname, GLint * params) { +void GLTrace_glFramebufferTexture2DMultisampleEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glGetQueryivEXT); + glmsg.set_function(GLMessage::glFramebufferTexture2DMultisampleEXT); // copy argument target GLMessage_DataType *arg_target = glmsg.add_args(); @@ -13543,226 +12229,44 @@ void GLTrace_glGetQueryivEXT(GLenum target, GLenum pname, GLint * params) { arg_target->set_type(GLMessage::DataType::ENUM); arg_target->add_intvalue((int)target); - // copy argument pname - GLMessage_DataType *arg_pname = glmsg.add_args(); - arg_pname->set_isarray(false); - arg_pname->set_type(GLMessage::DataType::ENUM); - arg_pname->add_intvalue((int)pname); - - // copy argument params - GLMessage_DataType *arg_params = glmsg.add_args(); - arg_params->set_isarray(false); - arg_params->set_type(GLMessage::DataType::INT64); - arg_params->add_int64value((uintptr_t)params); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetQueryivEXT(target, pname, params); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) params, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glGetQueryObjectivEXT(GLuint id, GLenum pname, GLint * params) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glGetQueryObjectivEXT); - - // copy argument id - GLMessage_DataType *arg_id = glmsg.add_args(); - arg_id->set_isarray(false); - arg_id->set_type(GLMessage::DataType::INT); - arg_id->add_intvalue(id); - - // copy argument pname - GLMessage_DataType *arg_pname = glmsg.add_args(); - arg_pname->set_isarray(false); - arg_pname->set_type(GLMessage::DataType::ENUM); - arg_pname->add_intvalue((int)pname); - - // copy argument params - GLMessage_DataType *arg_params = glmsg.add_args(); - arg_params->set_isarray(false); - arg_params->set_type(GLMessage::DataType::INT64); - arg_params->add_int64value((uintptr_t)params); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetQueryObjectivEXT(id, pname, params); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) params, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glGetQueryObjectuivEXT(GLuint id, GLenum pname, GLuint * params) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glGetQueryObjectuivEXT); - - // copy argument id - GLMessage_DataType *arg_id = glmsg.add_args(); - arg_id->set_isarray(false); - arg_id->set_type(GLMessage::DataType::INT); - arg_id->add_intvalue(id); - - // copy argument pname - GLMessage_DataType *arg_pname = glmsg.add_args(); - arg_pname->set_isarray(false); - arg_pname->set_type(GLMessage::DataType::ENUM); - arg_pname->add_intvalue((int)pname); - - // copy argument params - GLMessage_DataType *arg_params = glmsg.add_args(); - arg_params->set_isarray(false); - arg_params->set_type(GLMessage::DataType::INT64); - arg_params->add_int64value((uintptr_t)params); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetQueryObjectuivEXT(id, pname, params); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) params, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glGetQueryObjecti64vEXT(GLuint id, GLenum pname, GLint64 * params) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glGetQueryObjecti64vEXT); - - // copy argument id - GLMessage_DataType *arg_id = glmsg.add_args(); - arg_id->set_isarray(false); - arg_id->set_type(GLMessage::DataType::INT); - arg_id->add_intvalue(id); - - // copy argument pname - GLMessage_DataType *arg_pname = glmsg.add_args(); - arg_pname->set_isarray(false); - arg_pname->set_type(GLMessage::DataType::ENUM); - arg_pname->add_intvalue((int)pname); - - // copy argument params - GLMessage_DataType *arg_params = glmsg.add_args(); - arg_params->set_isarray(false); - arg_params->set_type(GLMessage::DataType::INT64); - arg_params->add_int64value((uintptr_t)params); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetQueryObjecti64vEXT(id, pname, params); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) params, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glGetQueryObjectui64vEXT(GLuint id, GLenum pname, GLuint64 * params) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glGetQueryObjectui64vEXT); - - // copy argument id - GLMessage_DataType *arg_id = glmsg.add_args(); - arg_id->set_isarray(false); - arg_id->set_type(GLMessage::DataType::INT); - arg_id->add_intvalue(id); - - // copy argument pname - GLMessage_DataType *arg_pname = glmsg.add_args(); - arg_pname->set_isarray(false); - arg_pname->set_type(GLMessage::DataType::ENUM); - arg_pname->add_intvalue((int)pname); - - // copy argument params - GLMessage_DataType *arg_params = glmsg.add_args(); - arg_params->set_isarray(false); - arg_params->set_type(GLMessage::DataType::INT64); - arg_params->add_int64value((uintptr_t)params); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetQueryObjectui64vEXT(id, pname, params); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) params, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} + // copy argument attachment + GLMessage_DataType *arg_attachment = glmsg.add_args(); + arg_attachment->set_isarray(false); + arg_attachment->set_type(GLMessage::DataType::ENUM); + arg_attachment->add_intvalue((int)attachment); -void GLTrace_glDrawBuffersEXT(GLsizei n, const GLenum * bufs) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); + // copy argument textarget + GLMessage_DataType *arg_textarget = glmsg.add_args(); + arg_textarget->set_isarray(false); + arg_textarget->set_type(GLMessage::DataType::ENUM); + arg_textarget->add_intvalue((int)textarget); - glmsg.set_function(GLMessage::glDrawBuffersEXT); + // copy argument texture + GLMessage_DataType *arg_texture = glmsg.add_args(); + arg_texture->set_isarray(false); + arg_texture->set_type(GLMessage::DataType::INT); + arg_texture->add_intvalue(texture); - // copy argument n - GLMessage_DataType *arg_n = glmsg.add_args(); - arg_n->set_isarray(false); - arg_n->set_type(GLMessage::DataType::INT); - arg_n->add_intvalue(n); + // copy argument level + GLMessage_DataType *arg_level = glmsg.add_args(); + arg_level->set_isarray(false); + arg_level->set_type(GLMessage::DataType::INT); + arg_level->add_intvalue(level); - // copy argument bufs - GLMessage_DataType *arg_bufs = glmsg.add_args(); - arg_bufs->set_isarray(false); - arg_bufs->set_type(GLMessage::DataType::INT64); - arg_bufs->add_int64value((uintptr_t)bufs); + // copy argument samples + GLMessage_DataType *arg_samples = glmsg.add_args(); + arg_samples->set_isarray(false); + arg_samples->set_type(GLMessage::DataType::INT); + arg_samples->add_intvalue(samples); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glDrawBuffersEXT(n, bufs); + glContext->hooks->gl.glFramebufferTexture2DMultisampleEXT(target, attachment, textarget, texture, level, samples); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) bufs, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -13771,11 +12275,11 @@ void GLTrace_glDrawBuffersEXT(GLsizei n, const GLenum * bufs) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glDrawArraysInstancedEXT(GLenum mode, GLint start, GLsizei count, GLsizei primcount) { +void GLTrace_glMultiDrawArraysEXT(GLenum mode, GLint *first, GLsizei *count, GLsizei primcount) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glDrawArraysInstancedEXT); + glmsg.set_function(GLMessage::glMultiDrawArraysEXT); // copy argument mode GLMessage_DataType *arg_mode = glmsg.add_args(); @@ -13783,17 +12287,17 @@ void GLTrace_glDrawArraysInstancedEXT(GLenum mode, GLint start, GLsizei count, G arg_mode->set_type(GLMessage::DataType::ENUM); arg_mode->add_intvalue((int)mode); - // copy argument start - GLMessage_DataType *arg_start = glmsg.add_args(); - arg_start->set_isarray(false); - arg_start->set_type(GLMessage::DataType::INT); - arg_start->add_intvalue(start); + // copy argument first + GLMessage_DataType *arg_first = glmsg.add_args(); + arg_first->set_isarray(false); + arg_first->set_type(GLMessage::DataType::INT64); + arg_first->add_int64value((uintptr_t)first); // copy argument count GLMessage_DataType *arg_count = glmsg.add_args(); arg_count->set_isarray(false); - arg_count->set_type(GLMessage::DataType::INT); - arg_count->add_intvalue(count); + arg_count->set_type(GLMessage::DataType::INT64); + arg_count->add_int64value((uintptr_t)count); // copy argument primcount GLMessage_DataType *arg_primcount = glmsg.add_args(); @@ -13804,11 +12308,13 @@ void GLTrace_glDrawArraysInstancedEXT(GLenum mode, GLint start, GLsizei count, G // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glDrawArraysInstancedEXT(mode, start, count, primcount); + glContext->hooks->gl.glMultiDrawArraysEXT(mode, first, count, primcount); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { + (void *) first, + (void *) count, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -13817,11 +12323,11 @@ void GLTrace_glDrawArraysInstancedEXT(GLenum mode, GLint start, GLsizei count, G glContext->traceGLMessage(&glmsg); } -void GLTrace_glDrawElementsInstancedEXT(GLenum mode, GLsizei count, GLenum type, const void * indices, GLsizei primcount) { +void GLTrace_glMultiDrawElementsEXT(GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glDrawElementsInstancedEXT); + glmsg.set_function(GLMessage::glMultiDrawElementsEXT); // copy argument mode GLMessage_DataType *arg_mode = glmsg.add_args(); @@ -13832,8 +12338,8 @@ void GLTrace_glDrawElementsInstancedEXT(GLenum mode, GLsizei count, GLenum type, // copy argument count GLMessage_DataType *arg_count = glmsg.add_args(); arg_count->set_isarray(false); - arg_count->set_type(GLMessage::DataType::INT); - arg_count->add_intvalue(count); + arg_count->set_type(GLMessage::DataType::INT64); + arg_count->add_int64value((uintptr_t)count); // copy argument type GLMessage_DataType *arg_type = glmsg.add_args(); @@ -13856,11 +12362,12 @@ void GLTrace_glDrawElementsInstancedEXT(GLenum mode, GLsizei count, GLenum type, // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glDrawElementsInstancedEXT(mode, count, type, indices, primcount); + glContext->hooks->gl.glMultiDrawElementsEXT(mode, count, type, indices, primcount); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { + (void *) count, (void *) indices, }; @@ -13870,32 +12377,33 @@ void GLTrace_glDrawElementsInstancedEXT(GLenum mode, GLsizei count, GLenum type, glContext->traceGLMessage(&glmsg); } -void GLTrace_glVertexAttribDivisorEXT(GLuint index, GLuint divisor) { +void GLTrace_glGenQueriesEXT(GLsizei n, GLuint *ids) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glVertexAttribDivisorEXT); + glmsg.set_function(GLMessage::glGenQueriesEXT); - // copy argument index - GLMessage_DataType *arg_index = glmsg.add_args(); - arg_index->set_isarray(false); - arg_index->set_type(GLMessage::DataType::INT); - arg_index->add_intvalue(index); + // copy argument n + GLMessage_DataType *arg_n = glmsg.add_args(); + arg_n->set_isarray(false); + arg_n->set_type(GLMessage::DataType::INT); + arg_n->add_intvalue(n); - // copy argument divisor - GLMessage_DataType *arg_divisor = glmsg.add_args(); - arg_divisor->set_isarray(false); - arg_divisor->set_type(GLMessage::DataType::INT); - arg_divisor->add_intvalue(divisor); + // copy argument ids + GLMessage_DataType *arg_ids = glmsg.add_args(); + arg_ids->set_isarray(false); + arg_ids->set_type(GLMessage::DataType::INT64); + arg_ids->add_int64value((uintptr_t)ids); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glVertexAttribDivisorEXT(index, divisor); + glContext->hooks->gl.glGenQueriesEXT(n, ids); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { + (void *) ids, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -13904,208 +12412,82 @@ void GLTrace_glVertexAttribDivisorEXT(GLuint index, GLuint divisor) { glContext->traceGLMessage(&glmsg); } -void * GLTrace_glMapBufferRangeEXT(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access) { +void GLTrace_glDeleteQueriesEXT(GLsizei n, const GLuint *ids) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glMapBufferRangeEXT); - - // copy argument target - GLMessage_DataType *arg_target = glmsg.add_args(); - arg_target->set_isarray(false); - arg_target->set_type(GLMessage::DataType::ENUM); - arg_target->add_intvalue((int)target); - - // copy argument offset - GLMessage_DataType *arg_offset = glmsg.add_args(); - arg_offset->set_isarray(false); - arg_offset->set_type(GLMessage::DataType::INT); - arg_offset->add_intvalue(offset); + glmsg.set_function(GLMessage::glDeleteQueriesEXT); - // copy argument length - GLMessage_DataType *arg_length = glmsg.add_args(); - arg_length->set_isarray(false); - arg_length->set_type(GLMessage::DataType::INT); - arg_length->add_intvalue(length); + // copy argument n + GLMessage_DataType *arg_n = glmsg.add_args(); + arg_n->set_isarray(false); + arg_n->set_type(GLMessage::DataType::INT); + arg_n->add_intvalue(n); - // copy argument access - GLMessage_DataType *arg_access = glmsg.add_args(); - arg_access->set_isarray(false); - arg_access->set_type(GLMessage::DataType::INT); - arg_access->add_intvalue(access); + // copy argument ids + GLMessage_DataType *arg_ids = glmsg.add_args(); + arg_ids->set_isarray(false); + arg_ids->set_type(GLMessage::DataType::INT64); + arg_ids->add_int64value((uintptr_t)ids); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - void * retValue = glContext->hooks->gl.glMapBufferRangeEXT(target, offset, length, access); + glContext->hooks->gl.glDeleteQueriesEXT(n, ids); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - // set return value - GLMessage_DataType *rt = glmsg.mutable_returnvalue(); - rt->set_isarray(false); - rt->set_type(GLMessage::DataType::INT64); - rt->add_int64value((uintptr_t)retValue); - void *pointerArgs[] = { - (void *) retValue, + (void *) ids, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, threadStartTime, threadEndTime, &glmsg, pointerArgs); glContext->traceGLMessage(&glmsg); - - return retValue; } -void GLTrace_glFlushMappedBufferRangeEXT(GLenum target, GLintptr offset, GLsizeiptr length) { +GLboolean GLTrace_glIsQueryEXT(GLuint id) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glFlushMappedBufferRangeEXT); - - // copy argument target - GLMessage_DataType *arg_target = glmsg.add_args(); - arg_target->set_isarray(false); - arg_target->set_type(GLMessage::DataType::ENUM); - arg_target->add_intvalue((int)target); - - // copy argument offset - GLMessage_DataType *arg_offset = glmsg.add_args(); - arg_offset->set_isarray(false); - arg_offset->set_type(GLMessage::DataType::INT); - arg_offset->add_intvalue(offset); + glmsg.set_function(GLMessage::glIsQueryEXT); - // copy argument length - GLMessage_DataType *arg_length = glmsg.add_args(); - arg_length->set_isarray(false); - arg_length->set_type(GLMessage::DataType::INT); - arg_length->add_intvalue(length); + // copy argument id + GLMessage_DataType *arg_id = glmsg.add_args(); + arg_id->set_isarray(false); + arg_id->set_type(GLMessage::DataType::INT); + arg_id->add_intvalue(id); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glFlushMappedBufferRangeEXT(target, offset, length); + GLboolean retValue = glContext->hooks->gl.glIsQueryEXT(id); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glMultiDrawArraysEXT(GLenum mode, const GLint * first, const GLsizei * count, GLsizei primcount) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glMultiDrawArraysEXT); - - // copy argument mode - GLMessage_DataType *arg_mode = glmsg.add_args(); - arg_mode->set_isarray(false); - arg_mode->set_type(GLMessage::DataType::ENUM); - arg_mode->add_intvalue((int)mode); - - // copy argument first - GLMessage_DataType *arg_first = glmsg.add_args(); - arg_first->set_isarray(false); - arg_first->set_type(GLMessage::DataType::INT64); - arg_first->add_int64value((uintptr_t)first); - - // copy argument count - GLMessage_DataType *arg_count = glmsg.add_args(); - arg_count->set_isarray(false); - arg_count->set_type(GLMessage::DataType::INT64); - arg_count->add_int64value((uintptr_t)count); - - // copy argument primcount - GLMessage_DataType *arg_primcount = glmsg.add_args(); - arg_primcount->set_isarray(false); - arg_primcount->set_type(GLMessage::DataType::INT); - arg_primcount->add_intvalue(primcount); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glMultiDrawArraysEXT(mode, first, count, primcount); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); + // set return value + GLMessage_DataType *rt = glmsg.mutable_returnvalue(); + rt->set_isarray(false); + rt->set_type(GLMessage::DataType::BOOL); + rt->add_boolvalue(retValue); void *pointerArgs[] = { - (void *) first, - (void *) count, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, threadStartTime, threadEndTime, &glmsg, pointerArgs); glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glMultiDrawElementsEXT(GLenum mode, const GLsizei * count, GLenum type, const void *const* indices, GLsizei primcount) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glMultiDrawElementsEXT); - - // copy argument mode - GLMessage_DataType *arg_mode = glmsg.add_args(); - arg_mode->set_isarray(false); - arg_mode->set_type(GLMessage::DataType::ENUM); - arg_mode->add_intvalue((int)mode); - - // copy argument count - GLMessage_DataType *arg_count = glmsg.add_args(); - arg_count->set_isarray(false); - arg_count->set_type(GLMessage::DataType::INT64); - arg_count->add_int64value((uintptr_t)count); - - // copy argument type - GLMessage_DataType *arg_type = glmsg.add_args(); - arg_type->set_isarray(false); - arg_type->set_type(GLMessage::DataType::ENUM); - arg_type->add_intvalue((int)type); - - // copy argument indices - GLMessage_DataType *arg_indices = glmsg.add_args(); - arg_indices->set_isarray(false); - arg_indices->set_type(GLMessage::DataType::INT64); - arg_indices->add_int64value((uintptr_t)indices); - // copy argument primcount - GLMessage_DataType *arg_primcount = glmsg.add_args(); - arg_primcount->set_isarray(false); - arg_primcount->set_type(GLMessage::DataType::INT); - arg_primcount->add_intvalue(primcount); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glMultiDrawElementsEXT(mode, count, type, indices, primcount); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) count, - (void *) indices, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); + return retValue; } -void GLTrace_glRenderbufferStorageMultisampleEXT(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height) { +void GLTrace_glBeginQueryEXT(GLenum target, GLuint id) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glRenderbufferStorageMultisampleEXT); + glmsg.set_function(GLMessage::glBeginQueryEXT); // copy argument target GLMessage_DataType *arg_target = glmsg.add_args(); @@ -14113,34 +12495,16 @@ void GLTrace_glRenderbufferStorageMultisampleEXT(GLenum target, GLsizei samples, arg_target->set_type(GLMessage::DataType::ENUM); arg_target->add_intvalue((int)target); - // copy argument samples - GLMessage_DataType *arg_samples = glmsg.add_args(); - arg_samples->set_isarray(false); - arg_samples->set_type(GLMessage::DataType::INT); - arg_samples->add_intvalue(samples); - - // copy argument internalformat - GLMessage_DataType *arg_internalformat = glmsg.add_args(); - arg_internalformat->set_isarray(false); - arg_internalformat->set_type(GLMessage::DataType::ENUM); - arg_internalformat->add_intvalue((int)internalformat); - - // copy argument width - GLMessage_DataType *arg_width = glmsg.add_args(); - arg_width->set_isarray(false); - arg_width->set_type(GLMessage::DataType::INT); - arg_width->add_intvalue(width); - - // copy argument height - GLMessage_DataType *arg_height = glmsg.add_args(); - arg_height->set_isarray(false); - arg_height->set_type(GLMessage::DataType::INT); - arg_height->add_intvalue(height); + // copy argument id + GLMessage_DataType *arg_id = glmsg.add_args(); + arg_id->set_isarray(false); + arg_id->set_type(GLMessage::DataType::INT); + arg_id->add_intvalue(id); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glRenderbufferStorageMultisampleEXT(target, samples, internalformat, width, height); + glContext->hooks->gl.glBeginQueryEXT(target, id); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -14153,11 +12517,11 @@ void GLTrace_glRenderbufferStorageMultisampleEXT(GLenum target, GLsizei samples, glContext->traceGLMessage(&glmsg); } -void GLTrace_glFramebufferTexture2DMultisampleEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples) { +void GLTrace_glEndQueryEXT(GLenum target) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glFramebufferTexture2DMultisampleEXT); + glmsg.set_function(GLMessage::glEndQueryEXT); // copy argument target GLMessage_DataType *arg_target = glmsg.add_args(); @@ -14165,74 +12529,10 @@ void GLTrace_glFramebufferTexture2DMultisampleEXT(GLenum target, GLenum attachme arg_target->set_type(GLMessage::DataType::ENUM); arg_target->add_intvalue((int)target); - // copy argument attachment - GLMessage_DataType *arg_attachment = glmsg.add_args(); - arg_attachment->set_isarray(false); - arg_attachment->set_type(GLMessage::DataType::ENUM); - arg_attachment->add_intvalue((int)attachment); - - // copy argument textarget - GLMessage_DataType *arg_textarget = glmsg.add_args(); - arg_textarget->set_isarray(false); - arg_textarget->set_type(GLMessage::DataType::ENUM); - arg_textarget->add_intvalue((int)textarget); - - // copy argument texture - GLMessage_DataType *arg_texture = glmsg.add_args(); - arg_texture->set_isarray(false); - arg_texture->set_type(GLMessage::DataType::INT); - arg_texture->add_intvalue(texture); - - // copy argument level - GLMessage_DataType *arg_level = glmsg.add_args(); - arg_level->set_isarray(false); - arg_level->set_type(GLMessage::DataType::INT); - arg_level->add_intvalue(level); - - // copy argument samples - GLMessage_DataType *arg_samples = glmsg.add_args(); - arg_samples->set_isarray(false); - arg_samples->set_type(GLMessage::DataType::INT); - arg_samples->add_intvalue(samples); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glFramebufferTexture2DMultisampleEXT(target, attachment, textarget, texture, level, samples); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glReadBufferIndexedEXT(GLenum src, GLint index) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glReadBufferIndexedEXT); - - // copy argument src - GLMessage_DataType *arg_src = glmsg.add_args(); - arg_src->set_isarray(false); - arg_src->set_type(GLMessage::DataType::ENUM); - arg_src->add_intvalue((int)src); - - // copy argument index - GLMessage_DataType *arg_index = glmsg.add_args(); - arg_index->set_isarray(false); - arg_index->set_type(GLMessage::DataType::INT); - arg_index->add_intvalue(index); - // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glReadBufferIndexedEXT(src, index); + glContext->hooks->gl.glEndQueryEXT(target); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -14245,40 +12545,39 @@ void GLTrace_glReadBufferIndexedEXT(GLenum src, GLint index) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glDrawBuffersIndexedEXT(GLint n, const GLenum * location, const GLint * indices) { +void GLTrace_glGetQueryivEXT(GLenum target, GLenum pname, GLint *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glDrawBuffersIndexedEXT); + glmsg.set_function(GLMessage::glGetQueryivEXT); - // copy argument n - GLMessage_DataType *arg_n = glmsg.add_args(); - arg_n->set_isarray(false); - arg_n->set_type(GLMessage::DataType::INT); - arg_n->add_intvalue(n); + // copy argument target + GLMessage_DataType *arg_target = glmsg.add_args(); + arg_target->set_isarray(false); + arg_target->set_type(GLMessage::DataType::ENUM); + arg_target->add_intvalue((int)target); - // copy argument location - GLMessage_DataType *arg_location = glmsg.add_args(); - arg_location->set_isarray(false); - arg_location->set_type(GLMessage::DataType::INT64); - arg_location->add_int64value((uintptr_t)location); + // copy argument pname + GLMessage_DataType *arg_pname = glmsg.add_args(); + arg_pname->set_isarray(false); + arg_pname->set_type(GLMessage::DataType::ENUM); + arg_pname->add_intvalue((int)pname); - // copy argument indices - GLMessage_DataType *arg_indices = glmsg.add_args(); - arg_indices->set_isarray(false); - arg_indices->set_type(GLMessage::DataType::INT64); - arg_indices->add_int64value((uintptr_t)indices); + // copy argument params + GLMessage_DataType *arg_params = glmsg.add_args(); + arg_params->set_isarray(false); + arg_params->set_type(GLMessage::DataType::INT64); + arg_params->add_int64value((uintptr_t)params); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glDrawBuffersIndexedEXT(n, location, indices); + glContext->hooks->gl.glGetQueryivEXT(target, pname, params); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) location, - (void *) indices, + (void *) params, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -14287,39 +12586,39 @@ void GLTrace_glDrawBuffersIndexedEXT(GLint n, const GLenum * location, const GLi glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetIntegeri_vEXT(GLenum target, GLuint index, GLint * data) { +void GLTrace_glGetQueryObjectuivEXT(GLuint id, GLenum pname, GLuint *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glGetIntegeri_vEXT); + glmsg.set_function(GLMessage::glGetQueryObjectuivEXT); - // copy argument target - GLMessage_DataType *arg_target = glmsg.add_args(); - arg_target->set_isarray(false); - arg_target->set_type(GLMessage::DataType::ENUM); - arg_target->add_intvalue((int)target); + // copy argument id + GLMessage_DataType *arg_id = glmsg.add_args(); + arg_id->set_isarray(false); + arg_id->set_type(GLMessage::DataType::INT); + arg_id->add_intvalue(id); - // copy argument index - GLMessage_DataType *arg_index = glmsg.add_args(); - arg_index->set_isarray(false); - arg_index->set_type(GLMessage::DataType::INT); - arg_index->add_intvalue(index); + // copy argument pname + GLMessage_DataType *arg_pname = glmsg.add_args(); + arg_pname->set_isarray(false); + arg_pname->set_type(GLMessage::DataType::ENUM); + arg_pname->add_intvalue((int)pname); - // copy argument data - GLMessage_DataType *arg_data = glmsg.add_args(); - arg_data->set_isarray(false); - arg_data->set_type(GLMessage::DataType::INT64); - arg_data->add_int64value((uintptr_t)data); + // copy argument params + GLMessage_DataType *arg_params = glmsg.add_args(); + arg_params->set_isarray(false); + arg_params->set_type(GLMessage::DataType::INT64); + arg_params->add_int64value((uintptr_t)params); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetIntegeri_vEXT(target, index, data); + glContext->hooks->gl.glGetQueryObjectuivEXT(id, pname, params); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) data, + (void *) params, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -14358,7 +12657,7 @@ GLenum GLTrace_glGetGraphicsResetStatusEXT(void) { return retValue; } -void GLTrace_glReadnPixelsEXT(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void * data) { +void GLTrace_glReadnPixelsEXT(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -14429,7 +12728,7 @@ void GLTrace_glReadnPixelsEXT(GLint x, GLint y, GLsizei width, GLsizei height, G glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetnUniformfvEXT(GLuint program, GLint location, GLsizei bufSize, GLfloat * params) { +void GLTrace_glGetnUniformfvEXT(GLuint program, GLint location, GLsizei bufSize, float *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -14476,7 +12775,7 @@ void GLTrace_glGetnUniformfvEXT(GLuint program, GLint location, GLsizei bufSize, glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetnUniformivEXT(GLuint program, GLint location, GLsizei bufSize, GLint * params) { +void GLTrace_glGetnUniformivEXT(GLuint program, GLint location, GLsizei bufSize, GLint *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -14523,11 +12822,11 @@ void GLTrace_glGetnUniformivEXT(GLuint program, GLint location, GLsizei bufSize, glContext->traceGLMessage(&glmsg); } -void GLTrace_glActiveShaderProgramEXT(GLuint pipeline, GLuint program) { +void GLTrace_glUseProgramStagesEXT(GLuint pipeline, GLbitfield stages, GLuint program) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glActiveShaderProgramEXT); + glmsg.set_function(GLMessage::glUseProgramStagesEXT); // copy argument pipeline GLMessage_DataType *arg_pipeline = glmsg.add_args(); @@ -14535,6 +12834,12 @@ void GLTrace_glActiveShaderProgramEXT(GLuint pipeline, GLuint program) { arg_pipeline->set_type(GLMessage::DataType::INT); arg_pipeline->add_intvalue(pipeline); + // copy argument stages + GLMessage_DataType *arg_stages = glmsg.add_args(); + arg_stages->set_isarray(false); + arg_stages->set_type(GLMessage::DataType::INT); + arg_stages->add_intvalue(stages); + // copy argument program GLMessage_DataType *arg_program = glmsg.add_args(); arg_program->set_isarray(false); @@ -14544,7 +12849,7 @@ void GLTrace_glActiveShaderProgramEXT(GLuint pipeline, GLuint program) { // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glActiveShaderProgramEXT(pipeline, program); + glContext->hooks->gl.glUseProgramStagesEXT(pipeline, stages, program); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -14557,11 +12862,11 @@ void GLTrace_glActiveShaderProgramEXT(GLuint pipeline, GLuint program) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glBindProgramPipelineEXT(GLuint pipeline) { +void GLTrace_glActiveShaderProgramEXT(GLuint pipeline, GLuint program) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glBindProgramPipelineEXT); + glmsg.set_function(GLMessage::glActiveShaderProgramEXT); // copy argument pipeline GLMessage_DataType *arg_pipeline = glmsg.add_args(); @@ -14569,10 +12874,16 @@ void GLTrace_glBindProgramPipelineEXT(GLuint pipeline) { arg_pipeline->set_type(GLMessage::DataType::INT); arg_pipeline->add_intvalue(pipeline); + // copy argument program + GLMessage_DataType *arg_program = glmsg.add_args(); + arg_program->set_isarray(false); + arg_program->set_type(GLMessage::DataType::INT); + arg_program->add_intvalue(program); + // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glBindProgramPipelineEXT(pipeline); + glContext->hooks->gl.glActiveShaderProgramEXT(pipeline, program); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -14585,7 +12896,7 @@ void GLTrace_glBindProgramPipelineEXT(GLuint pipeline) { glContext->traceGLMessage(&glmsg); } -GLuint GLTrace_glCreateShaderProgramvEXT(GLenum type, GLsizei count, const GLchar ** strings) { +GLuint GLTrace_glCreateShaderProgramvEXT(GLenum type, GLsizei count, const GLchar **strings) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -14634,33 +12945,26 @@ GLuint GLTrace_glCreateShaderProgramvEXT(GLenum type, GLsizei count, const GLcha return retValue; } -void GLTrace_glDeleteProgramPipelinesEXT(GLsizei n, const GLuint * pipelines) { +void GLTrace_glBindProgramPipelineEXT(GLuint pipeline) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glDeleteProgramPipelinesEXT); - - // copy argument n - GLMessage_DataType *arg_n = glmsg.add_args(); - arg_n->set_isarray(false); - arg_n->set_type(GLMessage::DataType::INT); - arg_n->add_intvalue(n); + glmsg.set_function(GLMessage::glBindProgramPipelineEXT); - // copy argument pipelines - GLMessage_DataType *arg_pipelines = glmsg.add_args(); - arg_pipelines->set_isarray(false); - arg_pipelines->set_type(GLMessage::DataType::INT64); - arg_pipelines->add_int64value((uintptr_t)pipelines); + // copy argument pipeline + GLMessage_DataType *arg_pipeline = glmsg.add_args(); + arg_pipeline->set_isarray(false); + arg_pipeline->set_type(GLMessage::DataType::INT); + arg_pipeline->add_intvalue(pipeline); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glDeleteProgramPipelinesEXT(n, pipelines); + glContext->hooks->gl.glBindProgramPipelineEXT(pipeline); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) pipelines, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -14669,11 +12973,11 @@ void GLTrace_glDeleteProgramPipelinesEXT(GLsizei n, const GLuint * pipelines) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGenProgramPipelinesEXT(GLsizei n, GLuint * pipelines) { +void GLTrace_glDeleteProgramPipelinesEXT(GLsizei n, const GLuint *pipelines) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glGenProgramPipelinesEXT); + glmsg.set_function(GLMessage::glDeleteProgramPipelinesEXT); // copy argument n GLMessage_DataType *arg_n = glmsg.add_args(); @@ -14690,7 +12994,7 @@ void GLTrace_glGenProgramPipelinesEXT(GLsizei n, GLuint * pipelines) { // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGenProgramPipelinesEXT(n, pipelines); + glContext->hooks->gl.glDeleteProgramPipelinesEXT(n, pipelines); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -14704,87 +13008,33 @@ void GLTrace_glGenProgramPipelinesEXT(GLsizei n, GLuint * pipelines) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetProgramPipelineInfoLogEXT(GLuint pipeline, GLsizei bufSize, GLsizei * length, GLchar * infoLog) { +void GLTrace_glGenProgramPipelinesEXT(GLsizei n, GLuint *pipelines) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glGetProgramPipelineInfoLogEXT); - - // copy argument pipeline - GLMessage_DataType *arg_pipeline = glmsg.add_args(); - arg_pipeline->set_isarray(false); - arg_pipeline->set_type(GLMessage::DataType::INT); - arg_pipeline->add_intvalue(pipeline); - - // copy argument bufSize - GLMessage_DataType *arg_bufSize = glmsg.add_args(); - arg_bufSize->set_isarray(false); - arg_bufSize->set_type(GLMessage::DataType::INT); - arg_bufSize->add_intvalue(bufSize); - - // copy argument length - GLMessage_DataType *arg_length = glmsg.add_args(); - arg_length->set_isarray(false); - arg_length->set_type(GLMessage::DataType::INT64); - arg_length->add_int64value((uintptr_t)length); - - // copy argument infoLog - GLMessage_DataType *arg_infoLog = glmsg.add_args(); - arg_infoLog->set_isarray(false); - arg_infoLog->set_type(GLMessage::DataType::INT64); - arg_infoLog->add_int64value((uintptr_t)infoLog); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetProgramPipelineInfoLogEXT(pipeline, bufSize, length, infoLog); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) length, - (void *) infoLog, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glGetProgramPipelineivEXT(GLuint pipeline, GLenum pname, GLint * params) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glGetProgramPipelineivEXT); - - // copy argument pipeline - GLMessage_DataType *arg_pipeline = glmsg.add_args(); - arg_pipeline->set_isarray(false); - arg_pipeline->set_type(GLMessage::DataType::INT); - arg_pipeline->add_intvalue(pipeline); + glmsg.set_function(GLMessage::glGenProgramPipelinesEXT); - // copy argument pname - GLMessage_DataType *arg_pname = glmsg.add_args(); - arg_pname->set_isarray(false); - arg_pname->set_type(GLMessage::DataType::ENUM); - arg_pname->add_intvalue((int)pname); + // copy argument n + GLMessage_DataType *arg_n = glmsg.add_args(); + arg_n->set_isarray(false); + arg_n->set_type(GLMessage::DataType::INT); + arg_n->add_intvalue(n); - // copy argument params - GLMessage_DataType *arg_params = glmsg.add_args(); - arg_params->set_isarray(false); - arg_params->set_type(GLMessage::DataType::INT64); - arg_params->add_int64value((uintptr_t)params); + // copy argument pipelines + GLMessage_DataType *arg_pipelines = glmsg.add_args(); + arg_pipelines->set_isarray(false); + arg_pipelines->set_type(GLMessage::DataType::INT64); + arg_pipelines->add_int64value((uintptr_t)pipelines); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetProgramPipelineivEXT(pipeline, pname, params); + glContext->hooks->gl.glGenProgramPipelinesEXT(n, pipelines); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) params, + (void *) pipelines, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -14869,85 +13119,39 @@ void GLTrace_glProgramParameteriEXT(GLuint program, GLenum pname, GLint value) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glProgramUniform1fEXT(GLuint program, GLint location, GLfloat v0) { +void GLTrace_glGetProgramPipelineivEXT(GLuint pipeline, GLenum pname, GLint *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glProgramUniform1fEXT); - - // copy argument program - GLMessage_DataType *arg_program = glmsg.add_args(); - arg_program->set_isarray(false); - arg_program->set_type(GLMessage::DataType::INT); - arg_program->add_intvalue(program); - - // copy argument location - GLMessage_DataType *arg_location = glmsg.add_args(); - arg_location->set_isarray(false); - arg_location->set_type(GLMessage::DataType::INT); - arg_location->add_intvalue(location); - - // copy argument v0 - GLMessage_DataType *arg_v0 = glmsg.add_args(); - arg_v0->set_isarray(false); - arg_v0->set_type(GLMessage::DataType::FLOAT); - arg_v0->add_floatvalue(v0); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniform1fEXT(program, location, v0); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glProgramUniform1fvEXT(GLuint program, GLint location, GLsizei count, const GLfloat * value) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glProgramUniform1fvEXT); - - // copy argument program - GLMessage_DataType *arg_program = glmsg.add_args(); - arg_program->set_isarray(false); - arg_program->set_type(GLMessage::DataType::INT); - arg_program->add_intvalue(program); + glmsg.set_function(GLMessage::glGetProgramPipelineivEXT); - // copy argument location - GLMessage_DataType *arg_location = glmsg.add_args(); - arg_location->set_isarray(false); - arg_location->set_type(GLMessage::DataType::INT); - arg_location->add_intvalue(location); + // copy argument pipeline + GLMessage_DataType *arg_pipeline = glmsg.add_args(); + arg_pipeline->set_isarray(false); + arg_pipeline->set_type(GLMessage::DataType::INT); + arg_pipeline->add_intvalue(pipeline); - // copy argument count - GLMessage_DataType *arg_count = glmsg.add_args(); - arg_count->set_isarray(false); - arg_count->set_type(GLMessage::DataType::INT); - arg_count->add_intvalue(count); + // copy argument pname + GLMessage_DataType *arg_pname = glmsg.add_args(); + arg_pname->set_isarray(false); + arg_pname->set_type(GLMessage::DataType::ENUM); + arg_pname->add_intvalue((int)pname); - // copy argument value - GLMessage_DataType *arg_value = glmsg.add_args(); - arg_value->set_isarray(false); - arg_value->set_type(GLMessage::DataType::INT64); - arg_value->add_int64value((uintptr_t)value); + // copy argument params + GLMessage_DataType *arg_params = glmsg.add_args(); + arg_params->set_isarray(false); + arg_params->set_type(GLMessage::DataType::INT64); + arg_params->add_int64value((uintptr_t)params); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniform1fvEXT(program, location, count, value); + glContext->hooks->gl.glGetProgramPipelineivEXT(pipeline, pname, params); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) value, + (void *) params, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -14956,7 +13160,7 @@ void GLTrace_glProgramUniform1fvEXT(GLuint program, GLint location, GLsizei coun glContext->traceGLMessage(&glmsg); } -void GLTrace_glProgramUniform1iEXT(GLuint program, GLint location, GLint v0) { +void GLTrace_glProgramUniform1iEXT(GLuint program, GLint location, GLint x) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -14974,16 +13178,16 @@ void GLTrace_glProgramUniform1iEXT(GLuint program, GLint location, GLint v0) { arg_location->set_type(GLMessage::DataType::INT); arg_location->add_intvalue(location); - // copy argument v0 - GLMessage_DataType *arg_v0 = glmsg.add_args(); - arg_v0->set_isarray(false); - arg_v0->set_type(GLMessage::DataType::INT); - arg_v0->add_intvalue(v0); + // copy argument x + GLMessage_DataType *arg_x = glmsg.add_args(); + arg_x->set_isarray(false); + arg_x->set_type(GLMessage::DataType::INT); + arg_x->add_intvalue(x); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniform1iEXT(program, location, v0); + glContext->hooks->gl.glProgramUniform1iEXT(program, location, x); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -14996,11 +13200,11 @@ void GLTrace_glProgramUniform1iEXT(GLuint program, GLint location, GLint v0) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glProgramUniform1ivEXT(GLuint program, GLint location, GLsizei count, const GLint * value) { +void GLTrace_glProgramUniform2iEXT(GLuint program, GLint location, GLint x, GLint y) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glProgramUniform1ivEXT); + glmsg.set_function(GLMessage::glProgramUniform2iEXT); // copy argument program GLMessage_DataType *arg_program = glmsg.add_args(); @@ -15014,27 +13218,26 @@ void GLTrace_glProgramUniform1ivEXT(GLuint program, GLint location, GLsizei coun arg_location->set_type(GLMessage::DataType::INT); arg_location->add_intvalue(location); - // copy argument count - GLMessage_DataType *arg_count = glmsg.add_args(); - arg_count->set_isarray(false); - arg_count->set_type(GLMessage::DataType::INT); - arg_count->add_intvalue(count); + // copy argument x + GLMessage_DataType *arg_x = glmsg.add_args(); + arg_x->set_isarray(false); + arg_x->set_type(GLMessage::DataType::INT); + arg_x->add_intvalue(x); - // copy argument value - GLMessage_DataType *arg_value = glmsg.add_args(); - arg_value->set_isarray(false); - arg_value->set_type(GLMessage::DataType::INT64); - arg_value->add_int64value((uintptr_t)value); + // copy argument y + GLMessage_DataType *arg_y = glmsg.add_args(); + arg_y->set_isarray(false); + arg_y->set_type(GLMessage::DataType::INT); + arg_y->add_intvalue(y); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniform1ivEXT(program, location, count, value); + glContext->hooks->gl.glProgramUniform2iEXT(program, location, x, y); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) value, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -15043,11 +13246,11 @@ void GLTrace_glProgramUniform1ivEXT(GLuint program, GLint location, GLsizei coun glContext->traceGLMessage(&glmsg); } -void GLTrace_glProgramUniform2fEXT(GLuint program, GLint location, GLfloat v0, GLfloat v1) { +void GLTrace_glProgramUniform3iEXT(GLuint program, GLint location, GLint x, GLint y, GLint z) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glProgramUniform2fEXT); + glmsg.set_function(GLMessage::glProgramUniform3iEXT); // copy argument program GLMessage_DataType *arg_program = glmsg.add_args(); @@ -15061,73 +13264,32 @@ void GLTrace_glProgramUniform2fEXT(GLuint program, GLint location, GLfloat v0, G arg_location->set_type(GLMessage::DataType::INT); arg_location->add_intvalue(location); - // copy argument v0 - GLMessage_DataType *arg_v0 = glmsg.add_args(); - arg_v0->set_isarray(false); - arg_v0->set_type(GLMessage::DataType::FLOAT); - arg_v0->add_floatvalue(v0); - - // copy argument v1 - GLMessage_DataType *arg_v1 = glmsg.add_args(); - arg_v1->set_isarray(false); - arg_v1->set_type(GLMessage::DataType::FLOAT); - arg_v1->add_floatvalue(v1); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniform2fEXT(program, location, v0, v1); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glProgramUniform2fvEXT(GLuint program, GLint location, GLsizei count, const GLfloat * value) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glProgramUniform2fvEXT); - - // copy argument program - GLMessage_DataType *arg_program = glmsg.add_args(); - arg_program->set_isarray(false); - arg_program->set_type(GLMessage::DataType::INT); - arg_program->add_intvalue(program); - - // copy argument location - GLMessage_DataType *arg_location = glmsg.add_args(); - arg_location->set_isarray(false); - arg_location->set_type(GLMessage::DataType::INT); - arg_location->add_intvalue(location); + // copy argument x + GLMessage_DataType *arg_x = glmsg.add_args(); + arg_x->set_isarray(false); + arg_x->set_type(GLMessage::DataType::INT); + arg_x->add_intvalue(x); - // copy argument count - GLMessage_DataType *arg_count = glmsg.add_args(); - arg_count->set_isarray(false); - arg_count->set_type(GLMessage::DataType::INT); - arg_count->add_intvalue(count); + // copy argument y + GLMessage_DataType *arg_y = glmsg.add_args(); + arg_y->set_isarray(false); + arg_y->set_type(GLMessage::DataType::INT); + arg_y->add_intvalue(y); - // copy argument value - GLMessage_DataType *arg_value = glmsg.add_args(); - arg_value->set_isarray(false); - arg_value->set_type(GLMessage::DataType::INT64); - arg_value->add_int64value((uintptr_t)value); + // copy argument z + GLMessage_DataType *arg_z = glmsg.add_args(); + arg_z->set_isarray(false); + arg_z->set_type(GLMessage::DataType::INT); + arg_z->add_intvalue(z); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniform2fvEXT(program, location, count, value); + glContext->hooks->gl.glProgramUniform3iEXT(program, location, x, y, z); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) value, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -15136,11 +13298,11 @@ void GLTrace_glProgramUniform2fvEXT(GLuint program, GLint location, GLsizei coun glContext->traceGLMessage(&glmsg); } -void GLTrace_glProgramUniform2iEXT(GLuint program, GLint location, GLint v0, GLint v1) { +void GLTrace_glProgramUniform4iEXT(GLuint program, GLint location, GLint x, GLint y, GLint z, GLint w) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glProgramUniform2iEXT); + glmsg.set_function(GLMessage::glProgramUniform4iEXT); // copy argument program GLMessage_DataType *arg_program = glmsg.add_args(); @@ -15154,73 +13316,38 @@ void GLTrace_glProgramUniform2iEXT(GLuint program, GLint location, GLint v0, GLi arg_location->set_type(GLMessage::DataType::INT); arg_location->add_intvalue(location); - // copy argument v0 - GLMessage_DataType *arg_v0 = glmsg.add_args(); - arg_v0->set_isarray(false); - arg_v0->set_type(GLMessage::DataType::INT); - arg_v0->add_intvalue(v0); - - // copy argument v1 - GLMessage_DataType *arg_v1 = glmsg.add_args(); - arg_v1->set_isarray(false); - arg_v1->set_type(GLMessage::DataType::INT); - arg_v1->add_intvalue(v1); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniform2iEXT(program, location, v0, v1); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glProgramUniform2ivEXT(GLuint program, GLint location, GLsizei count, const GLint * value) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glProgramUniform2ivEXT); - - // copy argument program - GLMessage_DataType *arg_program = glmsg.add_args(); - arg_program->set_isarray(false); - arg_program->set_type(GLMessage::DataType::INT); - arg_program->add_intvalue(program); + // copy argument x + GLMessage_DataType *arg_x = glmsg.add_args(); + arg_x->set_isarray(false); + arg_x->set_type(GLMessage::DataType::INT); + arg_x->add_intvalue(x); - // copy argument location - GLMessage_DataType *arg_location = glmsg.add_args(); - arg_location->set_isarray(false); - arg_location->set_type(GLMessage::DataType::INT); - arg_location->add_intvalue(location); + // copy argument y + GLMessage_DataType *arg_y = glmsg.add_args(); + arg_y->set_isarray(false); + arg_y->set_type(GLMessage::DataType::INT); + arg_y->add_intvalue(y); - // copy argument count - GLMessage_DataType *arg_count = glmsg.add_args(); - arg_count->set_isarray(false); - arg_count->set_type(GLMessage::DataType::INT); - arg_count->add_intvalue(count); + // copy argument z + GLMessage_DataType *arg_z = glmsg.add_args(); + arg_z->set_isarray(false); + arg_z->set_type(GLMessage::DataType::INT); + arg_z->add_intvalue(z); - // copy argument value - GLMessage_DataType *arg_value = glmsg.add_args(); - arg_value->set_isarray(false); - arg_value->set_type(GLMessage::DataType::INT64); - arg_value->add_int64value((uintptr_t)value); + // copy argument w + GLMessage_DataType *arg_w = glmsg.add_args(); + arg_w->set_isarray(false); + arg_w->set_type(GLMessage::DataType::INT); + arg_w->add_intvalue(w); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniform2ivEXT(program, location, count, value); + glContext->hooks->gl.glProgramUniform4iEXT(program, location, x, y, z, w); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) value, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -15229,11 +13356,11 @@ void GLTrace_glProgramUniform2ivEXT(GLuint program, GLint location, GLsizei coun glContext->traceGLMessage(&glmsg); } -void GLTrace_glProgramUniform3fEXT(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2) { +void GLTrace_glProgramUniform1fEXT(GLuint program, GLint location, GLfloat x) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glProgramUniform3fEXT); + glmsg.set_function(GLMessage::glProgramUniform1fEXT); // copy argument program GLMessage_DataType *arg_program = glmsg.add_args(); @@ -15247,28 +13374,16 @@ void GLTrace_glProgramUniform3fEXT(GLuint program, GLint location, GLfloat v0, G arg_location->set_type(GLMessage::DataType::INT); arg_location->add_intvalue(location); - // copy argument v0 - GLMessage_DataType *arg_v0 = glmsg.add_args(); - arg_v0->set_isarray(false); - arg_v0->set_type(GLMessage::DataType::FLOAT); - arg_v0->add_floatvalue(v0); - - // copy argument v1 - GLMessage_DataType *arg_v1 = glmsg.add_args(); - arg_v1->set_isarray(false); - arg_v1->set_type(GLMessage::DataType::FLOAT); - arg_v1->add_floatvalue(v1); - - // copy argument v2 - GLMessage_DataType *arg_v2 = glmsg.add_args(); - arg_v2->set_isarray(false); - arg_v2->set_type(GLMessage::DataType::FLOAT); - arg_v2->add_floatvalue(v2); + // copy argument x + GLMessage_DataType *arg_x = glmsg.add_args(); + arg_x->set_isarray(false); + arg_x->set_type(GLMessage::DataType::FLOAT); + arg_x->add_floatvalue(x); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniform3fEXT(program, location, v0, v1, v2); + glContext->hooks->gl.glProgramUniform1fEXT(program, location, x); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -15281,11 +13396,11 @@ void GLTrace_glProgramUniform3fEXT(GLuint program, GLint location, GLfloat v0, G glContext->traceGLMessage(&glmsg); } -void GLTrace_glProgramUniform3fvEXT(GLuint program, GLint location, GLsizei count, const GLfloat * value) { +void GLTrace_glProgramUniform2fEXT(GLuint program, GLint location, GLfloat x, GLfloat y) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glProgramUniform3fvEXT); + glmsg.set_function(GLMessage::glProgramUniform2fEXT); // copy argument program GLMessage_DataType *arg_program = glmsg.add_args(); @@ -15299,27 +13414,26 @@ void GLTrace_glProgramUniform3fvEXT(GLuint program, GLint location, GLsizei coun arg_location->set_type(GLMessage::DataType::INT); arg_location->add_intvalue(location); - // copy argument count - GLMessage_DataType *arg_count = glmsg.add_args(); - arg_count->set_isarray(false); - arg_count->set_type(GLMessage::DataType::INT); - arg_count->add_intvalue(count); + // copy argument x + GLMessage_DataType *arg_x = glmsg.add_args(); + arg_x->set_isarray(false); + arg_x->set_type(GLMessage::DataType::FLOAT); + arg_x->add_floatvalue(x); - // copy argument value - GLMessage_DataType *arg_value = glmsg.add_args(); - arg_value->set_isarray(false); - arg_value->set_type(GLMessage::DataType::INT64); - arg_value->add_int64value((uintptr_t)value); + // copy argument y + GLMessage_DataType *arg_y = glmsg.add_args(); + arg_y->set_isarray(false); + arg_y->set_type(GLMessage::DataType::FLOAT); + arg_y->add_floatvalue(y); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniform3fvEXT(program, location, count, value); + glContext->hooks->gl.glProgramUniform2fEXT(program, location, x, y); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) value, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -15328,11 +13442,11 @@ void GLTrace_glProgramUniform3fvEXT(GLuint program, GLint location, GLsizei coun glContext->traceGLMessage(&glmsg); } -void GLTrace_glProgramUniform3iEXT(GLuint program, GLint location, GLint v0, GLint v1, GLint v2) { +void GLTrace_glProgramUniform3fEXT(GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glProgramUniform3iEXT); + glmsg.set_function(GLMessage::glProgramUniform3fEXT); // copy argument program GLMessage_DataType *arg_program = glmsg.add_args(); @@ -15346,79 +13460,32 @@ void GLTrace_glProgramUniform3iEXT(GLuint program, GLint location, GLint v0, GLi arg_location->set_type(GLMessage::DataType::INT); arg_location->add_intvalue(location); - // copy argument v0 - GLMessage_DataType *arg_v0 = glmsg.add_args(); - arg_v0->set_isarray(false); - arg_v0->set_type(GLMessage::DataType::INT); - arg_v0->add_intvalue(v0); - - // copy argument v1 - GLMessage_DataType *arg_v1 = glmsg.add_args(); - arg_v1->set_isarray(false); - arg_v1->set_type(GLMessage::DataType::INT); - arg_v1->add_intvalue(v1); - - // copy argument v2 - GLMessage_DataType *arg_v2 = glmsg.add_args(); - arg_v2->set_isarray(false); - arg_v2->set_type(GLMessage::DataType::INT); - arg_v2->add_intvalue(v2); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniform3iEXT(program, location, v0, v1, v2); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glProgramUniform3ivEXT(GLuint program, GLint location, GLsizei count, const GLint * value) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glProgramUniform3ivEXT); - - // copy argument program - GLMessage_DataType *arg_program = glmsg.add_args(); - arg_program->set_isarray(false); - arg_program->set_type(GLMessage::DataType::INT); - arg_program->add_intvalue(program); - - // copy argument location - GLMessage_DataType *arg_location = glmsg.add_args(); - arg_location->set_isarray(false); - arg_location->set_type(GLMessage::DataType::INT); - arg_location->add_intvalue(location); + // copy argument x + GLMessage_DataType *arg_x = glmsg.add_args(); + arg_x->set_isarray(false); + arg_x->set_type(GLMessage::DataType::FLOAT); + arg_x->add_floatvalue(x); - // copy argument count - GLMessage_DataType *arg_count = glmsg.add_args(); - arg_count->set_isarray(false); - arg_count->set_type(GLMessage::DataType::INT); - arg_count->add_intvalue(count); + // copy argument y + GLMessage_DataType *arg_y = glmsg.add_args(); + arg_y->set_isarray(false); + arg_y->set_type(GLMessage::DataType::FLOAT); + arg_y->add_floatvalue(y); - // copy argument value - GLMessage_DataType *arg_value = glmsg.add_args(); - arg_value->set_isarray(false); - arg_value->set_type(GLMessage::DataType::INT64); - arg_value->add_int64value((uintptr_t)value); + // copy argument z + GLMessage_DataType *arg_z = glmsg.add_args(); + arg_z->set_isarray(false); + arg_z->set_type(GLMessage::DataType::FLOAT); + arg_z->add_floatvalue(z); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniform3ivEXT(program, location, count, value); + glContext->hooks->gl.glProgramUniform3fEXT(program, location, x, y, z); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) value, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -15427,7 +13494,7 @@ void GLTrace_glProgramUniform3ivEXT(GLuint program, GLint location, GLsizei coun glContext->traceGLMessage(&glmsg); } -void GLTrace_glProgramUniform4fEXT(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3) { +void GLTrace_glProgramUniform4fEXT(GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -15445,190 +13512,38 @@ void GLTrace_glProgramUniform4fEXT(GLuint program, GLint location, GLfloat v0, G arg_location->set_type(GLMessage::DataType::INT); arg_location->add_intvalue(location); - // copy argument v0 - GLMessage_DataType *arg_v0 = glmsg.add_args(); - arg_v0->set_isarray(false); - arg_v0->set_type(GLMessage::DataType::FLOAT); - arg_v0->add_floatvalue(v0); - - // copy argument v1 - GLMessage_DataType *arg_v1 = glmsg.add_args(); - arg_v1->set_isarray(false); - arg_v1->set_type(GLMessage::DataType::FLOAT); - arg_v1->add_floatvalue(v1); - - // copy argument v2 - GLMessage_DataType *arg_v2 = glmsg.add_args(); - arg_v2->set_isarray(false); - arg_v2->set_type(GLMessage::DataType::FLOAT); - arg_v2->add_floatvalue(v2); - - // copy argument v3 - GLMessage_DataType *arg_v3 = glmsg.add_args(); - arg_v3->set_isarray(false); - arg_v3->set_type(GLMessage::DataType::FLOAT); - arg_v3->add_floatvalue(v3); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniform4fEXT(program, location, v0, v1, v2, v3); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glProgramUniform4fvEXT(GLuint program, GLint location, GLsizei count, const GLfloat * value) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glProgramUniform4fvEXT); - - // copy argument program - GLMessage_DataType *arg_program = glmsg.add_args(); - arg_program->set_isarray(false); - arg_program->set_type(GLMessage::DataType::INT); - arg_program->add_intvalue(program); - - // copy argument location - GLMessage_DataType *arg_location = glmsg.add_args(); - arg_location->set_isarray(false); - arg_location->set_type(GLMessage::DataType::INT); - arg_location->add_intvalue(location); - - // copy argument count - GLMessage_DataType *arg_count = glmsg.add_args(); - arg_count->set_isarray(false); - arg_count->set_type(GLMessage::DataType::INT); - arg_count->add_intvalue(count); - - // copy argument value - GLMessage_DataType *arg_value = glmsg.add_args(); - arg_value->set_isarray(false); - arg_value->set_type(GLMessage::DataType::INT64); - arg_value->add_int64value((uintptr_t)value); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniform4fvEXT(program, location, count, value); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) value, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glProgramUniform4iEXT(GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glProgramUniform4iEXT); - - // copy argument program - GLMessage_DataType *arg_program = glmsg.add_args(); - arg_program->set_isarray(false); - arg_program->set_type(GLMessage::DataType::INT); - arg_program->add_intvalue(program); - - // copy argument location - GLMessage_DataType *arg_location = glmsg.add_args(); - arg_location->set_isarray(false); - arg_location->set_type(GLMessage::DataType::INT); - arg_location->add_intvalue(location); - - // copy argument v0 - GLMessage_DataType *arg_v0 = glmsg.add_args(); - arg_v0->set_isarray(false); - arg_v0->set_type(GLMessage::DataType::INT); - arg_v0->add_intvalue(v0); - - // copy argument v1 - GLMessage_DataType *arg_v1 = glmsg.add_args(); - arg_v1->set_isarray(false); - arg_v1->set_type(GLMessage::DataType::INT); - arg_v1->add_intvalue(v1); - - // copy argument v2 - GLMessage_DataType *arg_v2 = glmsg.add_args(); - arg_v2->set_isarray(false); - arg_v2->set_type(GLMessage::DataType::INT); - arg_v2->add_intvalue(v2); - - // copy argument v3 - GLMessage_DataType *arg_v3 = glmsg.add_args(); - arg_v3->set_isarray(false); - arg_v3->set_type(GLMessage::DataType::INT); - arg_v3->add_intvalue(v3); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniform4iEXT(program, location, v0, v1, v2, v3); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glProgramUniform4ivEXT(GLuint program, GLint location, GLsizei count, const GLint * value) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glProgramUniform4ivEXT); - - // copy argument program - GLMessage_DataType *arg_program = glmsg.add_args(); - arg_program->set_isarray(false); - arg_program->set_type(GLMessage::DataType::INT); - arg_program->add_intvalue(program); + // copy argument x + GLMessage_DataType *arg_x = glmsg.add_args(); + arg_x->set_isarray(false); + arg_x->set_type(GLMessage::DataType::FLOAT); + arg_x->add_floatvalue(x); - // copy argument location - GLMessage_DataType *arg_location = glmsg.add_args(); - arg_location->set_isarray(false); - arg_location->set_type(GLMessage::DataType::INT); - arg_location->add_intvalue(location); + // copy argument y + GLMessage_DataType *arg_y = glmsg.add_args(); + arg_y->set_isarray(false); + arg_y->set_type(GLMessage::DataType::FLOAT); + arg_y->add_floatvalue(y); - // copy argument count - GLMessage_DataType *arg_count = glmsg.add_args(); - arg_count->set_isarray(false); - arg_count->set_type(GLMessage::DataType::INT); - arg_count->add_intvalue(count); + // copy argument z + GLMessage_DataType *arg_z = glmsg.add_args(); + arg_z->set_isarray(false); + arg_z->set_type(GLMessage::DataType::FLOAT); + arg_z->add_floatvalue(z); - // copy argument value - GLMessage_DataType *arg_value = glmsg.add_args(); - arg_value->set_isarray(false); - arg_value->set_type(GLMessage::DataType::INT64); - arg_value->add_int64value((uintptr_t)value); + // copy argument w + GLMessage_DataType *arg_w = glmsg.add_args(); + arg_w->set_isarray(false); + arg_w->set_type(GLMessage::DataType::FLOAT); + arg_w->add_floatvalue(w); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniform4ivEXT(program, location, count, value); + glContext->hooks->gl.glProgramUniform4fEXT(program, location, x, y, z, w); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) value, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -15637,11 +13552,11 @@ void GLTrace_glProgramUniform4ivEXT(GLuint program, GLint location, GLsizei coun glContext->traceGLMessage(&glmsg); } -void GLTrace_glProgramUniformMatrix2fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { +void GLTrace_glProgramUniform1ivEXT(GLuint program, GLint location, GLsizei count, const GLint *value) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glProgramUniformMatrix2fvEXT); + glmsg.set_function(GLMessage::glProgramUniform1ivEXT); // copy argument program GLMessage_DataType *arg_program = glmsg.add_args(); @@ -15661,12 +13576,6 @@ void GLTrace_glProgramUniformMatrix2fvEXT(GLuint program, GLint location, GLsize arg_count->set_type(GLMessage::DataType::INT); arg_count->add_intvalue(count); - // copy argument transpose - GLMessage_DataType *arg_transpose = glmsg.add_args(); - arg_transpose->set_isarray(false); - arg_transpose->set_type(GLMessage::DataType::BOOL); - arg_transpose->add_boolvalue(transpose); - // copy argument value GLMessage_DataType *arg_value = glmsg.add_args(); arg_value->set_isarray(false); @@ -15676,7 +13585,7 @@ void GLTrace_glProgramUniformMatrix2fvEXT(GLuint program, GLint location, GLsize // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniformMatrix2fvEXT(program, location, count, transpose, value); + glContext->hooks->gl.glProgramUniform1ivEXT(program, location, count, value); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -15690,11 +13599,11 @@ void GLTrace_glProgramUniformMatrix2fvEXT(GLuint program, GLint location, GLsize glContext->traceGLMessage(&glmsg); } -void GLTrace_glProgramUniformMatrix3fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { +void GLTrace_glProgramUniform2ivEXT(GLuint program, GLint location, GLsizei count, const GLint *value) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glProgramUniformMatrix3fvEXT); + glmsg.set_function(GLMessage::glProgramUniform2ivEXT); // copy argument program GLMessage_DataType *arg_program = glmsg.add_args(); @@ -15714,12 +13623,6 @@ void GLTrace_glProgramUniformMatrix3fvEXT(GLuint program, GLint location, GLsize arg_count->set_type(GLMessage::DataType::INT); arg_count->add_intvalue(count); - // copy argument transpose - GLMessage_DataType *arg_transpose = glmsg.add_args(); - arg_transpose->set_isarray(false); - arg_transpose->set_type(GLMessage::DataType::BOOL); - arg_transpose->add_boolvalue(transpose); - // copy argument value GLMessage_DataType *arg_value = glmsg.add_args(); arg_value->set_isarray(false); @@ -15729,7 +13632,7 @@ void GLTrace_glProgramUniformMatrix3fvEXT(GLuint program, GLint location, GLsize // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniformMatrix3fvEXT(program, location, count, transpose, value); + glContext->hooks->gl.glProgramUniform2ivEXT(program, location, count, value); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -15743,11 +13646,11 @@ void GLTrace_glProgramUniformMatrix3fvEXT(GLuint program, GLint location, GLsize glContext->traceGLMessage(&glmsg); } -void GLTrace_glProgramUniformMatrix4fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { +void GLTrace_glProgramUniform3ivEXT(GLuint program, GLint location, GLsizei count, const GLint *value) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glProgramUniformMatrix4fvEXT); + glmsg.set_function(GLMessage::glProgramUniform3ivEXT); // copy argument program GLMessage_DataType *arg_program = glmsg.add_args(); @@ -15767,12 +13670,6 @@ void GLTrace_glProgramUniformMatrix4fvEXT(GLuint program, GLint location, GLsize arg_count->set_type(GLMessage::DataType::INT); arg_count->add_intvalue(count); - // copy argument transpose - GLMessage_DataType *arg_transpose = glmsg.add_args(); - arg_transpose->set_isarray(false); - arg_transpose->set_type(GLMessage::DataType::BOOL); - arg_transpose->add_boolvalue(transpose); - // copy argument value GLMessage_DataType *arg_value = glmsg.add_args(); arg_value->set_isarray(false); @@ -15782,7 +13679,7 @@ void GLTrace_glProgramUniformMatrix4fvEXT(GLuint program, GLint location, GLsize // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniformMatrix4fvEXT(program, location, count, transpose, value); + glContext->hooks->gl.glProgramUniform3ivEXT(program, location, count, value); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -15796,275 +13693,11 @@ void GLTrace_glProgramUniformMatrix4fvEXT(GLuint program, GLint location, GLsize glContext->traceGLMessage(&glmsg); } -void GLTrace_glUseProgramStagesEXT(GLuint pipeline, GLbitfield stages, GLuint program) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glUseProgramStagesEXT); - - // copy argument pipeline - GLMessage_DataType *arg_pipeline = glmsg.add_args(); - arg_pipeline->set_isarray(false); - arg_pipeline->set_type(GLMessage::DataType::INT); - arg_pipeline->add_intvalue(pipeline); - - // copy argument stages - GLMessage_DataType *arg_stages = glmsg.add_args(); - arg_stages->set_isarray(false); - arg_stages->set_type(GLMessage::DataType::INT); - arg_stages->add_intvalue(stages); - - // copy argument program - GLMessage_DataType *arg_program = glmsg.add_args(); - arg_program->set_isarray(false); - arg_program->set_type(GLMessage::DataType::INT); - arg_program->add_intvalue(program); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glUseProgramStagesEXT(pipeline, stages, program); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glValidateProgramPipelineEXT(GLuint pipeline) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glValidateProgramPipelineEXT); - - // copy argument pipeline - GLMessage_DataType *arg_pipeline = glmsg.add_args(); - arg_pipeline->set_isarray(false); - arg_pipeline->set_type(GLMessage::DataType::INT); - arg_pipeline->add_intvalue(pipeline); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glValidateProgramPipelineEXT(pipeline); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glProgramUniform1uiEXT(GLuint program, GLint location, GLuint v0) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glProgramUniform1uiEXT); - - // copy argument program - GLMessage_DataType *arg_program = glmsg.add_args(); - arg_program->set_isarray(false); - arg_program->set_type(GLMessage::DataType::INT); - arg_program->add_intvalue(program); - - // copy argument location - GLMessage_DataType *arg_location = glmsg.add_args(); - arg_location->set_isarray(false); - arg_location->set_type(GLMessage::DataType::INT); - arg_location->add_intvalue(location); - - // copy argument v0 - GLMessage_DataType *arg_v0 = glmsg.add_args(); - arg_v0->set_isarray(false); - arg_v0->set_type(GLMessage::DataType::INT); - arg_v0->add_intvalue(v0); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniform1uiEXT(program, location, v0); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glProgramUniform2uiEXT(GLuint program, GLint location, GLuint v0, GLuint v1) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glProgramUniform2uiEXT); - - // copy argument program - GLMessage_DataType *arg_program = glmsg.add_args(); - arg_program->set_isarray(false); - arg_program->set_type(GLMessage::DataType::INT); - arg_program->add_intvalue(program); - - // copy argument location - GLMessage_DataType *arg_location = glmsg.add_args(); - arg_location->set_isarray(false); - arg_location->set_type(GLMessage::DataType::INT); - arg_location->add_intvalue(location); - - // copy argument v0 - GLMessage_DataType *arg_v0 = glmsg.add_args(); - arg_v0->set_isarray(false); - arg_v0->set_type(GLMessage::DataType::INT); - arg_v0->add_intvalue(v0); - - // copy argument v1 - GLMessage_DataType *arg_v1 = glmsg.add_args(); - arg_v1->set_isarray(false); - arg_v1->set_type(GLMessage::DataType::INT); - arg_v1->add_intvalue(v1); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniform2uiEXT(program, location, v0, v1); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glProgramUniform3uiEXT(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glProgramUniform3uiEXT); - - // copy argument program - GLMessage_DataType *arg_program = glmsg.add_args(); - arg_program->set_isarray(false); - arg_program->set_type(GLMessage::DataType::INT); - arg_program->add_intvalue(program); - - // copy argument location - GLMessage_DataType *arg_location = glmsg.add_args(); - arg_location->set_isarray(false); - arg_location->set_type(GLMessage::DataType::INT); - arg_location->add_intvalue(location); - - // copy argument v0 - GLMessage_DataType *arg_v0 = glmsg.add_args(); - arg_v0->set_isarray(false); - arg_v0->set_type(GLMessage::DataType::INT); - arg_v0->add_intvalue(v0); - - // copy argument v1 - GLMessage_DataType *arg_v1 = glmsg.add_args(); - arg_v1->set_isarray(false); - arg_v1->set_type(GLMessage::DataType::INT); - arg_v1->add_intvalue(v1); - - // copy argument v2 - GLMessage_DataType *arg_v2 = glmsg.add_args(); - arg_v2->set_isarray(false); - arg_v2->set_type(GLMessage::DataType::INT); - arg_v2->add_intvalue(v2); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniform3uiEXT(program, location, v0, v1, v2); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glProgramUniform4uiEXT(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glProgramUniform4uiEXT); - - // copy argument program - GLMessage_DataType *arg_program = glmsg.add_args(); - arg_program->set_isarray(false); - arg_program->set_type(GLMessage::DataType::INT); - arg_program->add_intvalue(program); - - // copy argument location - GLMessage_DataType *arg_location = glmsg.add_args(); - arg_location->set_isarray(false); - arg_location->set_type(GLMessage::DataType::INT); - arg_location->add_intvalue(location); - - // copy argument v0 - GLMessage_DataType *arg_v0 = glmsg.add_args(); - arg_v0->set_isarray(false); - arg_v0->set_type(GLMessage::DataType::INT); - arg_v0->add_intvalue(v0); - - // copy argument v1 - GLMessage_DataType *arg_v1 = glmsg.add_args(); - arg_v1->set_isarray(false); - arg_v1->set_type(GLMessage::DataType::INT); - arg_v1->add_intvalue(v1); - - // copy argument v2 - GLMessage_DataType *arg_v2 = glmsg.add_args(); - arg_v2->set_isarray(false); - arg_v2->set_type(GLMessage::DataType::INT); - arg_v2->add_intvalue(v2); - - // copy argument v3 - GLMessage_DataType *arg_v3 = glmsg.add_args(); - arg_v3->set_isarray(false); - arg_v3->set_type(GLMessage::DataType::INT); - arg_v3->add_intvalue(v3); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniform4uiEXT(program, location, v0, v1, v2, v3); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glProgramUniform1uivEXT(GLuint program, GLint location, GLsizei count, const GLuint * value) { +void GLTrace_glProgramUniform4ivEXT(GLuint program, GLint location, GLsizei count, const GLint *value) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glProgramUniform1uivEXT); + glmsg.set_function(GLMessage::glProgramUniform4ivEXT); // copy argument program GLMessage_DataType *arg_program = glmsg.add_args(); @@ -16093,7 +13726,7 @@ void GLTrace_glProgramUniform1uivEXT(GLuint program, GLint location, GLsizei cou // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniform1uivEXT(program, location, count, value); + glContext->hooks->gl.glProgramUniform4ivEXT(program, location, count, value); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -16107,11 +13740,11 @@ void GLTrace_glProgramUniform1uivEXT(GLuint program, GLint location, GLsizei cou glContext->traceGLMessage(&glmsg); } -void GLTrace_glProgramUniform2uivEXT(GLuint program, GLint location, GLsizei count, const GLuint * value) { +void GLTrace_glProgramUniform1fvEXT(GLuint program, GLint location, GLsizei count, const GLfloat *value) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glProgramUniform2uivEXT); + glmsg.set_function(GLMessage::glProgramUniform1fvEXT); // copy argument program GLMessage_DataType *arg_program = glmsg.add_args(); @@ -16140,7 +13773,7 @@ void GLTrace_glProgramUniform2uivEXT(GLuint program, GLint location, GLsizei cou // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniform2uivEXT(program, location, count, value); + glContext->hooks->gl.glProgramUniform1fvEXT(program, location, count, value); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -16154,11 +13787,11 @@ void GLTrace_glProgramUniform2uivEXT(GLuint program, GLint location, GLsizei cou glContext->traceGLMessage(&glmsg); } -void GLTrace_glProgramUniform3uivEXT(GLuint program, GLint location, GLsizei count, const GLuint * value) { +void GLTrace_glProgramUniform2fvEXT(GLuint program, GLint location, GLsizei count, const GLfloat *value) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glProgramUniform3uivEXT); + glmsg.set_function(GLMessage::glProgramUniform2fvEXT); // copy argument program GLMessage_DataType *arg_program = glmsg.add_args(); @@ -16187,7 +13820,7 @@ void GLTrace_glProgramUniform3uivEXT(GLuint program, GLint location, GLsizei cou // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniform3uivEXT(program, location, count, value); + glContext->hooks->gl.glProgramUniform2fvEXT(program, location, count, value); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -16201,11 +13834,11 @@ void GLTrace_glProgramUniform3uivEXT(GLuint program, GLint location, GLsizei cou glContext->traceGLMessage(&glmsg); } -void GLTrace_glProgramUniform4uivEXT(GLuint program, GLint location, GLsizei count, const GLuint * value) { +void GLTrace_glProgramUniform3fvEXT(GLuint program, GLint location, GLsizei count, const GLfloat *value) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glProgramUniform4uivEXT); + glmsg.set_function(GLMessage::glProgramUniform3fvEXT); // copy argument program GLMessage_DataType *arg_program = glmsg.add_args(); @@ -16234,7 +13867,7 @@ void GLTrace_glProgramUniform4uivEXT(GLuint program, GLint location, GLsizei cou // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniform4uivEXT(program, location, count, value); + glContext->hooks->gl.glProgramUniform3fvEXT(program, location, count, value); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -16248,11 +13881,11 @@ void GLTrace_glProgramUniform4uivEXT(GLuint program, GLint location, GLsizei cou glContext->traceGLMessage(&glmsg); } -void GLTrace_glProgramUniformMatrix2x3fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { +void GLTrace_glProgramUniform4fvEXT(GLuint program, GLint location, GLsizei count, const GLfloat *value) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glProgramUniformMatrix2x3fvEXT); + glmsg.set_function(GLMessage::glProgramUniform4fvEXT); // copy argument program GLMessage_DataType *arg_program = glmsg.add_args(); @@ -16272,12 +13905,6 @@ void GLTrace_glProgramUniformMatrix2x3fvEXT(GLuint program, GLint location, GLsi arg_count->set_type(GLMessage::DataType::INT); arg_count->add_intvalue(count); - // copy argument transpose - GLMessage_DataType *arg_transpose = glmsg.add_args(); - arg_transpose->set_isarray(false); - arg_transpose->set_type(GLMessage::DataType::BOOL); - arg_transpose->add_boolvalue(transpose); - // copy argument value GLMessage_DataType *arg_value = glmsg.add_args(); arg_value->set_isarray(false); @@ -16287,7 +13914,7 @@ void GLTrace_glProgramUniformMatrix2x3fvEXT(GLuint program, GLint location, GLsi // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniformMatrix2x3fvEXT(program, location, count, transpose, value); + glContext->hooks->gl.glProgramUniform4fvEXT(program, location, count, value); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -16301,11 +13928,11 @@ void GLTrace_glProgramUniformMatrix2x3fvEXT(GLuint program, GLint location, GLsi glContext->traceGLMessage(&glmsg); } -void GLTrace_glProgramUniformMatrix3x2fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { +void GLTrace_glProgramUniformMatrix2fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glProgramUniformMatrix3x2fvEXT); + glmsg.set_function(GLMessage::glProgramUniformMatrix2fvEXT); // copy argument program GLMessage_DataType *arg_program = glmsg.add_args(); @@ -16340,7 +13967,7 @@ void GLTrace_glProgramUniformMatrix3x2fvEXT(GLuint program, GLint location, GLsi // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniformMatrix3x2fvEXT(program, location, count, transpose, value); + glContext->hooks->gl.glProgramUniformMatrix2fvEXT(program, location, count, transpose, value); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -16354,11 +13981,11 @@ void GLTrace_glProgramUniformMatrix3x2fvEXT(GLuint program, GLint location, GLsi glContext->traceGLMessage(&glmsg); } -void GLTrace_glProgramUniformMatrix2x4fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { +void GLTrace_glProgramUniformMatrix3fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glProgramUniformMatrix2x4fvEXT); + glmsg.set_function(GLMessage::glProgramUniformMatrix3fvEXT); // copy argument program GLMessage_DataType *arg_program = glmsg.add_args(); @@ -16393,7 +14020,7 @@ void GLTrace_glProgramUniformMatrix2x4fvEXT(GLuint program, GLint location, GLsi // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniformMatrix2x4fvEXT(program, location, count, transpose, value); + glContext->hooks->gl.glProgramUniformMatrix3fvEXT(program, location, count, transpose, value); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -16407,11 +14034,11 @@ void GLTrace_glProgramUniformMatrix2x4fvEXT(GLuint program, GLint location, GLsi glContext->traceGLMessage(&glmsg); } -void GLTrace_glProgramUniformMatrix4x2fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { +void GLTrace_glProgramUniformMatrix4fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glProgramUniformMatrix4x2fvEXT); + glmsg.set_function(GLMessage::glProgramUniformMatrix4fvEXT); // copy argument program GLMessage_DataType *arg_program = glmsg.add_args(); @@ -16446,7 +14073,7 @@ void GLTrace_glProgramUniformMatrix4x2fvEXT(GLuint program, GLint location, GLsi // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniformMatrix4x2fvEXT(program, location, count, transpose, value); + glContext->hooks->gl.glProgramUniformMatrix4fvEXT(program, location, count, transpose, value); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -16460,51 +14087,26 @@ void GLTrace_glProgramUniformMatrix4x2fvEXT(GLuint program, GLint location, GLsi glContext->traceGLMessage(&glmsg); } -void GLTrace_glProgramUniformMatrix3x4fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { +void GLTrace_glValidateProgramPipelineEXT(GLuint pipeline) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glProgramUniformMatrix3x4fvEXT); - - // copy argument program - GLMessage_DataType *arg_program = glmsg.add_args(); - arg_program->set_isarray(false); - arg_program->set_type(GLMessage::DataType::INT); - arg_program->add_intvalue(program); - - // copy argument location - GLMessage_DataType *arg_location = glmsg.add_args(); - arg_location->set_isarray(false); - arg_location->set_type(GLMessage::DataType::INT); - arg_location->add_intvalue(location); - - // copy argument count - GLMessage_DataType *arg_count = glmsg.add_args(); - arg_count->set_isarray(false); - arg_count->set_type(GLMessage::DataType::INT); - arg_count->add_intvalue(count); - - // copy argument transpose - GLMessage_DataType *arg_transpose = glmsg.add_args(); - arg_transpose->set_isarray(false); - arg_transpose->set_type(GLMessage::DataType::BOOL); - arg_transpose->add_boolvalue(transpose); + glmsg.set_function(GLMessage::glValidateProgramPipelineEXT); - // copy argument value - GLMessage_DataType *arg_value = glmsg.add_args(); - arg_value->set_isarray(false); - arg_value->set_type(GLMessage::DataType::INT64); - arg_value->add_int64value((uintptr_t)value); + // copy argument pipeline + GLMessage_DataType *arg_pipeline = glmsg.add_args(); + arg_pipeline->set_isarray(false); + arg_pipeline->set_type(GLMessage::DataType::INT); + arg_pipeline->add_intvalue(pipeline); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniformMatrix3x4fvEXT(program, location, count, transpose, value); + glContext->hooks->gl.glValidateProgramPipelineEXT(pipeline); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) value, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -16513,51 +14115,46 @@ void GLTrace_glProgramUniformMatrix3x4fvEXT(GLuint program, GLint location, GLsi glContext->traceGLMessage(&glmsg); } -void GLTrace_glProgramUniformMatrix4x3fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { +void GLTrace_glGetProgramPipelineInfoLogEXT(GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glProgramUniformMatrix4x3fvEXT); - - // copy argument program - GLMessage_DataType *arg_program = glmsg.add_args(); - arg_program->set_isarray(false); - arg_program->set_type(GLMessage::DataType::INT); - arg_program->add_intvalue(program); + glmsg.set_function(GLMessage::glGetProgramPipelineInfoLogEXT); - // copy argument location - GLMessage_DataType *arg_location = glmsg.add_args(); - arg_location->set_isarray(false); - arg_location->set_type(GLMessage::DataType::INT); - arg_location->add_intvalue(location); + // copy argument pipeline + GLMessage_DataType *arg_pipeline = glmsg.add_args(); + arg_pipeline->set_isarray(false); + arg_pipeline->set_type(GLMessage::DataType::INT); + arg_pipeline->add_intvalue(pipeline); - // copy argument count - GLMessage_DataType *arg_count = glmsg.add_args(); - arg_count->set_isarray(false); - arg_count->set_type(GLMessage::DataType::INT); - arg_count->add_intvalue(count); + // copy argument bufSize + GLMessage_DataType *arg_bufSize = glmsg.add_args(); + arg_bufSize->set_isarray(false); + arg_bufSize->set_type(GLMessage::DataType::INT); + arg_bufSize->add_intvalue(bufSize); - // copy argument transpose - GLMessage_DataType *arg_transpose = glmsg.add_args(); - arg_transpose->set_isarray(false); - arg_transpose->set_type(GLMessage::DataType::BOOL); - arg_transpose->add_boolvalue(transpose); + // copy argument length + GLMessage_DataType *arg_length = glmsg.add_args(); + arg_length->set_isarray(false); + arg_length->set_type(GLMessage::DataType::INT64); + arg_length->add_int64value((uintptr_t)length); - // copy argument value - GLMessage_DataType *arg_value = glmsg.add_args(); - arg_value->set_isarray(false); - arg_value->set_type(GLMessage::DataType::INT64); - arg_value->add_int64value((uintptr_t)value); + // copy argument infoLog + GLMessage_DataType *arg_infoLog = glmsg.add_args(); + arg_infoLog->set_isarray(false); + arg_infoLog->set_type(GLMessage::DataType::INT64); + arg_infoLog->add_int64value((uintptr_t)infoLog); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glProgramUniformMatrix4x3fvEXT(program, location, count, transpose, value); + glContext->hooks->gl.glGetProgramPipelineInfoLogEXT(pipeline, bufSize, length, infoLog); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) value, + (void *) length, + (void *) infoLog, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -17006,551 +14603,6 @@ void GLTrace_glFramebufferTexture2DMultisampleIMG(GLenum target, GLenum attachme glContext->traceGLMessage(&glmsg); } -void GLTrace_glBeginPerfQueryINTEL(GLuint queryHandle) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glBeginPerfQueryINTEL); - - // copy argument queryHandle - GLMessage_DataType *arg_queryHandle = glmsg.add_args(); - arg_queryHandle->set_isarray(false); - arg_queryHandle->set_type(GLMessage::DataType::INT); - arg_queryHandle->add_intvalue(queryHandle); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glBeginPerfQueryINTEL(queryHandle); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glCreatePerfQueryINTEL(GLuint queryId, GLuint * queryHandle) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glCreatePerfQueryINTEL); - - // copy argument queryId - GLMessage_DataType *arg_queryId = glmsg.add_args(); - arg_queryId->set_isarray(false); - arg_queryId->set_type(GLMessage::DataType::INT); - arg_queryId->add_intvalue(queryId); - - // copy argument queryHandle - GLMessage_DataType *arg_queryHandle = glmsg.add_args(); - arg_queryHandle->set_isarray(false); - arg_queryHandle->set_type(GLMessage::DataType::INT64); - arg_queryHandle->add_int64value((uintptr_t)queryHandle); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glCreatePerfQueryINTEL(queryId, queryHandle); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) queryHandle, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glDeletePerfQueryINTEL(GLuint queryHandle) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glDeletePerfQueryINTEL); - - // copy argument queryHandle - GLMessage_DataType *arg_queryHandle = glmsg.add_args(); - arg_queryHandle->set_isarray(false); - arg_queryHandle->set_type(GLMessage::DataType::INT); - arg_queryHandle->add_intvalue(queryHandle); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glDeletePerfQueryINTEL(queryHandle); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glEndPerfQueryINTEL(GLuint queryHandle) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glEndPerfQueryINTEL); - - // copy argument queryHandle - GLMessage_DataType *arg_queryHandle = glmsg.add_args(); - arg_queryHandle->set_isarray(false); - arg_queryHandle->set_type(GLMessage::DataType::INT); - arg_queryHandle->add_intvalue(queryHandle); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glEndPerfQueryINTEL(queryHandle); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glGetFirstPerfQueryIdINTEL(GLuint * queryId) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glGetFirstPerfQueryIdINTEL); - - // copy argument queryId - GLMessage_DataType *arg_queryId = glmsg.add_args(); - arg_queryId->set_isarray(false); - arg_queryId->set_type(GLMessage::DataType::INT64); - arg_queryId->add_int64value((uintptr_t)queryId); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetFirstPerfQueryIdINTEL(queryId); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) queryId, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glGetNextPerfQueryIdINTEL(GLuint queryId, GLuint * nextQueryId) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glGetNextPerfQueryIdINTEL); - - // copy argument queryId - GLMessage_DataType *arg_queryId = glmsg.add_args(); - arg_queryId->set_isarray(false); - arg_queryId->set_type(GLMessage::DataType::INT); - arg_queryId->add_intvalue(queryId); - - // copy argument nextQueryId - GLMessage_DataType *arg_nextQueryId = glmsg.add_args(); - arg_nextQueryId->set_isarray(false); - arg_nextQueryId->set_type(GLMessage::DataType::INT64); - arg_nextQueryId->add_int64value((uintptr_t)nextQueryId); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetNextPerfQueryIdINTEL(queryId, nextQueryId); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) nextQueryId, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glGetPerfCounterInfoINTEL(GLuint queryId, GLuint counterId, GLuint counterNameLength, GLchar * counterName, GLuint counterDescLength, GLchar * counterDesc, GLuint * counterOffset, GLuint * counterDataSize, GLuint * counterTypeEnum, GLuint * counterDataTypeEnum, GLuint64 * rawCounterMaxValue) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glGetPerfCounterInfoINTEL); - - // copy argument queryId - GLMessage_DataType *arg_queryId = glmsg.add_args(); - arg_queryId->set_isarray(false); - arg_queryId->set_type(GLMessage::DataType::INT); - arg_queryId->add_intvalue(queryId); - - // copy argument counterId - GLMessage_DataType *arg_counterId = glmsg.add_args(); - arg_counterId->set_isarray(false); - arg_counterId->set_type(GLMessage::DataType::INT); - arg_counterId->add_intvalue(counterId); - - // copy argument counterNameLength - GLMessage_DataType *arg_counterNameLength = glmsg.add_args(); - arg_counterNameLength->set_isarray(false); - arg_counterNameLength->set_type(GLMessage::DataType::INT); - arg_counterNameLength->add_intvalue(counterNameLength); - - // copy argument counterName - GLMessage_DataType *arg_counterName = glmsg.add_args(); - arg_counterName->set_isarray(false); - arg_counterName->set_type(GLMessage::DataType::INT64); - arg_counterName->add_int64value((uintptr_t)counterName); - - // copy argument counterDescLength - GLMessage_DataType *arg_counterDescLength = glmsg.add_args(); - arg_counterDescLength->set_isarray(false); - arg_counterDescLength->set_type(GLMessage::DataType::INT); - arg_counterDescLength->add_intvalue(counterDescLength); - - // copy argument counterDesc - GLMessage_DataType *arg_counterDesc = glmsg.add_args(); - arg_counterDesc->set_isarray(false); - arg_counterDesc->set_type(GLMessage::DataType::INT64); - arg_counterDesc->add_int64value((uintptr_t)counterDesc); - - // copy argument counterOffset - GLMessage_DataType *arg_counterOffset = glmsg.add_args(); - arg_counterOffset->set_isarray(false); - arg_counterOffset->set_type(GLMessage::DataType::INT64); - arg_counterOffset->add_int64value((uintptr_t)counterOffset); - - // copy argument counterDataSize - GLMessage_DataType *arg_counterDataSize = glmsg.add_args(); - arg_counterDataSize->set_isarray(false); - arg_counterDataSize->set_type(GLMessage::DataType::INT64); - arg_counterDataSize->add_int64value((uintptr_t)counterDataSize); - - // copy argument counterTypeEnum - GLMessage_DataType *arg_counterTypeEnum = glmsg.add_args(); - arg_counterTypeEnum->set_isarray(false); - arg_counterTypeEnum->set_type(GLMessage::DataType::INT64); - arg_counterTypeEnum->add_int64value((uintptr_t)counterTypeEnum); - - // copy argument counterDataTypeEnum - GLMessage_DataType *arg_counterDataTypeEnum = glmsg.add_args(); - arg_counterDataTypeEnum->set_isarray(false); - arg_counterDataTypeEnum->set_type(GLMessage::DataType::INT64); - arg_counterDataTypeEnum->add_int64value((uintptr_t)counterDataTypeEnum); - - // copy argument rawCounterMaxValue - GLMessage_DataType *arg_rawCounterMaxValue = glmsg.add_args(); - arg_rawCounterMaxValue->set_isarray(false); - arg_rawCounterMaxValue->set_type(GLMessage::DataType::INT64); - arg_rawCounterMaxValue->add_int64value((uintptr_t)rawCounterMaxValue); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetPerfCounterInfoINTEL(queryId, counterId, counterNameLength, counterName, counterDescLength, counterDesc, counterOffset, counterDataSize, counterTypeEnum, counterDataTypeEnum, rawCounterMaxValue); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) counterName, - (void *) counterDesc, - (void *) counterOffset, - (void *) counterDataSize, - (void *) counterTypeEnum, - (void *) counterDataTypeEnum, - (void *) rawCounterMaxValue, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glGetPerfQueryDataINTEL(GLuint queryHandle, GLuint flags, GLsizei dataSize, GLvoid * data, GLuint * bytesWritten) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glGetPerfQueryDataINTEL); - - // copy argument queryHandle - GLMessage_DataType *arg_queryHandle = glmsg.add_args(); - arg_queryHandle->set_isarray(false); - arg_queryHandle->set_type(GLMessage::DataType::INT); - arg_queryHandle->add_intvalue(queryHandle); - - // copy argument flags - GLMessage_DataType *arg_flags = glmsg.add_args(); - arg_flags->set_isarray(false); - arg_flags->set_type(GLMessage::DataType::INT); - arg_flags->add_intvalue(flags); - - // copy argument dataSize - GLMessage_DataType *arg_dataSize = glmsg.add_args(); - arg_dataSize->set_isarray(false); - arg_dataSize->set_type(GLMessage::DataType::INT); - arg_dataSize->add_intvalue(dataSize); - - // copy argument data - GLMessage_DataType *arg_data = glmsg.add_args(); - arg_data->set_isarray(false); - arg_data->set_type(GLMessage::DataType::INT64); - arg_data->add_int64value((uintptr_t)data); - - // copy argument bytesWritten - GLMessage_DataType *arg_bytesWritten = glmsg.add_args(); - arg_bytesWritten->set_isarray(false); - arg_bytesWritten->set_type(GLMessage::DataType::INT64); - arg_bytesWritten->add_int64value((uintptr_t)bytesWritten); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetPerfQueryDataINTEL(queryHandle, flags, dataSize, data, bytesWritten); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) data, - (void *) bytesWritten, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glGetPerfQueryIdByNameINTEL(GLchar * queryName, GLuint * queryId) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glGetPerfQueryIdByNameINTEL); - - // copy argument queryName - GLMessage_DataType *arg_queryName = glmsg.add_args(); - arg_queryName->set_isarray(false); - arg_queryName->set_type(GLMessage::DataType::INT64); - arg_queryName->add_int64value((uintptr_t)queryName); - - // copy argument queryId - GLMessage_DataType *arg_queryId = glmsg.add_args(); - arg_queryId->set_isarray(false); - arg_queryId->set_type(GLMessage::DataType::INT64); - arg_queryId->add_int64value((uintptr_t)queryId); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetPerfQueryIdByNameINTEL(queryName, queryId); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) queryName, - (void *) queryId, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glGetPerfQueryInfoINTEL(GLuint queryId, GLuint queryNameLength, GLchar * queryName, GLuint * dataSize, GLuint * noCounters, GLuint * noInstances, GLuint * capsMask) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glGetPerfQueryInfoINTEL); - - // copy argument queryId - GLMessage_DataType *arg_queryId = glmsg.add_args(); - arg_queryId->set_isarray(false); - arg_queryId->set_type(GLMessage::DataType::INT); - arg_queryId->add_intvalue(queryId); - - // copy argument queryNameLength - GLMessage_DataType *arg_queryNameLength = glmsg.add_args(); - arg_queryNameLength->set_isarray(false); - arg_queryNameLength->set_type(GLMessage::DataType::INT); - arg_queryNameLength->add_intvalue(queryNameLength); - - // copy argument queryName - GLMessage_DataType *arg_queryName = glmsg.add_args(); - arg_queryName->set_isarray(false); - arg_queryName->set_type(GLMessage::DataType::INT64); - arg_queryName->add_int64value((uintptr_t)queryName); - - // copy argument dataSize - GLMessage_DataType *arg_dataSize = glmsg.add_args(); - arg_dataSize->set_isarray(false); - arg_dataSize->set_type(GLMessage::DataType::INT64); - arg_dataSize->add_int64value((uintptr_t)dataSize); - - // copy argument noCounters - GLMessage_DataType *arg_noCounters = glmsg.add_args(); - arg_noCounters->set_isarray(false); - arg_noCounters->set_type(GLMessage::DataType::INT64); - arg_noCounters->add_int64value((uintptr_t)noCounters); - - // copy argument noInstances - GLMessage_DataType *arg_noInstances = glmsg.add_args(); - arg_noInstances->set_isarray(false); - arg_noInstances->set_type(GLMessage::DataType::INT64); - arg_noInstances->add_int64value((uintptr_t)noInstances); - - // copy argument capsMask - GLMessage_DataType *arg_capsMask = glmsg.add_args(); - arg_capsMask->set_isarray(false); - arg_capsMask->set_type(GLMessage::DataType::INT64); - arg_capsMask->add_int64value((uintptr_t)capsMask); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetPerfQueryInfoINTEL(queryId, queryNameLength, queryName, dataSize, noCounters, noInstances, capsMask); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) queryName, - (void *) dataSize, - (void *) noCounters, - (void *) noInstances, - (void *) capsMask, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glBlendParameteriNV(GLenum pname, GLint value) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glBlendParameteriNV); - - // copy argument pname - GLMessage_DataType *arg_pname = glmsg.add_args(); - arg_pname->set_isarray(false); - arg_pname->set_type(GLMessage::DataType::ENUM); - arg_pname->add_intvalue((int)pname); - - // copy argument value - GLMessage_DataType *arg_value = glmsg.add_args(); - arg_value->set_isarray(false); - arg_value->set_type(GLMessage::DataType::INT); - arg_value->add_intvalue(value); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glBlendParameteriNV(pname, value); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glBlendBarrierNV(void) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glBlendBarrierNV); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glBlendBarrierNV(); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glCopyBufferSubDataNV(GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glCopyBufferSubDataNV); - - // copy argument readTarget - GLMessage_DataType *arg_readTarget = glmsg.add_args(); - arg_readTarget->set_isarray(false); - arg_readTarget->set_type(GLMessage::DataType::ENUM); - arg_readTarget->add_intvalue((int)readTarget); - - // copy argument writeTarget - GLMessage_DataType *arg_writeTarget = glmsg.add_args(); - arg_writeTarget->set_isarray(false); - arg_writeTarget->set_type(GLMessage::DataType::ENUM); - arg_writeTarget->add_intvalue((int)writeTarget); - - // copy argument readOffset - GLMessage_DataType *arg_readOffset = glmsg.add_args(); - arg_readOffset->set_isarray(false); - arg_readOffset->set_type(GLMessage::DataType::INT); - arg_readOffset->add_intvalue(readOffset); - - // copy argument writeOffset - GLMessage_DataType *arg_writeOffset = glmsg.add_args(); - arg_writeOffset->set_isarray(false); - arg_writeOffset->set_type(GLMessage::DataType::INT); - arg_writeOffset->add_intvalue(writeOffset); - - // copy argument size - GLMessage_DataType *arg_size = glmsg.add_args(); - arg_size->set_isarray(false); - arg_size->set_type(GLMessage::DataType::INT); - arg_size->add_intvalue(size); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glCopyBufferSubDataNV(readTarget, writeTarget, readOffset, writeOffset, size); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - void GLTrace_glCoverageMaskNV(GLboolean mask) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -17607,7 +14659,7 @@ void GLTrace_glCoverageOperationNV(GLenum operation) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glDrawBuffersNV(GLsizei n, const GLenum * bufs) { +void GLTrace_glDrawBuffersNV(GLsizei n, const GLenum *bufs) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -17642,106 +14694,7 @@ void GLTrace_glDrawBuffersNV(GLsizei n, const GLenum * bufs) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glDrawArraysInstancedNV(GLenum mode, GLint first, GLsizei count, GLsizei primcount) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glDrawArraysInstancedNV); - - // copy argument mode - GLMessage_DataType *arg_mode = glmsg.add_args(); - arg_mode->set_isarray(false); - arg_mode->set_type(GLMessage::DataType::ENUM); - arg_mode->add_intvalue((int)mode); - - // copy argument first - GLMessage_DataType *arg_first = glmsg.add_args(); - arg_first->set_isarray(false); - arg_first->set_type(GLMessage::DataType::INT); - arg_first->add_intvalue(first); - - // copy argument count - GLMessage_DataType *arg_count = glmsg.add_args(); - arg_count->set_isarray(false); - arg_count->set_type(GLMessage::DataType::INT); - arg_count->add_intvalue(count); - - // copy argument primcount - GLMessage_DataType *arg_primcount = glmsg.add_args(); - arg_primcount->set_isarray(false); - arg_primcount->set_type(GLMessage::DataType::INT); - arg_primcount->add_intvalue(primcount); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glDrawArraysInstancedNV(mode, first, count, primcount); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glDrawElementsInstancedNV(GLenum mode, GLsizei count, GLenum type, const void * indices, GLsizei primcount) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glDrawElementsInstancedNV); - - // copy argument mode - GLMessage_DataType *arg_mode = glmsg.add_args(); - arg_mode->set_isarray(false); - arg_mode->set_type(GLMessage::DataType::ENUM); - arg_mode->add_intvalue((int)mode); - - // copy argument count - GLMessage_DataType *arg_count = glmsg.add_args(); - arg_count->set_isarray(false); - arg_count->set_type(GLMessage::DataType::INT); - arg_count->add_intvalue(count); - - // copy argument type - GLMessage_DataType *arg_type = glmsg.add_args(); - arg_type->set_isarray(false); - arg_type->set_type(GLMessage::DataType::ENUM); - arg_type->add_intvalue((int)type); - - // copy argument indices - GLMessage_DataType *arg_indices = glmsg.add_args(); - arg_indices->set_isarray(false); - arg_indices->set_type(GLMessage::DataType::INT64); - arg_indices->add_int64value((uintptr_t)indices); - - // copy argument primcount - GLMessage_DataType *arg_primcount = glmsg.add_args(); - arg_primcount->set_isarray(false); - arg_primcount->set_type(GLMessage::DataType::INT); - arg_primcount->add_intvalue(primcount); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glDrawElementsInstancedNV(mode, count, type, indices, primcount); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) indices, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glDeleteFencesNV(GLsizei n, const GLuint * fences) { +void GLTrace_glDeleteFencesNV(GLsizei n, const GLuint *fences) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -17776,7 +14729,7 @@ void GLTrace_glDeleteFencesNV(GLsizei n, const GLuint * fences) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGenFencesNV(GLsizei n, GLuint * fences) { +void GLTrace_glGenFencesNV(GLsizei n, GLuint *fences) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -17883,7 +14836,7 @@ GLboolean GLTrace_glTestFenceNV(GLuint fence) { return retValue; } -void GLTrace_glGetFenceivNV(GLuint fence, GLenum pname, GLint * params) { +void GLTrace_glGetFenceivNV(GLuint fence, GLenum pname, GLint *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -17986,456 +14939,6 @@ void GLTrace_glSetFenceNV(GLuint fence, GLenum condition) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glBlitFramebufferNV(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glBlitFramebufferNV); - - // copy argument srcX0 - GLMessage_DataType *arg_srcX0 = glmsg.add_args(); - arg_srcX0->set_isarray(false); - arg_srcX0->set_type(GLMessage::DataType::INT); - arg_srcX0->add_intvalue(srcX0); - - // copy argument srcY0 - GLMessage_DataType *arg_srcY0 = glmsg.add_args(); - arg_srcY0->set_isarray(false); - arg_srcY0->set_type(GLMessage::DataType::INT); - arg_srcY0->add_intvalue(srcY0); - - // copy argument srcX1 - GLMessage_DataType *arg_srcX1 = glmsg.add_args(); - arg_srcX1->set_isarray(false); - arg_srcX1->set_type(GLMessage::DataType::INT); - arg_srcX1->add_intvalue(srcX1); - - // copy argument srcY1 - GLMessage_DataType *arg_srcY1 = glmsg.add_args(); - arg_srcY1->set_isarray(false); - arg_srcY1->set_type(GLMessage::DataType::INT); - arg_srcY1->add_intvalue(srcY1); - - // copy argument dstX0 - GLMessage_DataType *arg_dstX0 = glmsg.add_args(); - arg_dstX0->set_isarray(false); - arg_dstX0->set_type(GLMessage::DataType::INT); - arg_dstX0->add_intvalue(dstX0); - - // copy argument dstY0 - GLMessage_DataType *arg_dstY0 = glmsg.add_args(); - arg_dstY0->set_isarray(false); - arg_dstY0->set_type(GLMessage::DataType::INT); - arg_dstY0->add_intvalue(dstY0); - - // copy argument dstX1 - GLMessage_DataType *arg_dstX1 = glmsg.add_args(); - arg_dstX1->set_isarray(false); - arg_dstX1->set_type(GLMessage::DataType::INT); - arg_dstX1->add_intvalue(dstX1); - - // copy argument dstY1 - GLMessage_DataType *arg_dstY1 = glmsg.add_args(); - arg_dstY1->set_isarray(false); - arg_dstY1->set_type(GLMessage::DataType::INT); - arg_dstY1->add_intvalue(dstY1); - - // copy argument mask - GLMessage_DataType *arg_mask = glmsg.add_args(); - arg_mask->set_isarray(false); - arg_mask->set_type(GLMessage::DataType::INT); - arg_mask->add_intvalue(mask); - - // copy argument filter - GLMessage_DataType *arg_filter = glmsg.add_args(); - arg_filter->set_isarray(false); - arg_filter->set_type(GLMessage::DataType::ENUM); - arg_filter->add_intvalue((int)filter); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glBlitFramebufferNV(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glRenderbufferStorageMultisampleNV(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glRenderbufferStorageMultisampleNV); - - // copy argument target - GLMessage_DataType *arg_target = glmsg.add_args(); - arg_target->set_isarray(false); - arg_target->set_type(GLMessage::DataType::ENUM); - arg_target->add_intvalue((int)target); - - // copy argument samples - GLMessage_DataType *arg_samples = glmsg.add_args(); - arg_samples->set_isarray(false); - arg_samples->set_type(GLMessage::DataType::INT); - arg_samples->add_intvalue(samples); - - // copy argument internalformat - GLMessage_DataType *arg_internalformat = glmsg.add_args(); - arg_internalformat->set_isarray(false); - arg_internalformat->set_type(GLMessage::DataType::ENUM); - arg_internalformat->add_intvalue((int)internalformat); - - // copy argument width - GLMessage_DataType *arg_width = glmsg.add_args(); - arg_width->set_isarray(false); - arg_width->set_type(GLMessage::DataType::INT); - arg_width->add_intvalue(width); - - // copy argument height - GLMessage_DataType *arg_height = glmsg.add_args(); - arg_height->set_isarray(false); - arg_height->set_type(GLMessage::DataType::INT); - arg_height->add_intvalue(height); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glRenderbufferStorageMultisampleNV(target, samples, internalformat, width, height); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glVertexAttribDivisorNV(GLuint index, GLuint divisor) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glVertexAttribDivisorNV); - - // copy argument index - GLMessage_DataType *arg_index = glmsg.add_args(); - arg_index->set_isarray(false); - arg_index->set_type(GLMessage::DataType::INT); - arg_index->add_intvalue(index); - - // copy argument divisor - GLMessage_DataType *arg_divisor = glmsg.add_args(); - arg_divisor->set_isarray(false); - arg_divisor->set_type(GLMessage::DataType::INT); - arg_divisor->add_intvalue(divisor); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glVertexAttribDivisorNV(index, divisor); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glUniformMatrix2x3fvNV(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glUniformMatrix2x3fvNV); - - // copy argument location - GLMessage_DataType *arg_location = glmsg.add_args(); - arg_location->set_isarray(false); - arg_location->set_type(GLMessage::DataType::INT); - arg_location->add_intvalue(location); - - // copy argument count - GLMessage_DataType *arg_count = glmsg.add_args(); - arg_count->set_isarray(false); - arg_count->set_type(GLMessage::DataType::INT); - arg_count->add_intvalue(count); - - // copy argument transpose - GLMessage_DataType *arg_transpose = glmsg.add_args(); - arg_transpose->set_isarray(false); - arg_transpose->set_type(GLMessage::DataType::BOOL); - arg_transpose->add_boolvalue(transpose); - - // copy argument value - GLMessage_DataType *arg_value = glmsg.add_args(); - arg_value->set_isarray(false); - arg_value->set_type(GLMessage::DataType::INT64); - arg_value->add_int64value((uintptr_t)value); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glUniformMatrix2x3fvNV(location, count, transpose, value); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) value, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glUniformMatrix3x2fvNV(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glUniformMatrix3x2fvNV); - - // copy argument location - GLMessage_DataType *arg_location = glmsg.add_args(); - arg_location->set_isarray(false); - arg_location->set_type(GLMessage::DataType::INT); - arg_location->add_intvalue(location); - - // copy argument count - GLMessage_DataType *arg_count = glmsg.add_args(); - arg_count->set_isarray(false); - arg_count->set_type(GLMessage::DataType::INT); - arg_count->add_intvalue(count); - - // copy argument transpose - GLMessage_DataType *arg_transpose = glmsg.add_args(); - arg_transpose->set_isarray(false); - arg_transpose->set_type(GLMessage::DataType::BOOL); - arg_transpose->add_boolvalue(transpose); - - // copy argument value - GLMessage_DataType *arg_value = glmsg.add_args(); - arg_value->set_isarray(false); - arg_value->set_type(GLMessage::DataType::INT64); - arg_value->add_int64value((uintptr_t)value); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glUniformMatrix3x2fvNV(location, count, transpose, value); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) value, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glUniformMatrix2x4fvNV(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glUniformMatrix2x4fvNV); - - // copy argument location - GLMessage_DataType *arg_location = glmsg.add_args(); - arg_location->set_isarray(false); - arg_location->set_type(GLMessage::DataType::INT); - arg_location->add_intvalue(location); - - // copy argument count - GLMessage_DataType *arg_count = glmsg.add_args(); - arg_count->set_isarray(false); - arg_count->set_type(GLMessage::DataType::INT); - arg_count->add_intvalue(count); - - // copy argument transpose - GLMessage_DataType *arg_transpose = glmsg.add_args(); - arg_transpose->set_isarray(false); - arg_transpose->set_type(GLMessage::DataType::BOOL); - arg_transpose->add_boolvalue(transpose); - - // copy argument value - GLMessage_DataType *arg_value = glmsg.add_args(); - arg_value->set_isarray(false); - arg_value->set_type(GLMessage::DataType::INT64); - arg_value->add_int64value((uintptr_t)value); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glUniformMatrix2x4fvNV(location, count, transpose, value); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) value, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glUniformMatrix4x2fvNV(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glUniformMatrix4x2fvNV); - - // copy argument location - GLMessage_DataType *arg_location = glmsg.add_args(); - arg_location->set_isarray(false); - arg_location->set_type(GLMessage::DataType::INT); - arg_location->add_intvalue(location); - - // copy argument count - GLMessage_DataType *arg_count = glmsg.add_args(); - arg_count->set_isarray(false); - arg_count->set_type(GLMessage::DataType::INT); - arg_count->add_intvalue(count); - - // copy argument transpose - GLMessage_DataType *arg_transpose = glmsg.add_args(); - arg_transpose->set_isarray(false); - arg_transpose->set_type(GLMessage::DataType::BOOL); - arg_transpose->add_boolvalue(transpose); - - // copy argument value - GLMessage_DataType *arg_value = glmsg.add_args(); - arg_value->set_isarray(false); - arg_value->set_type(GLMessage::DataType::INT64); - arg_value->add_int64value((uintptr_t)value); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glUniformMatrix4x2fvNV(location, count, transpose, value); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) value, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glUniformMatrix3x4fvNV(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glUniformMatrix3x4fvNV); - - // copy argument location - GLMessage_DataType *arg_location = glmsg.add_args(); - arg_location->set_isarray(false); - arg_location->set_type(GLMessage::DataType::INT); - arg_location->add_intvalue(location); - - // copy argument count - GLMessage_DataType *arg_count = glmsg.add_args(); - arg_count->set_isarray(false); - arg_count->set_type(GLMessage::DataType::INT); - arg_count->add_intvalue(count); - - // copy argument transpose - GLMessage_DataType *arg_transpose = glmsg.add_args(); - arg_transpose->set_isarray(false); - arg_transpose->set_type(GLMessage::DataType::BOOL); - arg_transpose->add_boolvalue(transpose); - - // copy argument value - GLMessage_DataType *arg_value = glmsg.add_args(); - arg_value->set_isarray(false); - arg_value->set_type(GLMessage::DataType::INT64); - arg_value->add_int64value((uintptr_t)value); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glUniformMatrix3x4fvNV(location, count, transpose, value); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) value, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glUniformMatrix4x3fvNV(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glUniformMatrix4x3fvNV); - - // copy argument location - GLMessage_DataType *arg_location = glmsg.add_args(); - arg_location->set_isarray(false); - arg_location->set_type(GLMessage::DataType::INT); - arg_location->add_intvalue(location); - - // copy argument count - GLMessage_DataType *arg_count = glmsg.add_args(); - arg_count->set_isarray(false); - arg_count->set_type(GLMessage::DataType::INT); - arg_count->add_intvalue(count); - - // copy argument transpose - GLMessage_DataType *arg_transpose = glmsg.add_args(); - arg_transpose->set_isarray(false); - arg_transpose->set_type(GLMessage::DataType::BOOL); - arg_transpose->add_boolvalue(transpose); - - // copy argument value - GLMessage_DataType *arg_value = glmsg.add_args(); - arg_value->set_isarray(false); - arg_value->set_type(GLMessage::DataType::INT64); - arg_value->add_int64value((uintptr_t)value); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glUniformMatrix4x3fvNV(location, count, transpose, value); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) value, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - void GLTrace_glReadBufferNV(GLenum mode) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -18498,7 +15001,7 @@ void GLTrace_glAlphaFuncQCOM(GLenum func, GLclampf ref) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetDriverControlsQCOM(GLint * num, GLsizei size, GLuint * driverControls) { +void GLTrace_glGetDriverControlsQCOM(GLint *num, GLsizei size, GLuint *driverControls) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -18540,7 +15043,7 @@ void GLTrace_glGetDriverControlsQCOM(GLint * num, GLsizei size, GLuint * driverC glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetDriverControlStringQCOM(GLuint driverControl, GLsizei bufSize, GLsizei * length, GLchar * driverControlString) { +void GLTrace_glGetDriverControlStringQCOM(GLuint driverControl, GLsizei bufSize, GLsizei *length, GLchar *driverControlString) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -18644,7 +15147,7 @@ void GLTrace_glDisableDriverControlQCOM(GLuint driverControl) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glExtGetTexturesQCOM(GLuint * textures, GLint maxTextures, GLint * numTextures) { +void GLTrace_glExtGetTexturesQCOM(GLuint *textures, GLint maxTextures, GLint *numTextures) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -18686,7 +15189,7 @@ void GLTrace_glExtGetTexturesQCOM(GLuint * textures, GLint maxTextures, GLint * glContext->traceGLMessage(&glmsg); } -void GLTrace_glExtGetBuffersQCOM(GLuint * buffers, GLint maxBuffers, GLint * numBuffers) { +void GLTrace_glExtGetBuffersQCOM(GLuint *buffers, GLint maxBuffers, GLint *numBuffers) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -18728,7 +15231,7 @@ void GLTrace_glExtGetBuffersQCOM(GLuint * buffers, GLint maxBuffers, GLint * num glContext->traceGLMessage(&glmsg); } -void GLTrace_glExtGetRenderbuffersQCOM(GLuint * renderbuffers, GLint maxRenderbuffers, GLint * numRenderbuffers) { +void GLTrace_glExtGetRenderbuffersQCOM(GLuint *renderbuffers, GLint maxRenderbuffers, GLint *numRenderbuffers) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -18770,7 +15273,7 @@ void GLTrace_glExtGetRenderbuffersQCOM(GLuint * renderbuffers, GLint maxRenderbu glContext->traceGLMessage(&glmsg); } -void GLTrace_glExtGetFramebuffersQCOM(GLuint * framebuffers, GLint maxFramebuffers, GLint * numFramebuffers) { +void GLTrace_glExtGetFramebuffersQCOM(GLuint *framebuffers, GLint maxFramebuffers, GLint *numFramebuffers) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -18812,7 +15315,7 @@ void GLTrace_glExtGetFramebuffersQCOM(GLuint * framebuffers, GLint maxFramebuffe glContext->traceGLMessage(&glmsg); } -void GLTrace_glExtGetTexLevelParameterivQCOM(GLuint texture, GLenum face, GLint level, GLenum pname, GLint * params) { +void GLTrace_glExtGetTexLevelParameterivQCOM(GLuint texture, GLenum face, GLint level, GLenum pname, GLint *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -18905,7 +15408,7 @@ void GLTrace_glExtTexObjectStateOverrideiQCOM(GLenum target, GLenum pname, GLint glContext->traceGLMessage(&glmsg); } -void GLTrace_glExtGetTexSubImageQCOM(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, void * texels) { +void GLTrace_glExtGetTexSubImageQCOM(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLvoid *texels) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -18994,7 +15497,7 @@ void GLTrace_glExtGetTexSubImageQCOM(GLenum target, GLint level, GLint xoffset, glContext->traceGLMessage(&glmsg); } -void GLTrace_glExtGetBufferPointervQCOM(GLenum target, void ** params) { +void GLTrace_glExtGetBufferPointervQCOM(GLenum target, GLvoid **params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -19029,7 +15532,7 @@ void GLTrace_glExtGetBufferPointervQCOM(GLenum target, void ** params) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glExtGetShadersQCOM(GLuint * shaders, GLint maxShaders, GLint * numShaders) { +void GLTrace_glExtGetShadersQCOM(GLuint *shaders, GLint maxShaders, GLint *numShaders) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -19071,7 +15574,7 @@ void GLTrace_glExtGetShadersQCOM(GLuint * shaders, GLint maxShaders, GLint * num glContext->traceGLMessage(&glmsg); } -void GLTrace_glExtGetProgramsQCOM(GLuint * programs, GLint maxPrograms, GLint * numPrograms) { +void GLTrace_glExtGetProgramsQCOM(GLuint *programs, GLint maxPrograms, GLint *numPrograms) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -19149,7 +15652,7 @@ GLboolean GLTrace_glExtIsProgramBinaryQCOM(GLuint program) { return retValue; } -void GLTrace_glExtGetProgramBinarySourceQCOM(GLuint program, GLenum shadertype, GLchar * source, GLint * length) { +void GLTrace_glExtGetProgramBinarySourceQCOM(GLuint program, GLenum shadertype, GLchar *source, GLint *length) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -19280,7 +15783,7 @@ void GLTrace_glEndTilingQCOM(GLbitfield preserveMask) { // Definitions for GL1 APIs -void GLTrace_glAlphaFunc(GLenum func, GLfloat ref) { +void GLTrace_glAlphaFunc(GLenum func, GLclampf ref) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -19314,33 +15817,33 @@ void GLTrace_glAlphaFunc(GLenum func, GLfloat ref) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glClipPlanef(GLenum p, const GLfloat * eqn) { +void GLTrace_glClipPlanef(GLenum plane, const GLfloat *equation) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); glmsg.set_function(GLMessage::glClipPlanef); - // copy argument p - GLMessage_DataType *arg_p = glmsg.add_args(); - arg_p->set_isarray(false); - arg_p->set_type(GLMessage::DataType::ENUM); - arg_p->add_intvalue((int)p); + // copy argument plane + GLMessage_DataType *arg_plane = glmsg.add_args(); + arg_plane->set_isarray(false); + arg_plane->set_type(GLMessage::DataType::ENUM); + arg_plane->add_intvalue((int)plane); - // copy argument eqn - GLMessage_DataType *arg_eqn = glmsg.add_args(); - arg_eqn->set_isarray(false); - arg_eqn->set_type(GLMessage::DataType::INT64); - arg_eqn->add_int64value((uintptr_t)eqn); + // copy argument equation + GLMessage_DataType *arg_equation = glmsg.add_args(); + arg_equation->set_isarray(false); + arg_equation->set_type(GLMessage::DataType::INT64); + arg_equation->add_int64value((uintptr_t)equation); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glClipPlanef(p, eqn); + glContext->hooks->gl.glClipPlanef(plane, equation); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) eqn, + (void *) equation, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -19429,7 +15932,7 @@ void GLTrace_glFogf(GLenum pname, GLfloat param) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glFogfv(GLenum pname, const GLfloat * params) { +void GLTrace_glFogfv(GLenum pname, const GLfloat *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -19464,52 +15967,52 @@ void GLTrace_glFogfv(GLenum pname, const GLfloat * params) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glFrustumf(GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f) { +void GLTrace_glFrustumf(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); glmsg.set_function(GLMessage::glFrustumf); - // copy argument l - GLMessage_DataType *arg_l = glmsg.add_args(); - arg_l->set_isarray(false); - arg_l->set_type(GLMessage::DataType::FLOAT); - arg_l->add_floatvalue(l); + // copy argument left + GLMessage_DataType *arg_left = glmsg.add_args(); + arg_left->set_isarray(false); + arg_left->set_type(GLMessage::DataType::FLOAT); + arg_left->add_floatvalue(left); - // copy argument r - GLMessage_DataType *arg_r = glmsg.add_args(); - arg_r->set_isarray(false); - arg_r->set_type(GLMessage::DataType::FLOAT); - arg_r->add_floatvalue(r); + // copy argument right + GLMessage_DataType *arg_right = glmsg.add_args(); + arg_right->set_isarray(false); + arg_right->set_type(GLMessage::DataType::FLOAT); + arg_right->add_floatvalue(right); - // copy argument b - GLMessage_DataType *arg_b = glmsg.add_args(); - arg_b->set_isarray(false); - arg_b->set_type(GLMessage::DataType::FLOAT); - arg_b->add_floatvalue(b); + // copy argument bottom + GLMessage_DataType *arg_bottom = glmsg.add_args(); + arg_bottom->set_isarray(false); + arg_bottom->set_type(GLMessage::DataType::FLOAT); + arg_bottom->add_floatvalue(bottom); - // copy argument t - GLMessage_DataType *arg_t = glmsg.add_args(); - arg_t->set_isarray(false); - arg_t->set_type(GLMessage::DataType::FLOAT); - arg_t->add_floatvalue(t); + // copy argument top + GLMessage_DataType *arg_top = glmsg.add_args(); + arg_top->set_isarray(false); + arg_top->set_type(GLMessage::DataType::FLOAT); + arg_top->add_floatvalue(top); - // copy argument n - GLMessage_DataType *arg_n = glmsg.add_args(); - arg_n->set_isarray(false); - arg_n->set_type(GLMessage::DataType::FLOAT); - arg_n->add_floatvalue(n); + // copy argument zNear + GLMessage_DataType *arg_zNear = glmsg.add_args(); + arg_zNear->set_isarray(false); + arg_zNear->set_type(GLMessage::DataType::FLOAT); + arg_zNear->add_floatvalue(zNear); - // copy argument f - GLMessage_DataType *arg_f = glmsg.add_args(); - arg_f->set_isarray(false); - arg_f->set_type(GLMessage::DataType::FLOAT); - arg_f->add_floatvalue(f); + // copy argument zFar + GLMessage_DataType *arg_zFar = glmsg.add_args(); + arg_zFar->set_isarray(false); + arg_zFar->set_type(GLMessage::DataType::FLOAT); + arg_zFar->add_floatvalue(zFar); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glFrustumf(l, r, b, t, n, f); + glContext->hooks->gl.glFrustumf(left, right, bottom, top, zNear, zFar); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -19522,33 +16025,33 @@ void GLTrace_glFrustumf(GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, G glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetClipPlanef(GLenum plane, GLfloat * equation) { +void GLTrace_glGetClipPlanef(GLenum pname, GLfloat eqn[4]) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); glmsg.set_function(GLMessage::glGetClipPlanef); - // copy argument plane - GLMessage_DataType *arg_plane = glmsg.add_args(); - arg_plane->set_isarray(false); - arg_plane->set_type(GLMessage::DataType::ENUM); - arg_plane->add_intvalue((int)plane); + // copy argument pname + GLMessage_DataType *arg_pname = glmsg.add_args(); + arg_pname->set_isarray(false); + arg_pname->set_type(GLMessage::DataType::ENUM); + arg_pname->add_intvalue((int)pname); - // copy argument equation - GLMessage_DataType *arg_equation = glmsg.add_args(); - arg_equation->set_isarray(false); - arg_equation->set_type(GLMessage::DataType::INT64); - arg_equation->add_int64value((uintptr_t)equation); + // copy argument eqn + GLMessage_DataType *arg_eqn = glmsg.add_args(); + arg_eqn->set_isarray(false); + arg_eqn->set_type(GLMessage::DataType::INT64); + arg_eqn->add_int64value((uintptr_t)eqn); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetClipPlanef(plane, equation); + glContext->hooks->gl.glGetClipPlanef(pname, eqn); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) equation, + (void *) eqn, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -19557,7 +16060,7 @@ void GLTrace_glGetClipPlanef(GLenum plane, GLfloat * equation) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetLightfv(GLenum light, GLenum pname, GLfloat * params) { +void GLTrace_glGetLightfv(GLenum light, GLenum pname, GLfloat *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -19598,7 +16101,7 @@ void GLTrace_glGetLightfv(GLenum light, GLenum pname, GLfloat * params) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetMaterialfv(GLenum face, GLenum pname, GLfloat * params) { +void GLTrace_glGetMaterialfv(GLenum face, GLenum pname, GLfloat *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -19639,17 +16142,17 @@ void GLTrace_glGetMaterialfv(GLenum face, GLenum pname, GLfloat * params) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetTexEnvfv(GLenum target, GLenum pname, GLfloat * params) { +void GLTrace_glGetTexEnvfv(GLenum env, GLenum pname, GLfloat *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); glmsg.set_function(GLMessage::glGetTexEnvfv); - // copy argument target - GLMessage_DataType *arg_target = glmsg.add_args(); - arg_target->set_isarray(false); - arg_target->set_type(GLMessage::DataType::ENUM); - arg_target->add_intvalue((int)target); + // copy argument env + GLMessage_DataType *arg_env = glmsg.add_args(); + arg_env->set_isarray(false); + arg_env->set_type(GLMessage::DataType::ENUM); + arg_env->add_intvalue((int)env); // copy argument pname GLMessage_DataType *arg_pname = glmsg.add_args(); @@ -19666,7 +16169,7 @@ void GLTrace_glGetTexEnvfv(GLenum target, GLenum pname, GLfloat * params) { // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetTexEnvfv(target, pname, params); + glContext->hooks->gl.glGetTexEnvfv(env, pname, params); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -19714,7 +16217,7 @@ void GLTrace_glLightModelf(GLenum pname, GLfloat param) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glLightModelfv(GLenum pname, const GLfloat * params) { +void GLTrace_glLightModelfv(GLenum pname, const GLfloat *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -19789,7 +16292,7 @@ void GLTrace_glLightf(GLenum light, GLenum pname, GLfloat param) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glLightfv(GLenum light, GLenum pname, const GLfloat * params) { +void GLTrace_glLightfv(GLenum light, GLenum pname, const GLfloat *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -19830,7 +16333,7 @@ void GLTrace_glLightfv(GLenum light, GLenum pname, const GLfloat * params) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glLoadMatrixf(const GLfloat * m) { +void GLTrace_glLoadMatrixf(const GLfloat *m) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -19899,7 +16402,7 @@ void GLTrace_glMaterialf(GLenum face, GLenum pname, GLfloat param) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glMaterialfv(GLenum face, GLenum pname, const GLfloat * params) { +void GLTrace_glMaterialfv(GLenum face, GLenum pname, const GLfloat *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -19940,7 +16443,7 @@ void GLTrace_glMaterialfv(GLenum face, GLenum pname, const GLfloat * params) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glMultMatrixf(const GLfloat * m) { +void GLTrace_glMultMatrixf(const GLfloat *m) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -20061,52 +16564,52 @@ void GLTrace_glNormal3f(GLfloat nx, GLfloat ny, GLfloat nz) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glOrthof(GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f) { +void GLTrace_glOrthof(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); glmsg.set_function(GLMessage::glOrthof); - // copy argument l - GLMessage_DataType *arg_l = glmsg.add_args(); - arg_l->set_isarray(false); - arg_l->set_type(GLMessage::DataType::FLOAT); - arg_l->add_floatvalue(l); + // copy argument left + GLMessage_DataType *arg_left = glmsg.add_args(); + arg_left->set_isarray(false); + arg_left->set_type(GLMessage::DataType::FLOAT); + arg_left->add_floatvalue(left); - // copy argument r - GLMessage_DataType *arg_r = glmsg.add_args(); - arg_r->set_isarray(false); - arg_r->set_type(GLMessage::DataType::FLOAT); - arg_r->add_floatvalue(r); + // copy argument right + GLMessage_DataType *arg_right = glmsg.add_args(); + arg_right->set_isarray(false); + arg_right->set_type(GLMessage::DataType::FLOAT); + arg_right->add_floatvalue(right); - // copy argument b - GLMessage_DataType *arg_b = glmsg.add_args(); - arg_b->set_isarray(false); - arg_b->set_type(GLMessage::DataType::FLOAT); - arg_b->add_floatvalue(b); + // copy argument bottom + GLMessage_DataType *arg_bottom = glmsg.add_args(); + arg_bottom->set_isarray(false); + arg_bottom->set_type(GLMessage::DataType::FLOAT); + arg_bottom->add_floatvalue(bottom); - // copy argument t - GLMessage_DataType *arg_t = glmsg.add_args(); - arg_t->set_isarray(false); - arg_t->set_type(GLMessage::DataType::FLOAT); - arg_t->add_floatvalue(t); + // copy argument top + GLMessage_DataType *arg_top = glmsg.add_args(); + arg_top->set_isarray(false); + arg_top->set_type(GLMessage::DataType::FLOAT); + arg_top->add_floatvalue(top); - // copy argument n - GLMessage_DataType *arg_n = glmsg.add_args(); - arg_n->set_isarray(false); - arg_n->set_type(GLMessage::DataType::FLOAT); - arg_n->add_floatvalue(n); + // copy argument zNear + GLMessage_DataType *arg_zNear = glmsg.add_args(); + arg_zNear->set_isarray(false); + arg_zNear->set_type(GLMessage::DataType::FLOAT); + arg_zNear->add_floatvalue(zNear); - // copy argument f - GLMessage_DataType *arg_f = glmsg.add_args(); - arg_f->set_isarray(false); - arg_f->set_type(GLMessage::DataType::FLOAT); - arg_f->add_floatvalue(f); + // copy argument zFar + GLMessage_DataType *arg_zFar = glmsg.add_args(); + arg_zFar->set_isarray(false); + arg_zFar->set_type(GLMessage::DataType::FLOAT); + arg_zFar->add_floatvalue(zFar); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glOrthof(l, r, b, t, n, f); + glContext->hooks->gl.glOrthof(left, right, bottom, top, zNear, zFar); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -20153,7 +16656,7 @@ void GLTrace_glPointParameterf(GLenum pname, GLfloat param) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glPointParameterfv(GLenum pname, const GLfloat * params) { +void GLTrace_glPointParameterfv(GLenum pname, const GLfloat *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -20342,7 +16845,7 @@ void GLTrace_glTexEnvf(GLenum target, GLenum pname, GLfloat param) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glTexEnvfv(GLenum target, GLenum pname, const GLfloat * params) { +void GLTrace_glTexEnvfv(GLenum target, GLenum pname, const GLfloat *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -20423,7 +16926,7 @@ void GLTrace_glTranslatef(GLfloat x, GLfloat y, GLfloat z) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glAlphaFuncx(GLenum func, GLfixed ref) { +void GLTrace_glAlphaFuncx(GLenum func, GLclampx ref) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -20457,7 +16960,7 @@ void GLTrace_glAlphaFuncx(GLenum func, GLfixed ref) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glClearColorx(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha) { +void GLTrace_glClearColorx(GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -20503,7 +17006,7 @@ void GLTrace_glClearColorx(GLfixed red, GLfixed green, GLfixed blue, GLfixed alp glContext->traceGLMessage(&glmsg); } -void GLTrace_glClearDepthx(GLfixed depth) { +void GLTrace_glClearDepthx(GLclampx depth) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -20559,7 +17062,7 @@ void GLTrace_glClientActiveTexture(GLenum texture) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glClipPlanex(GLenum plane, const GLfixed * equation) { +void GLTrace_glClipPlanex(GLenum plane, const GLfixed *equation) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -20686,7 +17189,7 @@ void GLTrace_glColor4x(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha) glContext->traceGLMessage(&glmsg); } -void GLTrace_glColorPointer(GLint size, GLenum type, GLsizei stride, const void * pointer) { +void GLTrace_glColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -20733,28 +17236,28 @@ void GLTrace_glColorPointer(GLint size, GLenum type, GLsizei stride, const void glContext->traceGLMessage(&glmsg); } -void GLTrace_glDepthRangex(GLfixed n, GLfixed f) { +void GLTrace_glDepthRangex(GLclampx zNear, GLclampx zFar) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); glmsg.set_function(GLMessage::glDepthRangex); - // copy argument n - GLMessage_DataType *arg_n = glmsg.add_args(); - arg_n->set_isarray(false); - arg_n->set_type(GLMessage::DataType::INT); - arg_n->add_intvalue(n); + // copy argument zNear + GLMessage_DataType *arg_zNear = glmsg.add_args(); + arg_zNear->set_isarray(false); + arg_zNear->set_type(GLMessage::DataType::INT); + arg_zNear->add_intvalue(zNear); - // copy argument f - GLMessage_DataType *arg_f = glmsg.add_args(); - arg_f->set_isarray(false); - arg_f->set_type(GLMessage::DataType::INT); - arg_f->add_intvalue(f); + // copy argument zFar + GLMessage_DataType *arg_zFar = glmsg.add_args(); + arg_zFar->set_isarray(false); + arg_zFar->set_type(GLMessage::DataType::INT); + arg_zFar->add_intvalue(zFar); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glDepthRangex(n, f); + glContext->hooks->gl.glDepthRangex(zNear, zFar); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -20857,7 +17360,7 @@ void GLTrace_glFogx(GLenum pname, GLfixed param) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glFogxv(GLenum pname, const GLfixed * param) { +void GLTrace_glFogxv(GLenum pname, const GLfixed *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -20869,21 +17372,21 @@ void GLTrace_glFogxv(GLenum pname, const GLfixed * param) { arg_pname->set_type(GLMessage::DataType::ENUM); arg_pname->add_intvalue((int)pname); - // copy argument param - GLMessage_DataType *arg_param = glmsg.add_args(); - arg_param->set_isarray(false); - arg_param->set_type(GLMessage::DataType::INT64); - arg_param->add_int64value((uintptr_t)param); + // copy argument params + GLMessage_DataType *arg_params = glmsg.add_args(); + arg_params->set_isarray(false); + arg_params->set_type(GLMessage::DataType::INT64); + arg_params->add_int64value((uintptr_t)params); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glFogxv(pname, param); + glContext->hooks->gl.glFogxv(pname, params); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) param, + (void *) params, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -20892,52 +17395,52 @@ void GLTrace_glFogxv(GLenum pname, const GLfixed * param) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glFrustumx(GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f) { +void GLTrace_glFrustumx(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); glmsg.set_function(GLMessage::glFrustumx); - // copy argument l - GLMessage_DataType *arg_l = glmsg.add_args(); - arg_l->set_isarray(false); - arg_l->set_type(GLMessage::DataType::INT); - arg_l->add_intvalue(l); + // copy argument left + GLMessage_DataType *arg_left = glmsg.add_args(); + arg_left->set_isarray(false); + arg_left->set_type(GLMessage::DataType::INT); + arg_left->add_intvalue(left); - // copy argument r - GLMessage_DataType *arg_r = glmsg.add_args(); - arg_r->set_isarray(false); - arg_r->set_type(GLMessage::DataType::INT); - arg_r->add_intvalue(r); + // copy argument right + GLMessage_DataType *arg_right = glmsg.add_args(); + arg_right->set_isarray(false); + arg_right->set_type(GLMessage::DataType::INT); + arg_right->add_intvalue(right); - // copy argument b - GLMessage_DataType *arg_b = glmsg.add_args(); - arg_b->set_isarray(false); - arg_b->set_type(GLMessage::DataType::INT); - arg_b->add_intvalue(b); + // copy argument bottom + GLMessage_DataType *arg_bottom = glmsg.add_args(); + arg_bottom->set_isarray(false); + arg_bottom->set_type(GLMessage::DataType::INT); + arg_bottom->add_intvalue(bottom); - // copy argument t - GLMessage_DataType *arg_t = glmsg.add_args(); - arg_t->set_isarray(false); - arg_t->set_type(GLMessage::DataType::INT); - arg_t->add_intvalue(t); + // copy argument top + GLMessage_DataType *arg_top = glmsg.add_args(); + arg_top->set_isarray(false); + arg_top->set_type(GLMessage::DataType::INT); + arg_top->add_intvalue(top); - // copy argument n - GLMessage_DataType *arg_n = glmsg.add_args(); - arg_n->set_isarray(false); - arg_n->set_type(GLMessage::DataType::INT); - arg_n->add_intvalue(n); + // copy argument zNear + GLMessage_DataType *arg_zNear = glmsg.add_args(); + arg_zNear->set_isarray(false); + arg_zNear->set_type(GLMessage::DataType::INT); + arg_zNear->add_intvalue(zNear); - // copy argument f - GLMessage_DataType *arg_f = glmsg.add_args(); - arg_f->set_isarray(false); - arg_f->set_type(GLMessage::DataType::INT); - arg_f->add_intvalue(f); + // copy argument zFar + GLMessage_DataType *arg_zFar = glmsg.add_args(); + arg_zFar->set_isarray(false); + arg_zFar->set_type(GLMessage::DataType::INT); + arg_zFar->add_intvalue(zFar); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glFrustumx(l, r, b, t, n, f); + glContext->hooks->gl.glFrustumx(left, right, bottom, top, zNear, zFar); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -20950,33 +17453,33 @@ void GLTrace_glFrustumx(GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, G glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetClipPlanex(GLenum plane, GLfixed * equation) { +void GLTrace_glGetClipPlanex(GLenum pname, GLfixed eqn[4]) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); glmsg.set_function(GLMessage::glGetClipPlanex); - // copy argument plane - GLMessage_DataType *arg_plane = glmsg.add_args(); - arg_plane->set_isarray(false); - arg_plane->set_type(GLMessage::DataType::ENUM); - arg_plane->add_intvalue((int)plane); + // copy argument pname + GLMessage_DataType *arg_pname = glmsg.add_args(); + arg_pname->set_isarray(false); + arg_pname->set_type(GLMessage::DataType::ENUM); + arg_pname->add_intvalue((int)pname); - // copy argument equation - GLMessage_DataType *arg_equation = glmsg.add_args(); - arg_equation->set_isarray(false); - arg_equation->set_type(GLMessage::DataType::INT64); - arg_equation->add_int64value((uintptr_t)equation); + // copy argument eqn + GLMessage_DataType *arg_eqn = glmsg.add_args(); + arg_eqn->set_isarray(false); + arg_eqn->set_type(GLMessage::DataType::INT64); + arg_eqn->add_int64value((uintptr_t)eqn); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetClipPlanex(plane, equation); + glContext->hooks->gl.glGetClipPlanex(pname, eqn); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) equation, + (void *) eqn, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -20985,7 +17488,7 @@ void GLTrace_glGetClipPlanex(GLenum plane, GLfixed * equation) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetFixedv(GLenum pname, GLfixed * params) { +void GLTrace_glGetFixedv(GLenum pname, GLfixed *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -21020,7 +17523,7 @@ void GLTrace_glGetFixedv(GLenum pname, GLfixed * params) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetLightxv(GLenum light, GLenum pname, GLfixed * params) { +void GLTrace_glGetLightxv(GLenum light, GLenum pname, GLfixed *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -21061,7 +17564,7 @@ void GLTrace_glGetLightxv(GLenum light, GLenum pname, GLfixed * params) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetMaterialxv(GLenum face, GLenum pname, GLfixed * params) { +void GLTrace_glGetMaterialxv(GLenum face, GLenum pname, GLfixed *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -21102,7 +17605,7 @@ void GLTrace_glGetMaterialxv(GLenum face, GLenum pname, GLfixed * params) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetPointerv(GLenum pname, void ** params) { +void GLTrace_glGetPointerv(GLenum pname, GLvoid **params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -21137,17 +17640,17 @@ void GLTrace_glGetPointerv(GLenum pname, void ** params) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetTexEnviv(GLenum target, GLenum pname, GLint * params) { +void GLTrace_glGetTexEnviv(GLenum env, GLenum pname, GLint *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); glmsg.set_function(GLMessage::glGetTexEnviv); - // copy argument target - GLMessage_DataType *arg_target = glmsg.add_args(); - arg_target->set_isarray(false); - arg_target->set_type(GLMessage::DataType::ENUM); - arg_target->add_intvalue((int)target); + // copy argument env + GLMessage_DataType *arg_env = glmsg.add_args(); + arg_env->set_isarray(false); + arg_env->set_type(GLMessage::DataType::ENUM); + arg_env->add_intvalue((int)env); // copy argument pname GLMessage_DataType *arg_pname = glmsg.add_args(); @@ -21164,7 +17667,7 @@ void GLTrace_glGetTexEnviv(GLenum target, GLenum pname, GLint * params) { // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetTexEnviv(target, pname, params); + glContext->hooks->gl.glGetTexEnviv(env, pname, params); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -21178,17 +17681,17 @@ void GLTrace_glGetTexEnviv(GLenum target, GLenum pname, GLint * params) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetTexEnvxv(GLenum target, GLenum pname, GLfixed * params) { +void GLTrace_glGetTexEnvxv(GLenum env, GLenum pname, GLfixed *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); glmsg.set_function(GLMessage::glGetTexEnvxv); - // copy argument target - GLMessage_DataType *arg_target = glmsg.add_args(); - arg_target->set_isarray(false); - arg_target->set_type(GLMessage::DataType::ENUM); - arg_target->add_intvalue((int)target); + // copy argument env + GLMessage_DataType *arg_env = glmsg.add_args(); + arg_env->set_isarray(false); + arg_env->set_type(GLMessage::DataType::ENUM); + arg_env->add_intvalue((int)env); // copy argument pname GLMessage_DataType *arg_pname = glmsg.add_args(); @@ -21205,7 +17708,7 @@ void GLTrace_glGetTexEnvxv(GLenum target, GLenum pname, GLfixed * params) { // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetTexEnvxv(target, pname, params); + glContext->hooks->gl.glGetTexEnvxv(env, pname, params); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -21219,7 +17722,7 @@ void GLTrace_glGetTexEnvxv(GLenum target, GLenum pname, GLfixed * params) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetTexParameterxv(GLenum target, GLenum pname, GLfixed * params) { +void GLTrace_glGetTexParameterxv(GLenum target, GLenum pname, GLfixed *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -21294,7 +17797,7 @@ void GLTrace_glLightModelx(GLenum pname, GLfixed param) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glLightModelxv(GLenum pname, const GLfixed * param) { +void GLTrace_glLightModelxv(GLenum pname, const GLfixed *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -21306,21 +17809,21 @@ void GLTrace_glLightModelxv(GLenum pname, const GLfixed * param) { arg_pname->set_type(GLMessage::DataType::ENUM); arg_pname->add_intvalue((int)pname); - // copy argument param - GLMessage_DataType *arg_param = glmsg.add_args(); - arg_param->set_isarray(false); - arg_param->set_type(GLMessage::DataType::INT64); - arg_param->add_int64value((uintptr_t)param); + // copy argument params + GLMessage_DataType *arg_params = glmsg.add_args(); + arg_params->set_isarray(false); + arg_params->set_type(GLMessage::DataType::INT64); + arg_params->add_int64value((uintptr_t)params); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glLightModelxv(pname, param); + glContext->hooks->gl.glLightModelxv(pname, params); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) param, + (void *) params, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -21369,7 +17872,7 @@ void GLTrace_glLightx(GLenum light, GLenum pname, GLfixed param) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glLightxv(GLenum light, GLenum pname, const GLfixed * params) { +void GLTrace_glLightxv(GLenum light, GLenum pname, const GLfixed *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -21460,7 +17963,7 @@ void GLTrace_glLoadIdentity(void) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glLoadMatrixx(const GLfixed * m) { +void GLTrace_glLoadMatrixx(const GLfixed *m) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -21557,7 +18060,7 @@ void GLTrace_glMaterialx(GLenum face, GLenum pname, GLfixed param) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glMaterialxv(GLenum face, GLenum pname, const GLfixed * param) { +void GLTrace_glMaterialxv(GLenum face, GLenum pname, const GLfixed *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -21575,21 +18078,21 @@ void GLTrace_glMaterialxv(GLenum face, GLenum pname, const GLfixed * param) { arg_pname->set_type(GLMessage::DataType::ENUM); arg_pname->add_intvalue((int)pname); - // copy argument param - GLMessage_DataType *arg_param = glmsg.add_args(); - arg_param->set_isarray(false); - arg_param->set_type(GLMessage::DataType::INT64); - arg_param->add_int64value((uintptr_t)param); + // copy argument params + GLMessage_DataType *arg_params = glmsg.add_args(); + arg_params->set_isarray(false); + arg_params->set_type(GLMessage::DataType::INT64); + arg_params->add_int64value((uintptr_t)params); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glMaterialxv(face, pname, param); + glContext->hooks->gl.glMaterialxv(face, pname, params); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) param, + (void *) params, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -21626,7 +18129,7 @@ void GLTrace_glMatrixMode(GLenum mode) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glMultMatrixx(const GLfixed * m) { +void GLTrace_glMultMatrixx(const GLfixed *m) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -21655,17 +18158,17 @@ void GLTrace_glMultMatrixx(const GLfixed * m) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glMultiTexCoord4x(GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfixed q) { +void GLTrace_glMultiTexCoord4x(GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); glmsg.set_function(GLMessage::glMultiTexCoord4x); - // copy argument texture - GLMessage_DataType *arg_texture = glmsg.add_args(); - arg_texture->set_isarray(false); - arg_texture->set_type(GLMessage::DataType::ENUM); - arg_texture->add_intvalue((int)texture); + // copy argument target + GLMessage_DataType *arg_target = glmsg.add_args(); + arg_target->set_isarray(false); + arg_target->set_type(GLMessage::DataType::ENUM); + arg_target->add_intvalue((int)target); // copy argument s GLMessage_DataType *arg_s = glmsg.add_args(); @@ -21694,7 +18197,7 @@ void GLTrace_glMultiTexCoord4x(GLenum texture, GLfixed s, GLfixed t, GLfixed r, // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glMultiTexCoord4x(texture, s, t, r, q); + glContext->hooks->gl.glMultiTexCoord4x(target, s, t, r, q); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -21747,7 +18250,7 @@ void GLTrace_glNormal3x(GLfixed nx, GLfixed ny, GLfixed nz) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glNormalPointer(GLenum type, GLsizei stride, const void * pointer) { +void GLTrace_glNormalPointer(GLenum type, GLsizei stride, const GLvoid *pointer) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -21788,52 +18291,52 @@ void GLTrace_glNormalPointer(GLenum type, GLsizei stride, const void * pointer) glContext->traceGLMessage(&glmsg); } -void GLTrace_glOrthox(GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f) { +void GLTrace_glOrthox(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); glmsg.set_function(GLMessage::glOrthox); - // copy argument l - GLMessage_DataType *arg_l = glmsg.add_args(); - arg_l->set_isarray(false); - arg_l->set_type(GLMessage::DataType::INT); - arg_l->add_intvalue(l); + // copy argument left + GLMessage_DataType *arg_left = glmsg.add_args(); + arg_left->set_isarray(false); + arg_left->set_type(GLMessage::DataType::INT); + arg_left->add_intvalue(left); - // copy argument r - GLMessage_DataType *arg_r = glmsg.add_args(); - arg_r->set_isarray(false); - arg_r->set_type(GLMessage::DataType::INT); - arg_r->add_intvalue(r); + // copy argument right + GLMessage_DataType *arg_right = glmsg.add_args(); + arg_right->set_isarray(false); + arg_right->set_type(GLMessage::DataType::INT); + arg_right->add_intvalue(right); - // copy argument b - GLMessage_DataType *arg_b = glmsg.add_args(); - arg_b->set_isarray(false); - arg_b->set_type(GLMessage::DataType::INT); - arg_b->add_intvalue(b); + // copy argument bottom + GLMessage_DataType *arg_bottom = glmsg.add_args(); + arg_bottom->set_isarray(false); + arg_bottom->set_type(GLMessage::DataType::INT); + arg_bottom->add_intvalue(bottom); - // copy argument t - GLMessage_DataType *arg_t = glmsg.add_args(); - arg_t->set_isarray(false); - arg_t->set_type(GLMessage::DataType::INT); - arg_t->add_intvalue(t); + // copy argument top + GLMessage_DataType *arg_top = glmsg.add_args(); + arg_top->set_isarray(false); + arg_top->set_type(GLMessage::DataType::INT); + arg_top->add_intvalue(top); - // copy argument n - GLMessage_DataType *arg_n = glmsg.add_args(); - arg_n->set_isarray(false); - arg_n->set_type(GLMessage::DataType::INT); - arg_n->add_intvalue(n); + // copy argument zNear + GLMessage_DataType *arg_zNear = glmsg.add_args(); + arg_zNear->set_isarray(false); + arg_zNear->set_type(GLMessage::DataType::INT); + arg_zNear->add_intvalue(zNear); - // copy argument f - GLMessage_DataType *arg_f = glmsg.add_args(); - arg_f->set_isarray(false); - arg_f->set_type(GLMessage::DataType::INT); - arg_f->add_intvalue(f); + // copy argument zFar + GLMessage_DataType *arg_zFar = glmsg.add_args(); + arg_zFar->set_isarray(false); + arg_zFar->set_type(GLMessage::DataType::INT); + arg_zFar->add_intvalue(zFar); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glOrthox(l, r, b, t, n, f); + glContext->hooks->gl.glOrthox(left, right, bottom, top, zNear, zFar); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -21880,7 +18383,7 @@ void GLTrace_glPointParameterx(GLenum pname, GLfixed param) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glPointParameterxv(GLenum pname, const GLfixed * params) { +void GLTrace_glPointParameterxv(GLenum pname, const GLfixed *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -22169,7 +18672,7 @@ void GLTrace_glShadeModel(GLenum mode) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glTexCoordPointer(GLint size, GLenum type, GLsizei stride, const void * pointer) { +void GLTrace_glTexCoordPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -22296,7 +18799,7 @@ void GLTrace_glTexEnvx(GLenum target, GLenum pname, GLfixed param) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glTexEnviv(GLenum target, GLenum pname, const GLint * params) { +void GLTrace_glTexEnviv(GLenum target, GLenum pname, const GLint *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -22337,7 +18840,7 @@ void GLTrace_glTexEnviv(GLenum target, GLenum pname, const GLint * params) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glTexEnvxv(GLenum target, GLenum pname, const GLfixed * params) { +void GLTrace_glTexEnvxv(GLenum target, GLenum pname, const GLfixed *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -22418,7 +18921,7 @@ void GLTrace_glTexParameterx(GLenum target, GLenum pname, GLfixed param) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glTexParameterxv(GLenum target, GLenum pname, const GLfixed * params) { +void GLTrace_glTexParameterxv(GLenum target, GLenum pname, const GLfixed *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -22499,7 +19002,7 @@ void GLTrace_glTranslatex(GLfixed x, GLfixed y, GLfixed z) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glVertexPointer(GLint size, GLenum type, GLsizei stride, const void * pointer) { +void GLTrace_glVertexPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -22546,6 +19049,47 @@ void GLTrace_glVertexPointer(GLint size, GLenum type, GLsizei stride, const void glContext->traceGLMessage(&glmsg); } +void GLTrace_glPointSizePointerOES(GLenum type, GLsizei stride, const GLvoid *pointer) { + GLMessage glmsg; + GLTraceContext *glContext = getGLTraceContext(); + + glmsg.set_function(GLMessage::glPointSizePointerOES); + + // copy argument type + GLMessage_DataType *arg_type = glmsg.add_args(); + arg_type->set_isarray(false); + arg_type->set_type(GLMessage::DataType::ENUM); + arg_type->add_intvalue((int)type); + + // copy argument stride + GLMessage_DataType *arg_stride = glmsg.add_args(); + arg_stride->set_isarray(false); + arg_stride->set_type(GLMessage::DataType::INT); + arg_stride->add_intvalue(stride); + + // copy argument pointer + GLMessage_DataType *arg_pointer = glmsg.add_args(); + arg_pointer->set_isarray(false); + arg_pointer->set_type(GLMessage::DataType::INT64); + arg_pointer->add_int64value((uintptr_t)pointer); + + // call function + nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); + nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); + glContext->hooks->gl.glPointSizePointerOES(type, stride, pointer); + nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); + nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); + + void *pointerArgs[] = { + (void *) pointer, + }; + + fixupGLMessage(glContext, wallStartTime, wallEndTime, + threadStartTime, threadEndTime, + &glmsg, pointerArgs); + glContext->traceGLMessage(&glmsg); +} + // Definitions for GL1Ext APIs @@ -22657,771 +19201,6 @@ void GLTrace_glBlendEquationOES(GLenum mode) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glMultiTexCoord1bOES(GLenum texture, GLbyte s) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glMultiTexCoord1bOES); - - // copy argument texture - GLMessage_DataType *arg_texture = glmsg.add_args(); - arg_texture->set_isarray(false); - arg_texture->set_type(GLMessage::DataType::ENUM); - arg_texture->add_intvalue((int)texture); - - // copy argument s - GLMessage_DataType *arg_s = glmsg.add_args(); - arg_s->set_isarray(false); - arg_s->set_type(GLMessage::DataType::BYTE); - arg_s->add_intvalue((int)s); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glMultiTexCoord1bOES(texture, s); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glMultiTexCoord1bvOES(GLenum texture, const GLbyte * coords) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glMultiTexCoord1bvOES); - - // copy argument texture - GLMessage_DataType *arg_texture = glmsg.add_args(); - arg_texture->set_isarray(false); - arg_texture->set_type(GLMessage::DataType::ENUM); - arg_texture->add_intvalue((int)texture); - - // copy argument coords - GLMessage_DataType *arg_coords = glmsg.add_args(); - arg_coords->set_isarray(false); - arg_coords->set_type(GLMessage::DataType::INT64); - arg_coords->add_int64value((uintptr_t)coords); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glMultiTexCoord1bvOES(texture, coords); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) coords, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glMultiTexCoord2bOES(GLenum texture, GLbyte s, GLbyte t) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glMultiTexCoord2bOES); - - // copy argument texture - GLMessage_DataType *arg_texture = glmsg.add_args(); - arg_texture->set_isarray(false); - arg_texture->set_type(GLMessage::DataType::ENUM); - arg_texture->add_intvalue((int)texture); - - // copy argument s - GLMessage_DataType *arg_s = glmsg.add_args(); - arg_s->set_isarray(false); - arg_s->set_type(GLMessage::DataType::BYTE); - arg_s->add_intvalue((int)s); - - // copy argument t - GLMessage_DataType *arg_t = glmsg.add_args(); - arg_t->set_isarray(false); - arg_t->set_type(GLMessage::DataType::BYTE); - arg_t->add_intvalue((int)t); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glMultiTexCoord2bOES(texture, s, t); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glMultiTexCoord2bvOES(GLenum texture, const GLbyte * coords) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glMultiTexCoord2bvOES); - - // copy argument texture - GLMessage_DataType *arg_texture = glmsg.add_args(); - arg_texture->set_isarray(false); - arg_texture->set_type(GLMessage::DataType::ENUM); - arg_texture->add_intvalue((int)texture); - - // copy argument coords - GLMessage_DataType *arg_coords = glmsg.add_args(); - arg_coords->set_isarray(false); - arg_coords->set_type(GLMessage::DataType::INT64); - arg_coords->add_int64value((uintptr_t)coords); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glMultiTexCoord2bvOES(texture, coords); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) coords, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glMultiTexCoord3bOES(GLenum texture, GLbyte s, GLbyte t, GLbyte r) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glMultiTexCoord3bOES); - - // copy argument texture - GLMessage_DataType *arg_texture = glmsg.add_args(); - arg_texture->set_isarray(false); - arg_texture->set_type(GLMessage::DataType::ENUM); - arg_texture->add_intvalue((int)texture); - - // copy argument s - GLMessage_DataType *arg_s = glmsg.add_args(); - arg_s->set_isarray(false); - arg_s->set_type(GLMessage::DataType::BYTE); - arg_s->add_intvalue((int)s); - - // copy argument t - GLMessage_DataType *arg_t = glmsg.add_args(); - arg_t->set_isarray(false); - arg_t->set_type(GLMessage::DataType::BYTE); - arg_t->add_intvalue((int)t); - - // copy argument r - GLMessage_DataType *arg_r = glmsg.add_args(); - arg_r->set_isarray(false); - arg_r->set_type(GLMessage::DataType::BYTE); - arg_r->add_intvalue((int)r); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glMultiTexCoord3bOES(texture, s, t, r); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glMultiTexCoord3bvOES(GLenum texture, const GLbyte * coords) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glMultiTexCoord3bvOES); - - // copy argument texture - GLMessage_DataType *arg_texture = glmsg.add_args(); - arg_texture->set_isarray(false); - arg_texture->set_type(GLMessage::DataType::ENUM); - arg_texture->add_intvalue((int)texture); - - // copy argument coords - GLMessage_DataType *arg_coords = glmsg.add_args(); - arg_coords->set_isarray(false); - arg_coords->set_type(GLMessage::DataType::INT64); - arg_coords->add_int64value((uintptr_t)coords); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glMultiTexCoord3bvOES(texture, coords); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) coords, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glMultiTexCoord4bOES(GLenum texture, GLbyte s, GLbyte t, GLbyte r, GLbyte q) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glMultiTexCoord4bOES); - - // copy argument texture - GLMessage_DataType *arg_texture = glmsg.add_args(); - arg_texture->set_isarray(false); - arg_texture->set_type(GLMessage::DataType::ENUM); - arg_texture->add_intvalue((int)texture); - - // copy argument s - GLMessage_DataType *arg_s = glmsg.add_args(); - arg_s->set_isarray(false); - arg_s->set_type(GLMessage::DataType::BYTE); - arg_s->add_intvalue((int)s); - - // copy argument t - GLMessage_DataType *arg_t = glmsg.add_args(); - arg_t->set_isarray(false); - arg_t->set_type(GLMessage::DataType::BYTE); - arg_t->add_intvalue((int)t); - - // copy argument r - GLMessage_DataType *arg_r = glmsg.add_args(); - arg_r->set_isarray(false); - arg_r->set_type(GLMessage::DataType::BYTE); - arg_r->add_intvalue((int)r); - - // copy argument q - GLMessage_DataType *arg_q = glmsg.add_args(); - arg_q->set_isarray(false); - arg_q->set_type(GLMessage::DataType::BYTE); - arg_q->add_intvalue((int)q); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glMultiTexCoord4bOES(texture, s, t, r, q); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glMultiTexCoord4bvOES(GLenum texture, const GLbyte * coords) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glMultiTexCoord4bvOES); - - // copy argument texture - GLMessage_DataType *arg_texture = glmsg.add_args(); - arg_texture->set_isarray(false); - arg_texture->set_type(GLMessage::DataType::ENUM); - arg_texture->add_intvalue((int)texture); - - // copy argument coords - GLMessage_DataType *arg_coords = glmsg.add_args(); - arg_coords->set_isarray(false); - arg_coords->set_type(GLMessage::DataType::INT64); - arg_coords->add_int64value((uintptr_t)coords); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glMultiTexCoord4bvOES(texture, coords); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) coords, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glTexCoord1bOES(GLbyte s) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glTexCoord1bOES); - - // copy argument s - GLMessage_DataType *arg_s = glmsg.add_args(); - arg_s->set_isarray(false); - arg_s->set_type(GLMessage::DataType::BYTE); - arg_s->add_intvalue((int)s); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glTexCoord1bOES(s); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glTexCoord1bvOES(const GLbyte * coords) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glTexCoord1bvOES); - - // copy argument coords - GLMessage_DataType *arg_coords = glmsg.add_args(); - arg_coords->set_isarray(false); - arg_coords->set_type(GLMessage::DataType::INT64); - arg_coords->add_int64value((uintptr_t)coords); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glTexCoord1bvOES(coords); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) coords, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glTexCoord2bOES(GLbyte s, GLbyte t) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glTexCoord2bOES); - - // copy argument s - GLMessage_DataType *arg_s = glmsg.add_args(); - arg_s->set_isarray(false); - arg_s->set_type(GLMessage::DataType::BYTE); - arg_s->add_intvalue((int)s); - - // copy argument t - GLMessage_DataType *arg_t = glmsg.add_args(); - arg_t->set_isarray(false); - arg_t->set_type(GLMessage::DataType::BYTE); - arg_t->add_intvalue((int)t); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glTexCoord2bOES(s, t); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glTexCoord2bvOES(const GLbyte * coords) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glTexCoord2bvOES); - - // copy argument coords - GLMessage_DataType *arg_coords = glmsg.add_args(); - arg_coords->set_isarray(false); - arg_coords->set_type(GLMessage::DataType::INT64); - arg_coords->add_int64value((uintptr_t)coords); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glTexCoord2bvOES(coords); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) coords, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glTexCoord3bOES(GLbyte s, GLbyte t, GLbyte r) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glTexCoord3bOES); - - // copy argument s - GLMessage_DataType *arg_s = glmsg.add_args(); - arg_s->set_isarray(false); - arg_s->set_type(GLMessage::DataType::BYTE); - arg_s->add_intvalue((int)s); - - // copy argument t - GLMessage_DataType *arg_t = glmsg.add_args(); - arg_t->set_isarray(false); - arg_t->set_type(GLMessage::DataType::BYTE); - arg_t->add_intvalue((int)t); - - // copy argument r - GLMessage_DataType *arg_r = glmsg.add_args(); - arg_r->set_isarray(false); - arg_r->set_type(GLMessage::DataType::BYTE); - arg_r->add_intvalue((int)r); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glTexCoord3bOES(s, t, r); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glTexCoord3bvOES(const GLbyte * coords) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glTexCoord3bvOES); - - // copy argument coords - GLMessage_DataType *arg_coords = glmsg.add_args(); - arg_coords->set_isarray(false); - arg_coords->set_type(GLMessage::DataType::INT64); - arg_coords->add_int64value((uintptr_t)coords); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glTexCoord3bvOES(coords); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) coords, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glTexCoord4bOES(GLbyte s, GLbyte t, GLbyte r, GLbyte q) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glTexCoord4bOES); - - // copy argument s - GLMessage_DataType *arg_s = glmsg.add_args(); - arg_s->set_isarray(false); - arg_s->set_type(GLMessage::DataType::BYTE); - arg_s->add_intvalue((int)s); - - // copy argument t - GLMessage_DataType *arg_t = glmsg.add_args(); - arg_t->set_isarray(false); - arg_t->set_type(GLMessage::DataType::BYTE); - arg_t->add_intvalue((int)t); - - // copy argument r - GLMessage_DataType *arg_r = glmsg.add_args(); - arg_r->set_isarray(false); - arg_r->set_type(GLMessage::DataType::BYTE); - arg_r->add_intvalue((int)r); - - // copy argument q - GLMessage_DataType *arg_q = glmsg.add_args(); - arg_q->set_isarray(false); - arg_q->set_type(GLMessage::DataType::BYTE); - arg_q->add_intvalue((int)q); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glTexCoord4bOES(s, t, r, q); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glTexCoord4bvOES(const GLbyte * coords) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glTexCoord4bvOES); - - // copy argument coords - GLMessage_DataType *arg_coords = glmsg.add_args(); - arg_coords->set_isarray(false); - arg_coords->set_type(GLMessage::DataType::INT64); - arg_coords->add_int64value((uintptr_t)coords); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glTexCoord4bvOES(coords); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) coords, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glVertex2bOES(GLbyte x) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glVertex2bOES); - - // copy argument x - GLMessage_DataType *arg_x = glmsg.add_args(); - arg_x->set_isarray(false); - arg_x->set_type(GLMessage::DataType::BYTE); - arg_x->add_intvalue((int)x); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glVertex2bOES(x); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glVertex2bvOES(const GLbyte * coords) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glVertex2bvOES); - - // copy argument coords - GLMessage_DataType *arg_coords = glmsg.add_args(); - arg_coords->set_isarray(false); - arg_coords->set_type(GLMessage::DataType::INT64); - arg_coords->add_int64value((uintptr_t)coords); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glVertex2bvOES(coords); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) coords, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glVertex3bOES(GLbyte x, GLbyte y) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glVertex3bOES); - - // copy argument x - GLMessage_DataType *arg_x = glmsg.add_args(); - arg_x->set_isarray(false); - arg_x->set_type(GLMessage::DataType::BYTE); - arg_x->add_intvalue((int)x); - - // copy argument y - GLMessage_DataType *arg_y = glmsg.add_args(); - arg_y->set_isarray(false); - arg_y->set_type(GLMessage::DataType::BYTE); - arg_y->add_intvalue((int)y); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glVertex3bOES(x, y); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glVertex3bvOES(const GLbyte * coords) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glVertex3bvOES); - - // copy argument coords - GLMessage_DataType *arg_coords = glmsg.add_args(); - arg_coords->set_isarray(false); - arg_coords->set_type(GLMessage::DataType::INT64); - arg_coords->add_int64value((uintptr_t)coords); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glVertex3bvOES(coords); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) coords, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glVertex4bOES(GLbyte x, GLbyte y, GLbyte z) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glVertex4bOES); - - // copy argument x - GLMessage_DataType *arg_x = glmsg.add_args(); - arg_x->set_isarray(false); - arg_x->set_type(GLMessage::DataType::BYTE); - arg_x->add_intvalue((int)x); - - // copy argument y - GLMessage_DataType *arg_y = glmsg.add_args(); - arg_y->set_isarray(false); - arg_y->set_type(GLMessage::DataType::BYTE); - arg_y->add_intvalue((int)y); - - // copy argument z - GLMessage_DataType *arg_z = glmsg.add_args(); - arg_z->set_isarray(false); - arg_z->set_type(GLMessage::DataType::BYTE); - arg_z->add_intvalue((int)z); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glVertex4bOES(x, y, z); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glVertex4bvOES(const GLbyte * coords) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glVertex4bvOES); - - // copy argument coords - GLMessage_DataType *arg_coords = glmsg.add_args(); - arg_coords->set_isarray(false); - arg_coords->set_type(GLMessage::DataType::INT64); - arg_coords->add_int64value((uintptr_t)coords); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glVertex4bvOES(coords); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) coords, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - void GLTrace_glDrawTexsOES(GLshort x, GLshort y, GLshort z, GLshort width, GLshort height) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -23578,7 +19357,7 @@ void GLTrace_glDrawTexxOES(GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfix glContext->traceGLMessage(&glmsg); } -void GLTrace_glDrawTexsvOES(const GLshort * coords) { +void GLTrace_glDrawTexsvOES(const GLshort *coords) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -23607,7 +19386,7 @@ void GLTrace_glDrawTexsvOES(const GLshort * coords) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glDrawTexivOES(const GLint * coords) { +void GLTrace_glDrawTexivOES(const GLint *coords) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -23636,7 +19415,7 @@ void GLTrace_glDrawTexivOES(const GLint * coords) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glDrawTexxvOES(const GLfixed * coords) { +void GLTrace_glDrawTexxvOES(const GLfixed *coords) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -23717,7 +19496,7 @@ void GLTrace_glDrawTexfOES(GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLflo glContext->traceGLMessage(&glmsg); } -void GLTrace_glDrawTexfvOES(const GLfloat * coords) { +void GLTrace_glDrawTexfvOES(const GLfloat *coords) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -23746,7 +19525,7 @@ void GLTrace_glDrawTexfvOES(const GLfloat * coords) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glAlphaFuncxOES(GLenum func, GLfixed ref) { +void GLTrace_glAlphaFuncxOES(GLenum func, GLclampx ref) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -23780,7 +19559,7 @@ void GLTrace_glAlphaFuncxOES(GLenum func, GLfixed ref) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glClearColorxOES(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha) { +void GLTrace_glClearColorxOES(GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -23826,7 +19605,7 @@ void GLTrace_glClearColorxOES(GLfixed red, GLfixed green, GLfixed blue, GLfixed glContext->traceGLMessage(&glmsg); } -void GLTrace_glClearDepthxOES(GLfixed depth) { +void GLTrace_glClearDepthxOES(GLclampx depth) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -23854,7 +19633,7 @@ void GLTrace_glClearDepthxOES(GLfixed depth) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glClipPlanexOES(GLenum plane, const GLfixed * equation) { +void GLTrace_glClipPlanexOES(GLenum plane, const GLfixed *equation) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -23935,28 +19714,28 @@ void GLTrace_glColor4xOES(GLfixed red, GLfixed green, GLfixed blue, GLfixed alph glContext->traceGLMessage(&glmsg); } -void GLTrace_glDepthRangexOES(GLfixed n, GLfixed f) { +void GLTrace_glDepthRangexOES(GLclampx zNear, GLclampx zFar) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); glmsg.set_function(GLMessage::glDepthRangexOES); - // copy argument n - GLMessage_DataType *arg_n = glmsg.add_args(); - arg_n->set_isarray(false); - arg_n->set_type(GLMessage::DataType::INT); - arg_n->add_intvalue(n); + // copy argument zNear + GLMessage_DataType *arg_zNear = glmsg.add_args(); + arg_zNear->set_isarray(false); + arg_zNear->set_type(GLMessage::DataType::INT); + arg_zNear->add_intvalue(zNear); - // copy argument f - GLMessage_DataType *arg_f = glmsg.add_args(); - arg_f->set_isarray(false); - arg_f->set_type(GLMessage::DataType::INT); - arg_f->add_intvalue(f); + // copy argument zFar + GLMessage_DataType *arg_zFar = glmsg.add_args(); + arg_zFar->set_isarray(false); + arg_zFar->set_type(GLMessage::DataType::INT); + arg_zFar->add_intvalue(zFar); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glDepthRangexOES(n, f); + glContext->hooks->gl.glDepthRangexOES(zNear, zFar); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -24003,7 +19782,7 @@ void GLTrace_glFogxOES(GLenum pname, GLfixed param) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glFogxvOES(GLenum pname, const GLfixed * param) { +void GLTrace_glFogxvOES(GLenum pname, const GLfixed *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -24015,21 +19794,21 @@ void GLTrace_glFogxvOES(GLenum pname, const GLfixed * param) { arg_pname->set_type(GLMessage::DataType::ENUM); arg_pname->add_intvalue((int)pname); - // copy argument param - GLMessage_DataType *arg_param = glmsg.add_args(); - arg_param->set_isarray(false); - arg_param->set_type(GLMessage::DataType::INT64); - arg_param->add_int64value((uintptr_t)param); + // copy argument params + GLMessage_DataType *arg_params = glmsg.add_args(); + arg_params->set_isarray(false); + arg_params->set_type(GLMessage::DataType::INT64); + arg_params->add_int64value((uintptr_t)params); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glFogxvOES(pname, param); + glContext->hooks->gl.glFogxvOES(pname, params); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) param, + (void *) params, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -24038,52 +19817,52 @@ void GLTrace_glFogxvOES(GLenum pname, const GLfixed * param) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glFrustumxOES(GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f) { +void GLTrace_glFrustumxOES(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); glmsg.set_function(GLMessage::glFrustumxOES); - // copy argument l - GLMessage_DataType *arg_l = glmsg.add_args(); - arg_l->set_isarray(false); - arg_l->set_type(GLMessage::DataType::INT); - arg_l->add_intvalue(l); + // copy argument left + GLMessage_DataType *arg_left = glmsg.add_args(); + arg_left->set_isarray(false); + arg_left->set_type(GLMessage::DataType::INT); + arg_left->add_intvalue(left); - // copy argument r - GLMessage_DataType *arg_r = glmsg.add_args(); - arg_r->set_isarray(false); - arg_r->set_type(GLMessage::DataType::INT); - arg_r->add_intvalue(r); + // copy argument right + GLMessage_DataType *arg_right = glmsg.add_args(); + arg_right->set_isarray(false); + arg_right->set_type(GLMessage::DataType::INT); + arg_right->add_intvalue(right); - // copy argument b - GLMessage_DataType *arg_b = glmsg.add_args(); - arg_b->set_isarray(false); - arg_b->set_type(GLMessage::DataType::INT); - arg_b->add_intvalue(b); + // copy argument bottom + GLMessage_DataType *arg_bottom = glmsg.add_args(); + arg_bottom->set_isarray(false); + arg_bottom->set_type(GLMessage::DataType::INT); + arg_bottom->add_intvalue(bottom); - // copy argument t - GLMessage_DataType *arg_t = glmsg.add_args(); - arg_t->set_isarray(false); - arg_t->set_type(GLMessage::DataType::INT); - arg_t->add_intvalue(t); + // copy argument top + GLMessage_DataType *arg_top = glmsg.add_args(); + arg_top->set_isarray(false); + arg_top->set_type(GLMessage::DataType::INT); + arg_top->add_intvalue(top); - // copy argument n - GLMessage_DataType *arg_n = glmsg.add_args(); - arg_n->set_isarray(false); - arg_n->set_type(GLMessage::DataType::INT); - arg_n->add_intvalue(n); + // copy argument zNear + GLMessage_DataType *arg_zNear = glmsg.add_args(); + arg_zNear->set_isarray(false); + arg_zNear->set_type(GLMessage::DataType::INT); + arg_zNear->add_intvalue(zNear); - // copy argument f - GLMessage_DataType *arg_f = glmsg.add_args(); - arg_f->set_isarray(false); - arg_f->set_type(GLMessage::DataType::INT); - arg_f->add_intvalue(f); + // copy argument zFar + GLMessage_DataType *arg_zFar = glmsg.add_args(); + arg_zFar->set_isarray(false); + arg_zFar->set_type(GLMessage::DataType::INT); + arg_zFar->add_intvalue(zFar); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glFrustumxOES(l, r, b, t, n, f); + glContext->hooks->gl.glFrustumxOES(left, right, bottom, top, zNear, zFar); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -24096,33 +19875,33 @@ void GLTrace_glFrustumxOES(GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetClipPlanexOES(GLenum plane, GLfixed * equation) { +void GLTrace_glGetClipPlanexOES(GLenum pname, GLfixed eqn[4]) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); glmsg.set_function(GLMessage::glGetClipPlanexOES); - // copy argument plane - GLMessage_DataType *arg_plane = glmsg.add_args(); - arg_plane->set_isarray(false); - arg_plane->set_type(GLMessage::DataType::ENUM); - arg_plane->add_intvalue((int)plane); + // copy argument pname + GLMessage_DataType *arg_pname = glmsg.add_args(); + arg_pname->set_isarray(false); + arg_pname->set_type(GLMessage::DataType::ENUM); + arg_pname->add_intvalue((int)pname); - // copy argument equation - GLMessage_DataType *arg_equation = glmsg.add_args(); - arg_equation->set_isarray(false); - arg_equation->set_type(GLMessage::DataType::INT64); - arg_equation->add_int64value((uintptr_t)equation); + // copy argument eqn + GLMessage_DataType *arg_eqn = glmsg.add_args(); + arg_eqn->set_isarray(false); + arg_eqn->set_type(GLMessage::DataType::INT64); + arg_eqn->add_int64value((uintptr_t)eqn); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetClipPlanexOES(plane, equation); + glContext->hooks->gl.glGetClipPlanexOES(pname, eqn); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) equation, + (void *) eqn, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -24131,7 +19910,7 @@ void GLTrace_glGetClipPlanexOES(GLenum plane, GLfixed * equation) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetFixedvOES(GLenum pname, GLfixed * params) { +void GLTrace_glGetFixedvOES(GLenum pname, GLfixed *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -24166,17 +19945,99 @@ void GLTrace_glGetFixedvOES(GLenum pname, GLfixed * params) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetTexEnvxvOES(GLenum target, GLenum pname, GLfixed * params) { +void GLTrace_glGetLightxvOES(GLenum light, GLenum pname, GLfixed *params) { + GLMessage glmsg; + GLTraceContext *glContext = getGLTraceContext(); + + glmsg.set_function(GLMessage::glGetLightxvOES); + + // copy argument light + GLMessage_DataType *arg_light = glmsg.add_args(); + arg_light->set_isarray(false); + arg_light->set_type(GLMessage::DataType::ENUM); + arg_light->add_intvalue((int)light); + + // copy argument pname + GLMessage_DataType *arg_pname = glmsg.add_args(); + arg_pname->set_isarray(false); + arg_pname->set_type(GLMessage::DataType::ENUM); + arg_pname->add_intvalue((int)pname); + + // copy argument params + GLMessage_DataType *arg_params = glmsg.add_args(); + arg_params->set_isarray(false); + arg_params->set_type(GLMessage::DataType::INT64); + arg_params->add_int64value((uintptr_t)params); + + // call function + nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); + nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); + glContext->hooks->gl.glGetLightxvOES(light, pname, params); + nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); + nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); + + void *pointerArgs[] = { + (void *) params, + }; + + fixupGLMessage(glContext, wallStartTime, wallEndTime, + threadStartTime, threadEndTime, + &glmsg, pointerArgs); + glContext->traceGLMessage(&glmsg); +} + +void GLTrace_glGetMaterialxvOES(GLenum face, GLenum pname, GLfixed *params) { + GLMessage glmsg; + GLTraceContext *glContext = getGLTraceContext(); + + glmsg.set_function(GLMessage::glGetMaterialxvOES); + + // copy argument face + GLMessage_DataType *arg_face = glmsg.add_args(); + arg_face->set_isarray(false); + arg_face->set_type(GLMessage::DataType::ENUM); + arg_face->add_intvalue((int)face); + + // copy argument pname + GLMessage_DataType *arg_pname = glmsg.add_args(); + arg_pname->set_isarray(false); + arg_pname->set_type(GLMessage::DataType::ENUM); + arg_pname->add_intvalue((int)pname); + + // copy argument params + GLMessage_DataType *arg_params = glmsg.add_args(); + arg_params->set_isarray(false); + arg_params->set_type(GLMessage::DataType::INT64); + arg_params->add_int64value((uintptr_t)params); + + // call function + nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); + nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); + glContext->hooks->gl.glGetMaterialxvOES(face, pname, params); + nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); + nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); + + void *pointerArgs[] = { + (void *) params, + }; + + fixupGLMessage(glContext, wallStartTime, wallEndTime, + threadStartTime, threadEndTime, + &glmsg, pointerArgs); + glContext->traceGLMessage(&glmsg); +} + +void GLTrace_glGetTexEnvxvOES(GLenum env, GLenum pname, GLfixed *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); glmsg.set_function(GLMessage::glGetTexEnvxvOES); - // copy argument target - GLMessage_DataType *arg_target = glmsg.add_args(); - arg_target->set_isarray(false); - arg_target->set_type(GLMessage::DataType::ENUM); - arg_target->add_intvalue((int)target); + // copy argument env + GLMessage_DataType *arg_env = glmsg.add_args(); + arg_env->set_isarray(false); + arg_env->set_type(GLMessage::DataType::ENUM); + arg_env->add_intvalue((int)env); // copy argument pname GLMessage_DataType *arg_pname = glmsg.add_args(); @@ -24193,7 +20054,7 @@ void GLTrace_glGetTexEnvxvOES(GLenum target, GLenum pname, GLfixed * params) { // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetTexEnvxvOES(target, pname, params); + glContext->hooks->gl.glGetTexEnvxvOES(env, pname, params); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -24207,7 +20068,7 @@ void GLTrace_glGetTexEnvxvOES(GLenum target, GLenum pname, GLfixed * params) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetTexParameterxvOES(GLenum target, GLenum pname, GLfixed * params) { +void GLTrace_glGetTexParameterxvOES(GLenum target, GLenum pname, GLfixed *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -24282,7 +20143,7 @@ void GLTrace_glLightModelxOES(GLenum pname, GLfixed param) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glLightModelxvOES(GLenum pname, const GLfixed * param) { +void GLTrace_glLightModelxvOES(GLenum pname, const GLfixed *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -24294,21 +20155,21 @@ void GLTrace_glLightModelxvOES(GLenum pname, const GLfixed * param) { arg_pname->set_type(GLMessage::DataType::ENUM); arg_pname->add_intvalue((int)pname); - // copy argument param - GLMessage_DataType *arg_param = glmsg.add_args(); - arg_param->set_isarray(false); - arg_param->set_type(GLMessage::DataType::INT64); - arg_param->add_int64value((uintptr_t)param); + // copy argument params + GLMessage_DataType *arg_params = glmsg.add_args(); + arg_params->set_isarray(false); + arg_params->set_type(GLMessage::DataType::INT64); + arg_params->add_int64value((uintptr_t)params); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glLightModelxvOES(pname, param); + glContext->hooks->gl.glLightModelxvOES(pname, params); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) param, + (void *) params, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -24357,7 +20218,7 @@ void GLTrace_glLightxOES(GLenum light, GLenum pname, GLfixed param) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glLightxvOES(GLenum light, GLenum pname, const GLfixed * params) { +void GLTrace_glLightxvOES(GLenum light, GLenum pname, const GLfixed *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -24426,7 +20287,7 @@ void GLTrace_glLineWidthxOES(GLfixed width) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glLoadMatrixxOES(const GLfixed * m) { +void GLTrace_glLoadMatrixxOES(const GLfixed *m) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -24495,7 +20356,7 @@ void GLTrace_glMaterialxOES(GLenum face, GLenum pname, GLfixed param) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glMaterialxvOES(GLenum face, GLenum pname, const GLfixed * param) { +void GLTrace_glMaterialxvOES(GLenum face, GLenum pname, const GLfixed *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -24513,21 +20374,21 @@ void GLTrace_glMaterialxvOES(GLenum face, GLenum pname, const GLfixed * param) { arg_pname->set_type(GLMessage::DataType::ENUM); arg_pname->add_intvalue((int)pname); - // copy argument param - GLMessage_DataType *arg_param = glmsg.add_args(); - arg_param->set_isarray(false); - arg_param->set_type(GLMessage::DataType::INT64); - arg_param->add_int64value((uintptr_t)param); + // copy argument params + GLMessage_DataType *arg_params = glmsg.add_args(); + arg_params->set_isarray(false); + arg_params->set_type(GLMessage::DataType::INT64); + arg_params->add_int64value((uintptr_t)params); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glMaterialxvOES(face, pname, param); + glContext->hooks->gl.glMaterialxvOES(face, pname, params); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); void *pointerArgs[] = { - (void *) param, + (void *) params, }; fixupGLMessage(glContext, wallStartTime, wallEndTime, @@ -24536,7 +20397,7 @@ void GLTrace_glMaterialxvOES(GLenum face, GLenum pname, const GLfixed * param) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glMultMatrixxOES(const GLfixed * m) { +void GLTrace_glMultMatrixxOES(const GLfixed *m) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -24565,17 +20426,17 @@ void GLTrace_glMultMatrixxOES(const GLfixed * m) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glMultiTexCoord4xOES(GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfixed q) { +void GLTrace_glMultiTexCoord4xOES(GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); glmsg.set_function(GLMessage::glMultiTexCoord4xOES); - // copy argument texture - GLMessage_DataType *arg_texture = glmsg.add_args(); - arg_texture->set_isarray(false); - arg_texture->set_type(GLMessage::DataType::ENUM); - arg_texture->add_intvalue((int)texture); + // copy argument target + GLMessage_DataType *arg_target = glmsg.add_args(); + arg_target->set_isarray(false); + arg_target->set_type(GLMessage::DataType::ENUM); + arg_target->add_intvalue((int)target); // copy argument s GLMessage_DataType *arg_s = glmsg.add_args(); @@ -24604,7 +20465,7 @@ void GLTrace_glMultiTexCoord4xOES(GLenum texture, GLfixed s, GLfixed t, GLfixed // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glMultiTexCoord4xOES(texture, s, t, r, q); + glContext->hooks->gl.glMultiTexCoord4xOES(target, s, t, r, q); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -24657,52 +20518,86 @@ void GLTrace_glNormal3xOES(GLfixed nx, GLfixed ny, GLfixed nz) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glOrthoxOES(GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f) { +void GLTrace_glOrthoxOES(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); glmsg.set_function(GLMessage::glOrthoxOES); - // copy argument l - GLMessage_DataType *arg_l = glmsg.add_args(); - arg_l->set_isarray(false); - arg_l->set_type(GLMessage::DataType::INT); - arg_l->add_intvalue(l); + // copy argument left + GLMessage_DataType *arg_left = glmsg.add_args(); + arg_left->set_isarray(false); + arg_left->set_type(GLMessage::DataType::INT); + arg_left->add_intvalue(left); - // copy argument r - GLMessage_DataType *arg_r = glmsg.add_args(); - arg_r->set_isarray(false); - arg_r->set_type(GLMessage::DataType::INT); - arg_r->add_intvalue(r); + // copy argument right + GLMessage_DataType *arg_right = glmsg.add_args(); + arg_right->set_isarray(false); + arg_right->set_type(GLMessage::DataType::INT); + arg_right->add_intvalue(right); - // copy argument b - GLMessage_DataType *arg_b = glmsg.add_args(); - arg_b->set_isarray(false); - arg_b->set_type(GLMessage::DataType::INT); - arg_b->add_intvalue(b); + // copy argument bottom + GLMessage_DataType *arg_bottom = glmsg.add_args(); + arg_bottom->set_isarray(false); + arg_bottom->set_type(GLMessage::DataType::INT); + arg_bottom->add_intvalue(bottom); - // copy argument t - GLMessage_DataType *arg_t = glmsg.add_args(); - arg_t->set_isarray(false); - arg_t->set_type(GLMessage::DataType::INT); - arg_t->add_intvalue(t); + // copy argument top + GLMessage_DataType *arg_top = glmsg.add_args(); + arg_top->set_isarray(false); + arg_top->set_type(GLMessage::DataType::INT); + arg_top->add_intvalue(top); - // copy argument n - GLMessage_DataType *arg_n = glmsg.add_args(); - arg_n->set_isarray(false); - arg_n->set_type(GLMessage::DataType::INT); - arg_n->add_intvalue(n); + // copy argument zNear + GLMessage_DataType *arg_zNear = glmsg.add_args(); + arg_zNear->set_isarray(false); + arg_zNear->set_type(GLMessage::DataType::INT); + arg_zNear->add_intvalue(zNear); - // copy argument f - GLMessage_DataType *arg_f = glmsg.add_args(); - arg_f->set_isarray(false); - arg_f->set_type(GLMessage::DataType::INT); - arg_f->add_intvalue(f); + // copy argument zFar + GLMessage_DataType *arg_zFar = glmsg.add_args(); + arg_zFar->set_isarray(false); + arg_zFar->set_type(GLMessage::DataType::INT); + arg_zFar->add_intvalue(zFar); + + // call function + nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); + nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); + glContext->hooks->gl.glOrthoxOES(left, right, bottom, top, zNear, zFar); + nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); + nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); + + void *pointerArgs[] = { + }; + + fixupGLMessage(glContext, wallStartTime, wallEndTime, + threadStartTime, threadEndTime, + &glmsg, pointerArgs); + glContext->traceGLMessage(&glmsg); +} + +void GLTrace_glPointParameterxOES(GLenum pname, GLfixed param) { + GLMessage glmsg; + GLTraceContext *glContext = getGLTraceContext(); + + glmsg.set_function(GLMessage::glPointParameterxOES); + + // copy argument pname + GLMessage_DataType *arg_pname = glmsg.add_args(); + arg_pname->set_isarray(false); + arg_pname->set_type(GLMessage::DataType::ENUM); + arg_pname->add_intvalue((int)pname); + + // copy argument param + GLMessage_DataType *arg_param = glmsg.add_args(); + arg_param->set_isarray(false); + arg_param->set_type(GLMessage::DataType::INT); + arg_param->add_intvalue(param); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glOrthoxOES(l, r, b, t, n, f); + glContext->hooks->gl.glPointParameterxOES(pname, param); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -24715,7 +20610,7 @@ void GLTrace_glOrthoxOES(GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, glContext->traceGLMessage(&glmsg); } -void GLTrace_glPointParameterxvOES(GLenum pname, const GLfixed * params) { +void GLTrace_glPointParameterxvOES(GLenum pname, const GLfixed *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -24858,11 +20753,11 @@ void GLTrace_glRotatexOES(GLfixed angle, GLfixed x, GLfixed y, GLfixed z) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glSampleCoverageOES(GLfixed value, GLboolean invert) { +void GLTrace_glSampleCoveragexOES(GLclampx value, GLboolean invert) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glSampleCoverageOES); + glmsg.set_function(GLMessage::glSampleCoveragexOES); // copy argument value GLMessage_DataType *arg_value = glmsg.add_args(); @@ -24879,7 +20774,7 @@ void GLTrace_glSampleCoverageOES(GLfixed value, GLboolean invert) { // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glSampleCoverageOES(value, invert); + glContext->hooks->gl.glSampleCoveragexOES(value, invert); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -24972,7 +20867,7 @@ void GLTrace_glTexEnvxOES(GLenum target, GLenum pname, GLfixed param) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glTexEnvxvOES(GLenum target, GLenum pname, const GLfixed * params) { +void GLTrace_glTexEnvxvOES(GLenum target, GLenum pname, const GLfixed *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -25053,7 +20948,7 @@ void GLTrace_glTexParameterxOES(GLenum target, GLenum pname, GLfixed param) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glTexParameterxvOES(GLenum target, GLenum pname, const GLfixed * params) { +void GLTrace_glTexParameterxvOES(GLenum target, GLenum pname, const GLfixed *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -25134,278 +21029,6 @@ void GLTrace_glTranslatexOES(GLfixed x, GLfixed y, GLfixed z) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetLightxvOES(GLenum light, GLenum pname, GLfixed * params) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glGetLightxvOES); - - // copy argument light - GLMessage_DataType *arg_light = glmsg.add_args(); - arg_light->set_isarray(false); - arg_light->set_type(GLMessage::DataType::ENUM); - arg_light->add_intvalue((int)light); - - // copy argument pname - GLMessage_DataType *arg_pname = glmsg.add_args(); - arg_pname->set_isarray(false); - arg_pname->set_type(GLMessage::DataType::ENUM); - arg_pname->add_intvalue((int)pname); - - // copy argument params - GLMessage_DataType *arg_params = glmsg.add_args(); - arg_params->set_isarray(false); - arg_params->set_type(GLMessage::DataType::INT64); - arg_params->add_int64value((uintptr_t)params); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetLightxvOES(light, pname, params); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) params, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glGetMaterialxvOES(GLenum face, GLenum pname, GLfixed * params) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glGetMaterialxvOES); - - // copy argument face - GLMessage_DataType *arg_face = glmsg.add_args(); - arg_face->set_isarray(false); - arg_face->set_type(GLMessage::DataType::ENUM); - arg_face->add_intvalue((int)face); - - // copy argument pname - GLMessage_DataType *arg_pname = glmsg.add_args(); - arg_pname->set_isarray(false); - arg_pname->set_type(GLMessage::DataType::ENUM); - arg_pname->add_intvalue((int)pname); - - // copy argument params - GLMessage_DataType *arg_params = glmsg.add_args(); - arg_params->set_isarray(false); - arg_params->set_type(GLMessage::DataType::INT64); - arg_params->add_int64value((uintptr_t)params); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetMaterialxvOES(face, pname, params); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) params, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glPointParameterxOES(GLenum pname, GLfixed param) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glPointParameterxOES); - - // copy argument pname - GLMessage_DataType *arg_pname = glmsg.add_args(); - arg_pname->set_isarray(false); - arg_pname->set_type(GLMessage::DataType::ENUM); - arg_pname->add_intvalue((int)pname); - - // copy argument param - GLMessage_DataType *arg_param = glmsg.add_args(); - arg_param->set_isarray(false); - arg_param->set_type(GLMessage::DataType::INT); - arg_param->add_intvalue(param); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glPointParameterxOES(pname, param); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glSampleCoveragexOES(GLclampx value, GLboolean invert) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glSampleCoveragexOES); - - // copy argument value - GLMessage_DataType *arg_value = glmsg.add_args(); - arg_value->set_isarray(false); - arg_value->set_type(GLMessage::DataType::INT); - arg_value->add_intvalue(value); - - // copy argument invert - GLMessage_DataType *arg_invert = glmsg.add_args(); - arg_invert->set_isarray(false); - arg_invert->set_type(GLMessage::DataType::BOOL); - arg_invert->add_boolvalue(invert); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glSampleCoveragexOES(value, invert); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glGetTexGenxvOES(GLenum coord, GLenum pname, GLfixed * params) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glGetTexGenxvOES); - - // copy argument coord - GLMessage_DataType *arg_coord = glmsg.add_args(); - arg_coord->set_isarray(false); - arg_coord->set_type(GLMessage::DataType::ENUM); - arg_coord->add_intvalue((int)coord); - - // copy argument pname - GLMessage_DataType *arg_pname = glmsg.add_args(); - arg_pname->set_isarray(false); - arg_pname->set_type(GLMessage::DataType::ENUM); - arg_pname->add_intvalue((int)pname); - - // copy argument params - GLMessage_DataType *arg_params = glmsg.add_args(); - arg_params->set_isarray(false); - arg_params->set_type(GLMessage::DataType::INT64); - arg_params->add_int64value((uintptr_t)params); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetTexGenxvOES(coord, pname, params); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) params, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glTexGenxOES(GLenum coord, GLenum pname, GLfixed param) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glTexGenxOES); - - // copy argument coord - GLMessage_DataType *arg_coord = glmsg.add_args(); - arg_coord->set_isarray(false); - arg_coord->set_type(GLMessage::DataType::ENUM); - arg_coord->add_intvalue((int)coord); - - // copy argument pname - GLMessage_DataType *arg_pname = glmsg.add_args(); - arg_pname->set_isarray(false); - arg_pname->set_type(GLMessage::DataType::ENUM); - arg_pname->add_intvalue((int)pname); - - // copy argument param - GLMessage_DataType *arg_param = glmsg.add_args(); - arg_param->set_isarray(false); - arg_param->set_type(GLMessage::DataType::INT); - arg_param->add_intvalue(param); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glTexGenxOES(coord, pname, param); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -void GLTrace_glTexGenxvOES(GLenum coord, GLenum pname, const GLfixed * params) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glTexGenxvOES); - - // copy argument coord - GLMessage_DataType *arg_coord = glmsg.add_args(); - arg_coord->set_isarray(false); - arg_coord->set_type(GLMessage::DataType::ENUM); - arg_coord->add_intvalue((int)coord); - - // copy argument pname - GLMessage_DataType *arg_pname = glmsg.add_args(); - arg_pname->set_isarray(false); - arg_pname->set_type(GLMessage::DataType::ENUM); - arg_pname->add_intvalue((int)pname); - - // copy argument params - GLMessage_DataType *arg_params = glmsg.add_args(); - arg_params->set_isarray(false); - arg_params->set_type(GLMessage::DataType::INT64); - arg_params->add_int64value((uintptr_t)params); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glTexGenxvOES(coord, pname, params); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) params, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - GLboolean GLTrace_glIsRenderbufferOES(GLuint renderbuffer) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -25476,7 +21099,7 @@ void GLTrace_glBindRenderbufferOES(GLenum target, GLuint renderbuffer) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glDeleteRenderbuffersOES(GLsizei n, const GLuint * renderbuffers) { +void GLTrace_glDeleteRenderbuffersOES(GLsizei n, const GLuint* renderbuffers) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -25511,7 +21134,7 @@ void GLTrace_glDeleteRenderbuffersOES(GLsizei n, const GLuint * renderbuffers) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGenRenderbuffersOES(GLsizei n, GLuint * renderbuffers) { +void GLTrace_glGenRenderbuffersOES(GLsizei n, GLuint* renderbuffers) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -25592,7 +21215,7 @@ void GLTrace_glRenderbufferStorageOES(GLenum target, GLenum internalformat, GLsi glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetRenderbufferParameterivOES(GLenum target, GLenum pname, GLint * params) { +void GLTrace_glGetRenderbufferParameterivOES(GLenum target, GLenum pname, GLint* params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -25703,7 +21326,7 @@ void GLTrace_glBindFramebufferOES(GLenum target, GLuint framebuffer) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glDeleteFramebuffersOES(GLsizei n, const GLuint * framebuffers) { +void GLTrace_glDeleteFramebuffersOES(GLsizei n, const GLuint* framebuffers) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -25738,7 +21361,7 @@ void GLTrace_glDeleteFramebuffersOES(GLsizei n, const GLuint * framebuffers) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGenFramebuffersOES(GLsizei n, GLuint * framebuffers) { +void GLTrace_glGenFramebuffersOES(GLsizei n, GLuint* framebuffers) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -25907,7 +21530,7 @@ void GLTrace_glFramebufferTexture2DOES(GLenum target, GLenum attachment, GLenum glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetFramebufferAttachmentParameterivOES(GLenum target, GLenum attachment, GLenum pname, GLint * params) { +void GLTrace_glGetFramebufferAttachmentParameterivOES(GLenum target, GLenum attachment, GLenum pname, GLint* params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -26032,7 +21655,7 @@ void GLTrace_glLoadPaletteFromModelViewMatrixOES(void) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glMatrixIndexPointerOES(GLint size, GLenum type, GLsizei stride, const void * pointer) { +void GLTrace_glMatrixIndexPointerOES(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -26079,7 +21702,7 @@ void GLTrace_glMatrixIndexPointerOES(GLint size, GLenum type, GLsizei stride, co glContext->traceGLMessage(&glmsg); } -void GLTrace_glWeightPointerOES(GLint size, GLenum type, GLsizei stride, const void * pointer) { +void GLTrace_glWeightPointerOES(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -26126,48 +21749,7 @@ void GLTrace_glWeightPointerOES(GLint size, GLenum type, GLsizei stride, const v glContext->traceGLMessage(&glmsg); } -void GLTrace_glPointSizePointerOES(GLenum type, GLsizei stride, const void * pointer) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); - - glmsg.set_function(GLMessage::glPointSizePointerOES); - - // copy argument type - GLMessage_DataType *arg_type = glmsg.add_args(); - arg_type->set_isarray(false); - arg_type->set_type(GLMessage::DataType::ENUM); - arg_type->add_intvalue((int)type); - - // copy argument stride - GLMessage_DataType *arg_stride = glmsg.add_args(); - arg_stride->set_isarray(false); - arg_stride->set_type(GLMessage::DataType::INT); - arg_stride->add_intvalue(stride); - - // copy argument pointer - GLMessage_DataType *arg_pointer = glmsg.add_args(); - arg_pointer->set_isarray(false); - arg_pointer->set_type(GLMessage::DataType::INT64); - arg_pointer->add_int64value((uintptr_t)pointer); - - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glPointSizePointerOES(type, stride, pointer); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - - void *pointerArgs[] = { - (void *) pointer, - }; - - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} - -GLbitfield GLTrace_glQueryMatrixxOES(GLfixed * mantissa, GLint * exponent) { +GLbitfield GLTrace_glQueryMatrixxOES(GLfixed mantissa[16], GLint exponent[16]) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -26211,22 +21793,28 @@ GLbitfield GLTrace_glQueryMatrixxOES(GLfixed * mantissa, GLint * exponent) { return retValue; } -void GLTrace_glClearDepthfOES(GLclampf depth) { +void GLTrace_glDepthRangefOES(GLclampf zNear, GLclampf zFar) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glClearDepthfOES); + glmsg.set_function(GLMessage::glDepthRangefOES); - // copy argument depth - GLMessage_DataType *arg_depth = glmsg.add_args(); - arg_depth->set_isarray(false); - arg_depth->set_type(GLMessage::DataType::FLOAT); - arg_depth->add_floatvalue(depth); + // copy argument zNear + GLMessage_DataType *arg_zNear = glmsg.add_args(); + arg_zNear->set_isarray(false); + arg_zNear->set_type(GLMessage::DataType::FLOAT); + arg_zNear->add_floatvalue(zNear); + + // copy argument zFar + GLMessage_DataType *arg_zFar = glmsg.add_args(); + arg_zFar->set_isarray(false); + arg_zFar->set_type(GLMessage::DataType::FLOAT); + arg_zFar->add_floatvalue(zFar); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glClearDepthfOES(depth); + glContext->hooks->gl.glDepthRangefOES(zNear, zFar); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -26239,63 +21827,52 @@ void GLTrace_glClearDepthfOES(GLclampf depth) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glClipPlanefOES(GLenum plane, const GLfloat * equation) { +void GLTrace_glFrustumfOES(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glClipPlanefOES); - - // copy argument plane - GLMessage_DataType *arg_plane = glmsg.add_args(); - arg_plane->set_isarray(false); - arg_plane->set_type(GLMessage::DataType::ENUM); - arg_plane->add_intvalue((int)plane); - - // copy argument equation - GLMessage_DataType *arg_equation = glmsg.add_args(); - arg_equation->set_isarray(false); - arg_equation->set_type(GLMessage::DataType::INT64); - arg_equation->add_int64value((uintptr_t)equation); + glmsg.set_function(GLMessage::glFrustumfOES); - // call function - nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); - nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glClipPlanefOES(plane, equation); - nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); - nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); + // copy argument left + GLMessage_DataType *arg_left = glmsg.add_args(); + arg_left->set_isarray(false); + arg_left->set_type(GLMessage::DataType::FLOAT); + arg_left->add_floatvalue(left); - void *pointerArgs[] = { - (void *) equation, - }; + // copy argument right + GLMessage_DataType *arg_right = glmsg.add_args(); + arg_right->set_isarray(false); + arg_right->set_type(GLMessage::DataType::FLOAT); + arg_right->add_floatvalue(right); - fixupGLMessage(glContext, wallStartTime, wallEndTime, - threadStartTime, threadEndTime, - &glmsg, pointerArgs); - glContext->traceGLMessage(&glmsg); -} + // copy argument bottom + GLMessage_DataType *arg_bottom = glmsg.add_args(); + arg_bottom->set_isarray(false); + arg_bottom->set_type(GLMessage::DataType::FLOAT); + arg_bottom->add_floatvalue(bottom); -void GLTrace_glDepthRangefOES(GLclampf n, GLclampf f) { - GLMessage glmsg; - GLTraceContext *glContext = getGLTraceContext(); + // copy argument top + GLMessage_DataType *arg_top = glmsg.add_args(); + arg_top->set_isarray(false); + arg_top->set_type(GLMessage::DataType::FLOAT); + arg_top->add_floatvalue(top); - glmsg.set_function(GLMessage::glDepthRangefOES); - - // copy argument n - GLMessage_DataType *arg_n = glmsg.add_args(); - arg_n->set_isarray(false); - arg_n->set_type(GLMessage::DataType::FLOAT); - arg_n->add_floatvalue(n); + // copy argument zNear + GLMessage_DataType *arg_zNear = glmsg.add_args(); + arg_zNear->set_isarray(false); + arg_zNear->set_type(GLMessage::DataType::FLOAT); + arg_zNear->add_floatvalue(zNear); - // copy argument f - GLMessage_DataType *arg_f = glmsg.add_args(); - arg_f->set_isarray(false); - arg_f->set_type(GLMessage::DataType::FLOAT); - arg_f->add_floatvalue(f); + // copy argument zFar + GLMessage_DataType *arg_zFar = glmsg.add_args(); + arg_zFar->set_isarray(false); + arg_zFar->set_type(GLMessage::DataType::FLOAT); + arg_zFar->add_floatvalue(zFar); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glDepthRangefOES(n, f); + glContext->hooks->gl.glFrustumfOES(left, right, bottom, top, zNear, zFar); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -26308,52 +21885,52 @@ void GLTrace_glDepthRangefOES(GLclampf n, GLclampf f) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glFrustumfOES(GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f) { +void GLTrace_glOrthofOES(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glFrustumfOES); + glmsg.set_function(GLMessage::glOrthofOES); - // copy argument l - GLMessage_DataType *arg_l = glmsg.add_args(); - arg_l->set_isarray(false); - arg_l->set_type(GLMessage::DataType::FLOAT); - arg_l->add_floatvalue(l); + // copy argument left + GLMessage_DataType *arg_left = glmsg.add_args(); + arg_left->set_isarray(false); + arg_left->set_type(GLMessage::DataType::FLOAT); + arg_left->add_floatvalue(left); - // copy argument r - GLMessage_DataType *arg_r = glmsg.add_args(); - arg_r->set_isarray(false); - arg_r->set_type(GLMessage::DataType::FLOAT); - arg_r->add_floatvalue(r); + // copy argument right + GLMessage_DataType *arg_right = glmsg.add_args(); + arg_right->set_isarray(false); + arg_right->set_type(GLMessage::DataType::FLOAT); + arg_right->add_floatvalue(right); - // copy argument b - GLMessage_DataType *arg_b = glmsg.add_args(); - arg_b->set_isarray(false); - arg_b->set_type(GLMessage::DataType::FLOAT); - arg_b->add_floatvalue(b); + // copy argument bottom + GLMessage_DataType *arg_bottom = glmsg.add_args(); + arg_bottom->set_isarray(false); + arg_bottom->set_type(GLMessage::DataType::FLOAT); + arg_bottom->add_floatvalue(bottom); - // copy argument t - GLMessage_DataType *arg_t = glmsg.add_args(); - arg_t->set_isarray(false); - arg_t->set_type(GLMessage::DataType::FLOAT); - arg_t->add_floatvalue(t); + // copy argument top + GLMessage_DataType *arg_top = glmsg.add_args(); + arg_top->set_isarray(false); + arg_top->set_type(GLMessage::DataType::FLOAT); + arg_top->add_floatvalue(top); - // copy argument n - GLMessage_DataType *arg_n = glmsg.add_args(); - arg_n->set_isarray(false); - arg_n->set_type(GLMessage::DataType::FLOAT); - arg_n->add_floatvalue(n); + // copy argument zNear + GLMessage_DataType *arg_zNear = glmsg.add_args(); + arg_zNear->set_isarray(false); + arg_zNear->set_type(GLMessage::DataType::FLOAT); + arg_zNear->add_floatvalue(zNear); - // copy argument f - GLMessage_DataType *arg_f = glmsg.add_args(); - arg_f->set_isarray(false); - arg_f->set_type(GLMessage::DataType::FLOAT); - arg_f->add_floatvalue(f); + // copy argument zFar + GLMessage_DataType *arg_zFar = glmsg.add_args(); + arg_zFar->set_isarray(false); + arg_zFar->set_type(GLMessage::DataType::FLOAT); + arg_zFar->add_floatvalue(zFar); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glFrustumfOES(l, r, b, t, n, f); + glContext->hooks->gl.glOrthofOES(left, right, bottom, top, zNear, zFar); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -26366,11 +21943,11 @@ void GLTrace_glFrustumfOES(GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetClipPlanefOES(GLenum plane, GLfloat * equation) { +void GLTrace_glClipPlanefOES(GLenum plane, const GLfloat *equation) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glGetClipPlanefOES); + glmsg.set_function(GLMessage::glClipPlanefOES); // copy argument plane GLMessage_DataType *arg_plane = glmsg.add_args(); @@ -26387,7 +21964,7 @@ void GLTrace_glGetClipPlanefOES(GLenum plane, GLfloat * equation) { // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glGetClipPlanefOES(plane, equation); + glContext->hooks->gl.glClipPlanefOES(plane, equation); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -26401,52 +21978,57 @@ void GLTrace_glGetClipPlanefOES(GLenum plane, GLfloat * equation) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glOrthofOES(GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f) { +void GLTrace_glGetClipPlanefOES(GLenum pname, GLfloat eqn[4]) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); - glmsg.set_function(GLMessage::glOrthofOES); + glmsg.set_function(GLMessage::glGetClipPlanefOES); - // copy argument l - GLMessage_DataType *arg_l = glmsg.add_args(); - arg_l->set_isarray(false); - arg_l->set_type(GLMessage::DataType::FLOAT); - arg_l->add_floatvalue(l); + // copy argument pname + GLMessage_DataType *arg_pname = glmsg.add_args(); + arg_pname->set_isarray(false); + arg_pname->set_type(GLMessage::DataType::ENUM); + arg_pname->add_intvalue((int)pname); - // copy argument r - GLMessage_DataType *arg_r = glmsg.add_args(); - arg_r->set_isarray(false); - arg_r->set_type(GLMessage::DataType::FLOAT); - arg_r->add_floatvalue(r); + // copy argument eqn + GLMessage_DataType *arg_eqn = glmsg.add_args(); + arg_eqn->set_isarray(false); + arg_eqn->set_type(GLMessage::DataType::INT64); + arg_eqn->add_int64value((uintptr_t)eqn); - // copy argument b - GLMessage_DataType *arg_b = glmsg.add_args(); - arg_b->set_isarray(false); - arg_b->set_type(GLMessage::DataType::FLOAT); - arg_b->add_floatvalue(b); + // call function + nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); + nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); + glContext->hooks->gl.glGetClipPlanefOES(pname, eqn); + nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); + nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); - // copy argument t - GLMessage_DataType *arg_t = glmsg.add_args(); - arg_t->set_isarray(false); - arg_t->set_type(GLMessage::DataType::FLOAT); - arg_t->add_floatvalue(t); + void *pointerArgs[] = { + (void *) eqn, + }; - // copy argument n - GLMessage_DataType *arg_n = glmsg.add_args(); - arg_n->set_isarray(false); - arg_n->set_type(GLMessage::DataType::FLOAT); - arg_n->add_floatvalue(n); + fixupGLMessage(glContext, wallStartTime, wallEndTime, + threadStartTime, threadEndTime, + &glmsg, pointerArgs); + glContext->traceGLMessage(&glmsg); +} - // copy argument f - GLMessage_DataType *arg_f = glmsg.add_args(); - arg_f->set_isarray(false); - arg_f->set_type(GLMessage::DataType::FLOAT); - arg_f->add_floatvalue(f); +void GLTrace_glClearDepthfOES(GLclampf depth) { + GLMessage glmsg; + GLTraceContext *glContext = getGLTraceContext(); + + glmsg.set_function(GLMessage::glClearDepthfOES); + + // copy argument depth + GLMessage_DataType *arg_depth = glmsg.add_args(); + arg_depth->set_isarray(false); + arg_depth->set_type(GLMessage::DataType::FLOAT); + arg_depth->add_floatvalue(depth); // call function nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); - glContext->hooks->gl.glOrthofOES(l, r, b, t, n, f); + glContext->hooks->gl.glClearDepthfOES(depth); nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); @@ -26499,7 +22081,7 @@ void GLTrace_glTexGenfOES(GLenum coord, GLenum pname, GLfloat param) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glTexGenfvOES(GLenum coord, GLenum pname, const GLfloat * params) { +void GLTrace_glTexGenfvOES(GLenum coord, GLenum pname, const GLfloat *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -26580,7 +22162,7 @@ void GLTrace_glTexGeniOES(GLenum coord, GLenum pname, GLint param) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glTexGenivOES(GLenum coord, GLenum pname, const GLint * params) { +void GLTrace_glTexGenivOES(GLenum coord, GLenum pname, const GLint *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -26621,7 +22203,88 @@ void GLTrace_glTexGenivOES(GLenum coord, GLenum pname, const GLint * params) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetTexGenfvOES(GLenum coord, GLenum pname, GLfloat * params) { +void GLTrace_glTexGenxOES(GLenum coord, GLenum pname, GLfixed param) { + GLMessage glmsg; + GLTraceContext *glContext = getGLTraceContext(); + + glmsg.set_function(GLMessage::glTexGenxOES); + + // copy argument coord + GLMessage_DataType *arg_coord = glmsg.add_args(); + arg_coord->set_isarray(false); + arg_coord->set_type(GLMessage::DataType::ENUM); + arg_coord->add_intvalue((int)coord); + + // copy argument pname + GLMessage_DataType *arg_pname = glmsg.add_args(); + arg_pname->set_isarray(false); + arg_pname->set_type(GLMessage::DataType::ENUM); + arg_pname->add_intvalue((int)pname); + + // copy argument param + GLMessage_DataType *arg_param = glmsg.add_args(); + arg_param->set_isarray(false); + arg_param->set_type(GLMessage::DataType::INT); + arg_param->add_intvalue(param); + + // call function + nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); + nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); + glContext->hooks->gl.glTexGenxOES(coord, pname, param); + nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); + nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); + + void *pointerArgs[] = { + }; + + fixupGLMessage(glContext, wallStartTime, wallEndTime, + threadStartTime, threadEndTime, + &glmsg, pointerArgs); + glContext->traceGLMessage(&glmsg); +} + +void GLTrace_glTexGenxvOES(GLenum coord, GLenum pname, const GLfixed *params) { + GLMessage glmsg; + GLTraceContext *glContext = getGLTraceContext(); + + glmsg.set_function(GLMessage::glTexGenxvOES); + + // copy argument coord + GLMessage_DataType *arg_coord = glmsg.add_args(); + arg_coord->set_isarray(false); + arg_coord->set_type(GLMessage::DataType::ENUM); + arg_coord->add_intvalue((int)coord); + + // copy argument pname + GLMessage_DataType *arg_pname = glmsg.add_args(); + arg_pname->set_isarray(false); + arg_pname->set_type(GLMessage::DataType::ENUM); + arg_pname->add_intvalue((int)pname); + + // copy argument params + GLMessage_DataType *arg_params = glmsg.add_args(); + arg_params->set_isarray(false); + arg_params->set_type(GLMessage::DataType::INT64); + arg_params->add_int64value((uintptr_t)params); + + // call function + nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); + nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); + glContext->hooks->gl.glTexGenxvOES(coord, pname, params); + nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); + nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); + + void *pointerArgs[] = { + (void *) params, + }; + + fixupGLMessage(glContext, wallStartTime, wallEndTime, + threadStartTime, threadEndTime, + &glmsg, pointerArgs); + glContext->traceGLMessage(&glmsg); +} + +void GLTrace_glGetTexGenfvOES(GLenum coord, GLenum pname, GLfloat *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -26662,7 +22325,7 @@ void GLTrace_glGetTexGenfvOES(GLenum coord, GLenum pname, GLfloat * params) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glGetTexGenivOES(GLenum coord, GLenum pname, GLint * params) { +void GLTrace_glGetTexGenivOES(GLenum coord, GLenum pname, GLint *params) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -26703,7 +22366,48 @@ void GLTrace_glGetTexGenivOES(GLenum coord, GLenum pname, GLint * params) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glClipPlanefIMG(GLenum p, const GLfloat * eqn) { +void GLTrace_glGetTexGenxvOES(GLenum coord, GLenum pname, GLfixed *params) { + GLMessage glmsg; + GLTraceContext *glContext = getGLTraceContext(); + + glmsg.set_function(GLMessage::glGetTexGenxvOES); + + // copy argument coord + GLMessage_DataType *arg_coord = glmsg.add_args(); + arg_coord->set_isarray(false); + arg_coord->set_type(GLMessage::DataType::ENUM); + arg_coord->add_intvalue((int)coord); + + // copy argument pname + GLMessage_DataType *arg_pname = glmsg.add_args(); + arg_pname->set_isarray(false); + arg_pname->set_type(GLMessage::DataType::ENUM); + arg_pname->add_intvalue((int)pname); + + // copy argument params + GLMessage_DataType *arg_params = glmsg.add_args(); + arg_params->set_isarray(false); + arg_params->set_type(GLMessage::DataType::INT64); + arg_params->add_int64value((uintptr_t)params); + + // call function + nsecs_t wallStartTime = systemTime(SYSTEM_TIME_MONOTONIC); + nsecs_t threadStartTime = systemTime(SYSTEM_TIME_THREAD); + glContext->hooks->gl.glGetTexGenxvOES(coord, pname, params); + nsecs_t threadEndTime = systemTime(SYSTEM_TIME_THREAD); + nsecs_t wallEndTime = systemTime(SYSTEM_TIME_MONOTONIC); + + void *pointerArgs[] = { + (void *) params, + }; + + fixupGLMessage(glContext, wallStartTime, wallEndTime, + threadStartTime, threadEndTime, + &glmsg, pointerArgs); + glContext->traceGLMessage(&glmsg); +} + +void GLTrace_glClipPlanefIMG(GLenum p, const GLfloat *eqn) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); @@ -26738,7 +22442,7 @@ void GLTrace_glClipPlanefIMG(GLenum p, const GLfloat * eqn) { glContext->traceGLMessage(&glmsg); } -void GLTrace_glClipPlanexIMG(GLenum p, const GLfixed * eqn) { +void GLTrace_glClipPlanexIMG(GLenum p, const GLfixed *eqn) { GLMessage glmsg; GLTraceContext *glContext = getGLTraceContext(); diff --git a/opengl/libs/GLES_trace/src/gltrace_api.h b/opengl/libs/GLES_trace/src/gltrace_api.h index 3530579..95d7f77 100644 --- a/opengl/libs/GLES_trace/src/gltrace_api.h +++ b/opengl/libs/GLES_trace/src/gltrace_api.h @@ -23,7 +23,7 @@ namespace gltrace { void GLTrace_glActiveTexture(GLenum texture); void GLTrace_glAttachShader(GLuint program, GLuint shader); -void GLTrace_glBindAttribLocation(GLuint program, GLuint index, const GLchar * name); +void GLTrace_glBindAttribLocation(GLuint program, GLuint index, const GLchar* name); void GLTrace_glBindBuffer(GLenum target, GLuint buffer); void GLTrace_glBindFramebuffer(GLenum target, GLuint framebuffer); void GLTrace_glBindRenderbuffer(GLenum target, GLuint renderbuffer); @@ -32,29 +32,29 @@ void GLTrace_glBlendColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alph void GLTrace_glBlendEquation(GLenum mode); void GLTrace_glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha); void GLTrace_glBlendFunc(GLenum sfactor, GLenum dfactor); -void GLTrace_glBlendFuncSeparate(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); -void GLTrace_glBufferData(GLenum target, GLsizeiptr size, const void * data, GLenum usage); -void GLTrace_glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const void * data); +void GLTrace_glBlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); +void GLTrace_glBufferData(GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage); +void GLTrace_glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data); GLenum GLTrace_glCheckFramebufferStatus(GLenum target); void GLTrace_glClear(GLbitfield mask); void GLTrace_glClearColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); -void GLTrace_glClearDepthf(GLfloat d); +void GLTrace_glClearDepthf(GLfloat depth); void GLTrace_glClearStencil(GLint s); void GLTrace_glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); void GLTrace_glCompileShader(GLuint shader); -void GLTrace_glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void * data); -void GLTrace_glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void * data); +void GLTrace_glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data); +void GLTrace_glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data); void GLTrace_glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); void GLTrace_glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); GLuint GLTrace_glCreateProgram(void); GLuint GLTrace_glCreateShader(GLenum type); void GLTrace_glCullFace(GLenum mode); -void GLTrace_glDeleteBuffers(GLsizei n, const GLuint * buffers); -void GLTrace_glDeleteFramebuffers(GLsizei n, const GLuint * framebuffers); +void GLTrace_glDeleteBuffers(GLsizei n, const GLuint* buffers); +void GLTrace_glDeleteFramebuffers(GLsizei n, const GLuint* framebuffers); void GLTrace_glDeleteProgram(GLuint program); -void GLTrace_glDeleteRenderbuffers(GLsizei n, const GLuint * renderbuffers); +void GLTrace_glDeleteRenderbuffers(GLsizei n, const GLuint* renderbuffers); void GLTrace_glDeleteShader(GLuint shader); -void GLTrace_glDeleteTextures(GLsizei n, const GLuint * textures); +void GLTrace_glDeleteTextures(GLsizei n, const GLuint* textures); void GLTrace_glDepthFunc(GLenum func); void GLTrace_glDepthMask(GLboolean flag); void GLTrace_glDepthRangef(GLfloat n, GLfloat f); @@ -62,7 +62,7 @@ void GLTrace_glDetachShader(GLuint program, GLuint shader); void GLTrace_glDisable(GLenum cap); void GLTrace_glDisableVertexAttribArray(GLuint index); void GLTrace_glDrawArrays(GLenum mode, GLint first, GLsizei count); -void GLTrace_glDrawElements(GLenum mode, GLsizei count, GLenum type, const void * indices); +void GLTrace_glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid* indices); void GLTrace_glEnable(GLenum cap); void GLTrace_glEnableVertexAttribArray(GLuint index); void GLTrace_glFinish(void); @@ -70,37 +70,37 @@ void GLTrace_glFlush(void); void GLTrace_glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); void GLTrace_glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); void GLTrace_glFrontFace(GLenum mode); -void GLTrace_glGenBuffers(GLsizei n, GLuint * buffers); +void GLTrace_glGenBuffers(GLsizei n, GLuint* buffers); void GLTrace_glGenerateMipmap(GLenum target); -void GLTrace_glGenFramebuffers(GLsizei n, GLuint * framebuffers); -void GLTrace_glGenRenderbuffers(GLsizei n, GLuint * renderbuffers); -void GLTrace_glGenTextures(GLsizei n, GLuint * textures); -void GLTrace_glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLint * size, GLenum * type, GLchar * name); -void GLTrace_glGetActiveUniform(GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLint * size, GLenum * type, GLchar * name); -void GLTrace_glGetAttachedShaders(GLuint program, GLsizei maxCount, GLsizei * count, GLuint * shaders); -GLint GLTrace_glGetAttribLocation(GLuint program, const GLchar * name); -void GLTrace_glGetBooleanv(GLenum pname, GLboolean * data); -void GLTrace_glGetBufferParameteriv(GLenum target, GLenum pname, GLint * params); +void GLTrace_glGenFramebuffers(GLsizei n, GLuint* framebuffers); +void GLTrace_glGenRenderbuffers(GLsizei n, GLuint* renderbuffers); +void GLTrace_glGenTextures(GLsizei n, GLuint* textures); +void GLTrace_glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name); +void GLTrace_glGetActiveUniform(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name); +void GLTrace_glGetAttachedShaders(GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders); +GLint GLTrace_glGetAttribLocation(GLuint program, const GLchar* name); +void GLTrace_glGetBooleanv(GLenum pname, GLboolean* params); +void GLTrace_glGetBufferParameteriv(GLenum target, GLenum pname, GLint* params); GLenum GLTrace_glGetError(void); -void GLTrace_glGetFloatv(GLenum pname, GLfloat * data); -void GLTrace_glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint * params); -void GLTrace_glGetIntegerv(GLenum pname, GLint * data); -void GLTrace_glGetProgramiv(GLuint program, GLenum pname, GLint * params); -void GLTrace_glGetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei * length, GLchar * infoLog); -void GLTrace_glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint * params); -void GLTrace_glGetShaderiv(GLuint shader, GLenum pname, GLint * params); -void GLTrace_glGetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei * length, GLchar * infoLog); -void GLTrace_glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint * range, GLint * precision); -void GLTrace_glGetShaderSource(GLuint shader, GLsizei bufSize, GLsizei * length, GLchar * source); -const GLubyte * GLTrace_glGetString(GLenum name); -void GLTrace_glGetTexParameterfv(GLenum target, GLenum pname, GLfloat * params); -void GLTrace_glGetTexParameteriv(GLenum target, GLenum pname, GLint * params); -void GLTrace_glGetUniformfv(GLuint program, GLint location, GLfloat * params); -void GLTrace_glGetUniformiv(GLuint program, GLint location, GLint * params); -GLint GLTrace_glGetUniformLocation(GLuint program, const GLchar * name); -void GLTrace_glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat * params); -void GLTrace_glGetVertexAttribiv(GLuint index, GLenum pname, GLint * params); -void GLTrace_glGetVertexAttribPointerv(GLuint index, GLenum pname, void ** pointer); +void GLTrace_glGetFloatv(GLenum pname, GLfloat* params); +void GLTrace_glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint* params); +void GLTrace_glGetIntegerv(GLenum pname, GLint* params); +void GLTrace_glGetProgramiv(GLuint program, GLenum pname, GLint* params); +void GLTrace_glGetProgramInfoLog(GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog); +void GLTrace_glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint* params); +void GLTrace_glGetShaderiv(GLuint shader, GLenum pname, GLint* params); +void GLTrace_glGetShaderInfoLog(GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog); +void GLTrace_glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision); +void GLTrace_glGetShaderSource(GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source); +const GLubyte* GLTrace_glGetString(GLenum name); +void GLTrace_glGetTexParameterfv(GLenum target, GLenum pname, GLfloat* params); +void GLTrace_glGetTexParameteriv(GLenum target, GLenum pname, GLint* params); +void GLTrace_glGetUniformfv(GLuint program, GLint location, GLfloat* params); +void GLTrace_glGetUniformiv(GLuint program, GLint location, GLint* params); +GLint GLTrace_glGetUniformLocation(GLuint program, const GLchar* name); +void GLTrace_glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat* params); +void GLTrace_glGetVertexAttribiv(GLuint index, GLenum pname, GLint* params); +void GLTrace_glGetVertexAttribPointerv(GLuint index, GLenum pname, GLvoid** pointer); void GLTrace_glHint(GLenum target, GLenum mode); GLboolean GLTrace_glIsBuffer(GLuint buffer); GLboolean GLTrace_glIsEnabled(GLenum cap); @@ -113,299 +113,246 @@ void GLTrace_glLineWidth(GLfloat width); void GLTrace_glLinkProgram(GLuint program); void GLTrace_glPixelStorei(GLenum pname, GLint param); void GLTrace_glPolygonOffset(GLfloat factor, GLfloat units); -void GLTrace_glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void * pixels); +void GLTrace_glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels); void GLTrace_glReleaseShaderCompiler(void); void GLTrace_glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height); void GLTrace_glSampleCoverage(GLfloat value, GLboolean invert); void GLTrace_glScissor(GLint x, GLint y, GLsizei width, GLsizei height); -void GLTrace_glShaderBinary(GLsizei count, const GLuint * shaders, GLenum binaryformat, const void * binary, GLsizei length); -void GLTrace_glShaderSource(GLuint shader, GLsizei count, const GLchar *const* string, const GLint * length); +void GLTrace_glShaderBinary(GLsizei n, const GLuint* shaders, GLenum binaryformat, const GLvoid* binary, GLsizei length); +void GLTrace_glShaderSource(GLuint shader, GLsizei count, const GLchar* const* string, const GLint* length); void GLTrace_glStencilFunc(GLenum func, GLint ref, GLuint mask); void GLTrace_glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask); void GLTrace_glStencilMask(GLuint mask); void GLTrace_glStencilMaskSeparate(GLenum face, GLuint mask); void GLTrace_glStencilOp(GLenum fail, GLenum zfail, GLenum zpass); -void GLTrace_glStencilOpSeparate(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); -void GLTrace_glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void * pixels); +void GLTrace_glStencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass); +void GLTrace_glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* pixels); void GLTrace_glTexParameterf(GLenum target, GLenum pname, GLfloat param); -void GLTrace_glTexParameterfv(GLenum target, GLenum pname, const GLfloat * params); +void GLTrace_glTexParameterfv(GLenum target, GLenum pname, const GLfloat* params); void GLTrace_glTexParameteri(GLenum target, GLenum pname, GLint param); -void GLTrace_glTexParameteriv(GLenum target, GLenum pname, const GLint * params); -void GLTrace_glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void * pixels); -void GLTrace_glUniform1f(GLint location, GLfloat v0); -void GLTrace_glUniform1fv(GLint location, GLsizei count, const GLfloat * value); -void GLTrace_glUniform1i(GLint location, GLint v0); -void GLTrace_glUniform1iv(GLint location, GLsizei count, const GLint * value); -void GLTrace_glUniform2f(GLint location, GLfloat v0, GLfloat v1); -void GLTrace_glUniform2fv(GLint location, GLsizei count, const GLfloat * value); -void GLTrace_glUniform2i(GLint location, GLint v0, GLint v1); -void GLTrace_glUniform2iv(GLint location, GLsizei count, const GLint * value); -void GLTrace_glUniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2); -void GLTrace_glUniform3fv(GLint location, GLsizei count, const GLfloat * value); -void GLTrace_glUniform3i(GLint location, GLint v0, GLint v1, GLint v2); -void GLTrace_glUniform3iv(GLint location, GLsizei count, const GLint * value); -void GLTrace_glUniform4f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); -void GLTrace_glUniform4fv(GLint location, GLsizei count, const GLfloat * value); -void GLTrace_glUniform4i(GLint location, GLint v0, GLint v1, GLint v2, GLint v3); -void GLTrace_glUniform4iv(GLint location, GLsizei count, const GLint * value); -void GLTrace_glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -void GLTrace_glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -void GLTrace_glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); +void GLTrace_glTexParameteriv(GLenum target, GLenum pname, const GLint* params); +void GLTrace_glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* pixels); +void GLTrace_glUniform1f(GLint location, GLfloat x); +void GLTrace_glUniform1fv(GLint location, GLsizei count, const GLfloat* v); +void GLTrace_glUniform1i(GLint location, GLint x); +void GLTrace_glUniform1iv(GLint location, GLsizei count, const GLint* v); +void GLTrace_glUniform2f(GLint location, GLfloat x, GLfloat y); +void GLTrace_glUniform2fv(GLint location, GLsizei count, const GLfloat* v); +void GLTrace_glUniform2i(GLint location, GLint x, GLint y); +void GLTrace_glUniform2iv(GLint location, GLsizei count, const GLint* v); +void GLTrace_glUniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z); +void GLTrace_glUniform3fv(GLint location, GLsizei count, const GLfloat* v); +void GLTrace_glUniform3i(GLint location, GLint x, GLint y, GLint z); +void GLTrace_glUniform3iv(GLint location, GLsizei count, const GLint* v); +void GLTrace_glUniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +void GLTrace_glUniform4fv(GLint location, GLsizei count, const GLfloat* v); +void GLTrace_glUniform4i(GLint location, GLint x, GLint y, GLint z, GLint w); +void GLTrace_glUniform4iv(GLint location, GLsizei count, const GLint* v); +void GLTrace_glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +void GLTrace_glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +void GLTrace_glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); void GLTrace_glUseProgram(GLuint program); void GLTrace_glValidateProgram(GLuint program); -void GLTrace_glVertexAttrib1f(GLuint index, GLfloat x); -void GLTrace_glVertexAttrib1fv(GLuint index, const GLfloat * v); -void GLTrace_glVertexAttrib2f(GLuint index, GLfloat x, GLfloat y); -void GLTrace_glVertexAttrib2fv(GLuint index, const GLfloat * v); -void GLTrace_glVertexAttrib3f(GLuint index, GLfloat x, GLfloat y, GLfloat z); -void GLTrace_glVertexAttrib3fv(GLuint index, const GLfloat * v); -void GLTrace_glVertexAttrib4f(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -void GLTrace_glVertexAttrib4fv(GLuint index, const GLfloat * v); -void GLTrace_glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void * pointer); +void GLTrace_glVertexAttrib1f(GLuint indx, GLfloat x); +void GLTrace_glVertexAttrib1fv(GLuint indx, const GLfloat* values); +void GLTrace_glVertexAttrib2f(GLuint indx, GLfloat x, GLfloat y); +void GLTrace_glVertexAttrib2fv(GLuint indx, const GLfloat* values); +void GLTrace_glVertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z); +void GLTrace_glVertexAttrib3fv(GLuint indx, const GLfloat* values); +void GLTrace_glVertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +void GLTrace_glVertexAttrib4fv(GLuint indx, const GLfloat* values); +void GLTrace_glVertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid* ptr); void GLTrace_glViewport(GLint x, GLint y, GLsizei width, GLsizei height); void GLTrace_glReadBuffer(GLenum mode); -void GLTrace_glDrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void * indices); -void GLTrace_glTexImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void * pixels); -void GLTrace_glTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void * pixels); +void GLTrace_glDrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid* indices); +void GLTrace_glTexImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid* pixels); +void GLTrace_glTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid* pixels); void GLTrace_glCopyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -void GLTrace_glCompressedTexImage3D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void * data); -void GLTrace_glCompressedTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void * data); -void GLTrace_glGenQueries(GLsizei n, GLuint * ids); -void GLTrace_glDeleteQueries(GLsizei n, const GLuint * ids); +void GLTrace_glCompressedTexImage3D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid* data); +void GLTrace_glCompressedTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid* data); +void GLTrace_glGenQueries(GLsizei n, GLuint* ids); +void GLTrace_glDeleteQueries(GLsizei n, const GLuint* ids); GLboolean GLTrace_glIsQuery(GLuint id); void GLTrace_glBeginQuery(GLenum target, GLuint id); void GLTrace_glEndQuery(GLenum target); -void GLTrace_glGetQueryiv(GLenum target, GLenum pname, GLint * params); -void GLTrace_glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint * params); +void GLTrace_glGetQueryiv(GLenum target, GLenum pname, GLint* params); +void GLTrace_glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint* params); GLboolean GLTrace_glUnmapBuffer(GLenum target); -void GLTrace_glGetBufferPointerv(GLenum target, GLenum pname, void ** params); -void GLTrace_glDrawBuffers(GLsizei n, const GLenum * bufs); -void GLTrace_glUniformMatrix2x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -void GLTrace_glUniformMatrix3x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -void GLTrace_glUniformMatrix2x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -void GLTrace_glUniformMatrix4x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -void GLTrace_glUniformMatrix3x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -void GLTrace_glUniformMatrix4x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); +void GLTrace_glGetBufferPointerv(GLenum target, GLenum pname, GLvoid** params); +void GLTrace_glDrawBuffers(GLsizei n, const GLenum* bufs); +void GLTrace_glUniformMatrix2x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +void GLTrace_glUniformMatrix3x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +void GLTrace_glUniformMatrix2x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +void GLTrace_glUniformMatrix4x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +void GLTrace_glUniformMatrix3x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +void GLTrace_glUniformMatrix4x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); void GLTrace_glBlitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); void GLTrace_glRenderbufferStorageMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); void GLTrace_glFramebufferTextureLayer(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); -void * GLTrace_glMapBufferRange(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access); +GLvoid* GLTrace_glMapBufferRange(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access); void GLTrace_glFlushMappedBufferRange(GLenum target, GLintptr offset, GLsizeiptr length); void GLTrace_glBindVertexArray(GLuint array); -void GLTrace_glDeleteVertexArrays(GLsizei n, const GLuint * arrays); -void GLTrace_glGenVertexArrays(GLsizei n, GLuint * arrays); +void GLTrace_glDeleteVertexArrays(GLsizei n, const GLuint* arrays); +void GLTrace_glGenVertexArrays(GLsizei n, GLuint* arrays); GLboolean GLTrace_glIsVertexArray(GLuint array); -void GLTrace_glGetIntegeri_v(GLenum target, GLuint index, GLint * data); +void GLTrace_glGetIntegeri_v(GLenum target, GLuint index, GLint* data); void GLTrace_glBeginTransformFeedback(GLenum primitiveMode); void GLTrace_glEndTransformFeedback(void); void GLTrace_glBindBufferRange(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); void GLTrace_glBindBufferBase(GLenum target, GLuint index, GLuint buffer); -void GLTrace_glTransformFeedbackVaryings(GLuint program, GLsizei count, const GLchar *const* varyings, GLenum bufferMode); -void GLTrace_glGetTransformFeedbackVarying(GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLsizei * size, GLenum * type, GLchar * name); -void GLTrace_glVertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei stride, const void * pointer); -void GLTrace_glGetVertexAttribIiv(GLuint index, GLenum pname, GLint * params); -void GLTrace_glGetVertexAttribIuiv(GLuint index, GLenum pname, GLuint * params); +void GLTrace_glTransformFeedbackVaryings(GLuint program, GLsizei count, const GLchar* const* varyings, GLenum bufferMode); +void GLTrace_glGetTransformFeedbackVarying(GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLsizei* size, GLenum* type, GLchar* name); +void GLTrace_glVertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid* pointer); +void GLTrace_glGetVertexAttribIiv(GLuint index, GLenum pname, GLint* params); +void GLTrace_glGetVertexAttribIuiv(GLuint index, GLenum pname, GLuint* params); void GLTrace_glVertexAttribI4i(GLuint index, GLint x, GLint y, GLint z, GLint w); void GLTrace_glVertexAttribI4ui(GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -void GLTrace_glVertexAttribI4iv(GLuint index, const GLint * v); -void GLTrace_glVertexAttribI4uiv(GLuint index, const GLuint * v); -void GLTrace_glGetUniformuiv(GLuint program, GLint location, GLuint * params); -GLint GLTrace_glGetFragDataLocation(GLuint program, const GLchar * name); +void GLTrace_glVertexAttribI4iv(GLuint index, const GLint* v); +void GLTrace_glVertexAttribI4uiv(GLuint index, const GLuint* v); +void GLTrace_glGetUniformuiv(GLuint program, GLint location, GLuint* params); +GLint GLTrace_glGetFragDataLocation(GLuint program, const GLchar *name); void GLTrace_glUniform1ui(GLint location, GLuint v0); void GLTrace_glUniform2ui(GLint location, GLuint v0, GLuint v1); void GLTrace_glUniform3ui(GLint location, GLuint v0, GLuint v1, GLuint v2); void GLTrace_glUniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); -void GLTrace_glUniform1uiv(GLint location, GLsizei count, const GLuint * value); -void GLTrace_glUniform2uiv(GLint location, GLsizei count, const GLuint * value); -void GLTrace_glUniform3uiv(GLint location, GLsizei count, const GLuint * value); -void GLTrace_glUniform4uiv(GLint location, GLsizei count, const GLuint * value); -void GLTrace_glClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint * value); -void GLTrace_glClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint * value); -void GLTrace_glClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat * value); +void GLTrace_glUniform1uiv(GLint location, GLsizei count, const GLuint* value); +void GLTrace_glUniform2uiv(GLint location, GLsizei count, const GLuint* value); +void GLTrace_glUniform3uiv(GLint location, GLsizei count, const GLuint* value); +void GLTrace_glUniform4uiv(GLint location, GLsizei count, const GLuint* value); +void GLTrace_glClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint* value); +void GLTrace_glClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint* value); +void GLTrace_glClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat* value); void GLTrace_glClearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil); -const GLubyte * GLTrace_glGetStringi(GLenum name, GLuint index); +const GLubyte* GLTrace_glGetStringi(GLenum name, GLuint index); void GLTrace_glCopyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); -void GLTrace_glGetUniformIndices(GLuint program, GLsizei uniformCount, const GLchar *const* uniformNames, GLuint * uniformIndices); -void GLTrace_glGetActiveUniformsiv(GLuint program, GLsizei uniformCount, const GLuint * uniformIndices, GLenum pname, GLint * params); -GLuint GLTrace_glGetUniformBlockIndex(GLuint program, const GLchar * uniformBlockName); -void GLTrace_glGetActiveUniformBlockiv(GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint * params); -void GLTrace_glGetActiveUniformBlockName(GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei * length, GLchar * uniformBlockName); +void GLTrace_glGetUniformIndices(GLuint program, GLsizei uniformCount, const GLchar* const* uniformNames, GLuint* uniformIndices); +void GLTrace_glGetActiveUniformsiv(GLuint program, GLsizei uniformCount, const GLuint* uniformIndices, GLenum pname, GLint* params); +GLuint GLTrace_glGetUniformBlockIndex(GLuint program, const GLchar* uniformBlockName); +void GLTrace_glGetActiveUniformBlockiv(GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint* params); +void GLTrace_glGetActiveUniformBlockName(GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei* length, GLchar* uniformBlockName); void GLTrace_glUniformBlockBinding(GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding); -void GLTrace_glDrawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsizei instancecount); -void GLTrace_glDrawElementsInstanced(GLenum mode, GLsizei count, GLenum type, const void * indices, GLsizei instancecount); +void GLTrace_glDrawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsizei instanceCount); +void GLTrace_glDrawElementsInstanced(GLenum mode, GLsizei count, GLenum type, const GLvoid* indices, GLsizei instanceCount); GLsync GLTrace_glFenceSync(GLenum condition, GLbitfield flags); GLboolean GLTrace_glIsSync(GLsync sync); void GLTrace_glDeleteSync(GLsync sync); GLenum GLTrace_glClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout); void GLTrace_glWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout); -void GLTrace_glGetInteger64v(GLenum pname, GLint64 * data); -void GLTrace_glGetSynciv(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei * length, GLint * values); -void GLTrace_glGetInteger64i_v(GLenum target, GLuint index, GLint64 * data); -void GLTrace_glGetBufferParameteri64v(GLenum target, GLenum pname, GLint64 * params); -void GLTrace_glGenSamplers(GLsizei count, GLuint * samplers); -void GLTrace_glDeleteSamplers(GLsizei count, const GLuint * samplers); +void GLTrace_glGetInteger64v(GLenum pname, GLint64* params); +void GLTrace_glGetSynciv(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei* length, GLint* values); +void GLTrace_glGetInteger64i_v(GLenum target, GLuint index, GLint64* data); +void GLTrace_glGetBufferParameteri64v(GLenum target, GLenum pname, GLint64* params); +void GLTrace_glGenSamplers(GLsizei count, GLuint* samplers); +void GLTrace_glDeleteSamplers(GLsizei count, const GLuint* samplers); GLboolean GLTrace_glIsSampler(GLuint sampler); void GLTrace_glBindSampler(GLuint unit, GLuint sampler); void GLTrace_glSamplerParameteri(GLuint sampler, GLenum pname, GLint param); -void GLTrace_glSamplerParameteriv(GLuint sampler, GLenum pname, const GLint * param); +void GLTrace_glSamplerParameteriv(GLuint sampler, GLenum pname, const GLint* param); void GLTrace_glSamplerParameterf(GLuint sampler, GLenum pname, GLfloat param); -void GLTrace_glSamplerParameterfv(GLuint sampler, GLenum pname, const GLfloat * param); -void GLTrace_glGetSamplerParameteriv(GLuint sampler, GLenum pname, GLint * params); -void GLTrace_glGetSamplerParameterfv(GLuint sampler, GLenum pname, GLfloat * params); +void GLTrace_glSamplerParameterfv(GLuint sampler, GLenum pname, const GLfloat* param); +void GLTrace_glGetSamplerParameteriv(GLuint sampler, GLenum pname, GLint* params); +void GLTrace_glGetSamplerParameterfv(GLuint sampler, GLenum pname, GLfloat* params); void GLTrace_glVertexAttribDivisor(GLuint index, GLuint divisor); void GLTrace_glBindTransformFeedback(GLenum target, GLuint id); -void GLTrace_glDeleteTransformFeedbacks(GLsizei n, const GLuint * ids); -void GLTrace_glGenTransformFeedbacks(GLsizei n, GLuint * ids); +void GLTrace_glDeleteTransformFeedbacks(GLsizei n, const GLuint* ids); +void GLTrace_glGenTransformFeedbacks(GLsizei n, GLuint* ids); GLboolean GLTrace_glIsTransformFeedback(GLuint id); void GLTrace_glPauseTransformFeedback(void); void GLTrace_glResumeTransformFeedback(void); -void GLTrace_glGetProgramBinary(GLuint program, GLsizei bufSize, GLsizei * length, GLenum * binaryFormat, void * binary); -void GLTrace_glProgramBinary(GLuint program, GLenum binaryFormat, const void * binary, GLsizei length); +void GLTrace_glGetProgramBinary(GLuint program, GLsizei bufSize, GLsizei* length, GLenum* binaryFormat, GLvoid* binary); +void GLTrace_glProgramBinary(GLuint program, GLenum binaryFormat, const GLvoid* binary, GLsizei length); void GLTrace_glProgramParameteri(GLuint program, GLenum pname, GLint value); -void GLTrace_glInvalidateFramebuffer(GLenum target, GLsizei numAttachments, const GLenum * attachments); -void GLTrace_glInvalidateSubFramebuffer(GLenum target, GLsizei numAttachments, const GLenum * attachments, GLint x, GLint y, GLsizei width, GLsizei height); +void GLTrace_glInvalidateFramebuffer(GLenum target, GLsizei numAttachments, const GLenum* attachments); +void GLTrace_glInvalidateSubFramebuffer(GLenum target, GLsizei numAttachments, const GLenum* attachments, GLint x, GLint y, GLsizei width, GLsizei height); void GLTrace_glTexStorage2D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); void GLTrace_glTexStorage3D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); -void GLTrace_glGetInternalformativ(GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint * params); +void GLTrace_glGetInternalformativ(GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint* params); // Declarations for GL2Ext APIs -void GLTrace_glBlendBarrierKHR(void); -void GLTrace_glDebugMessageControlKHR(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint * ids, GLboolean enabled); -void GLTrace_glDebugMessageInsertKHR(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar * buf); -void GLTrace_glDebugMessageCallbackKHR(GLDEBUGPROCKHR callback, const void * userParam); -GLuint GLTrace_glGetDebugMessageLogKHR(GLuint count, GLsizei bufSize, GLenum * sources, GLenum * types, GLuint * ids, GLenum * severities, GLsizei * lengths, GLchar * messageLog); -void GLTrace_glPushDebugGroupKHR(GLenum source, GLuint id, GLsizei length, const GLchar * message); -void GLTrace_glPopDebugGroupKHR(void); -void GLTrace_glObjectLabelKHR(GLenum identifier, GLuint name, GLsizei length, const GLchar * label); -void GLTrace_glGetObjectLabelKHR(GLenum identifier, GLuint name, GLsizei bufSize, GLsizei * length, GLchar * label); -void GLTrace_glObjectPtrLabelKHR(const void * ptr, GLsizei length, const GLchar * label); -void GLTrace_glGetObjectPtrLabelKHR(const void * ptr, GLsizei bufSize, GLsizei * length, GLchar * label); -void GLTrace_glGetPointervKHR(GLenum pname, void ** params); void GLTrace_glEGLImageTargetTexture2DOES(GLenum target, GLeglImageOES image); void GLTrace_glEGLImageTargetRenderbufferStorageOES(GLenum target, GLeglImageOES image); -void GLTrace_glGetProgramBinaryOES(GLuint program, GLsizei bufSize, GLsizei * length, GLenum * binaryFormat, void * binary); -void GLTrace_glProgramBinaryOES(GLuint program, GLenum binaryFormat, const void * binary, GLint length); -void * GLTrace_glMapBufferOES(GLenum target, GLenum access); +void GLTrace_glGetProgramBinaryOES(GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary); +void GLTrace_glProgramBinaryOES(GLuint program, GLenum binaryFormat, const GLvoid *binary, GLint length); +void* GLTrace_glMapBufferOES(GLenum target, GLenum access); GLboolean GLTrace_glUnmapBufferOES(GLenum target); -void GLTrace_glGetBufferPointervOES(GLenum target, GLenum pname, void ** params); -void GLTrace_glMinSampleShadingOES(GLfloat value); -void GLTrace_glTexImage3DOES(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void * pixels); -void GLTrace_glTexSubImage3DOES(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void * pixels); +void GLTrace_glGetBufferPointervOES(GLenum target, GLenum pname, GLvoid** params); +void GLTrace_glTexImage3DOES(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid* pixels); +void GLTrace_glTexSubImage3DOES(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid* pixels); void GLTrace_glCopyTexSubImage3DOES(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -void GLTrace_glCompressedTexImage3DOES(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void * data); -void GLTrace_glCompressedTexSubImage3DOES(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void * data); +void GLTrace_glCompressedTexImage3DOES(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid* data); +void GLTrace_glCompressedTexSubImage3DOES(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid* data); void GLTrace_glFramebufferTexture3DOES(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); -void GLTrace_glTexStorage3DMultisampleOES(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); void GLTrace_glBindVertexArrayOES(GLuint array); -void GLTrace_glDeleteVertexArraysOES(GLsizei n, const GLuint * arrays); -void GLTrace_glGenVertexArraysOES(GLsizei n, GLuint * arrays); +void GLTrace_glDeleteVertexArraysOES(GLsizei n, const GLuint *arrays); +void GLTrace_glGenVertexArraysOES(GLsizei n, GLuint *arrays); GLboolean GLTrace_glIsVertexArrayOES(GLuint array); -void GLTrace_glGetPerfMonitorGroupsAMD(GLint * numGroups, GLsizei groupsSize, GLuint * groups); -void GLTrace_glGetPerfMonitorCountersAMD(GLuint group, GLint * numCounters, GLint * maxActiveCounters, GLsizei counterSize, GLuint * counters); -void GLTrace_glGetPerfMonitorGroupStringAMD(GLuint group, GLsizei bufSize, GLsizei * length, GLchar * groupString); -void GLTrace_glGetPerfMonitorCounterStringAMD(GLuint group, GLuint counter, GLsizei bufSize, GLsizei * length, GLchar * counterString); -void GLTrace_glGetPerfMonitorCounterInfoAMD(GLuint group, GLuint counter, GLenum pname, void * data); -void GLTrace_glGenPerfMonitorsAMD(GLsizei n, GLuint * monitors); -void GLTrace_glDeletePerfMonitorsAMD(GLsizei n, GLuint * monitors); -void GLTrace_glSelectPerfMonitorCountersAMD(GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint * counterList); +void GLTrace_glGetPerfMonitorGroupsAMD(GLint *numGroups, GLsizei groupsSize, GLuint *groups); +void GLTrace_glGetPerfMonitorCountersAMD(GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters); +void GLTrace_glGetPerfMonitorGroupStringAMD(GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString); +void GLTrace_glGetPerfMonitorCounterStringAMD(GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString); +void GLTrace_glGetPerfMonitorCounterInfoAMD(GLuint group, GLuint counter, GLenum pname, GLvoid *data); +void GLTrace_glGenPerfMonitorsAMD(GLsizei n, GLuint *monitors); +void GLTrace_glDeletePerfMonitorsAMD(GLsizei n, GLuint *monitors); +void GLTrace_glSelectPerfMonitorCountersAMD(GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *countersList); void GLTrace_glBeginPerfMonitorAMD(GLuint monitor); void GLTrace_glEndPerfMonitorAMD(GLuint monitor); -void GLTrace_glGetPerfMonitorCounterDataAMD(GLuint monitor, GLenum pname, GLsizei dataSize, GLuint * data, GLint * bytesWritten); +void GLTrace_glGetPerfMonitorCounterDataAMD(GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten); void GLTrace_glBlitFramebufferANGLE(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); void GLTrace_glRenderbufferStorageMultisampleANGLE(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); -void GLTrace_glDrawArraysInstancedANGLE(GLenum mode, GLint first, GLsizei count, GLsizei primcount); -void GLTrace_glDrawElementsInstancedANGLE(GLenum mode, GLsizei count, GLenum type, const void * indices, GLsizei primcount); -void GLTrace_glVertexAttribDivisorANGLE(GLuint index, GLuint divisor); -void GLTrace_glGetTranslatedShaderSourceANGLE(GLuint shader, GLsizei bufsize, GLsizei * length, GLchar * source); -void GLTrace_glCopyTextureLevelsAPPLE(GLuint destinationTexture, GLuint sourceTexture, GLint sourceBaseLevel, GLsizei sourceLevelCount); void GLTrace_glRenderbufferStorageMultisampleAPPLE(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); void GLTrace_glResolveMultisampleFramebufferAPPLE(void); -GLsync GLTrace_glFenceSyncAPPLE(GLenum condition, GLbitfield flags); -GLboolean GLTrace_glIsSyncAPPLE(GLsync sync); -void GLTrace_glDeleteSyncAPPLE(GLsync sync); -GLenum GLTrace_glClientWaitSyncAPPLE(GLsync sync, GLbitfield flags, GLuint64 timeout); -void GLTrace_glWaitSyncAPPLE(GLsync sync, GLbitfield flags, GLuint64 timeout); -void GLTrace_glGetInteger64vAPPLE(GLenum pname, GLint64 * params); -void GLTrace_glGetSyncivAPPLE(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei * length, GLint * values); -void GLTrace_glLabelObjectEXT(GLenum type, GLuint object, GLsizei length, const GLchar * label); -void GLTrace_glGetObjectLabelEXT(GLenum type, GLuint object, GLsizei bufSize, GLsizei * length, GLchar * label); -void GLTrace_glInsertEventMarkerEXT(GLsizei length, const GLchar * marker); -void GLTrace_glPushGroupMarkerEXT(GLsizei length, const GLchar * marker); +void GLTrace_glLabelObjectEXT(GLenum type, GLuint object, GLsizei length, const GLchar *label); +void GLTrace_glGetObjectLabelEXT(GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label); +void GLTrace_glInsertEventMarkerEXT(GLsizei length, const GLchar *marker); +void GLTrace_glPushGroupMarkerEXT(GLsizei length, const GLchar *marker); void GLTrace_glPopGroupMarkerEXT(void); -void GLTrace_glDiscardFramebufferEXT(GLenum target, GLsizei numAttachments, const GLenum * attachments); -void GLTrace_glGenQueriesEXT(GLsizei n, GLuint * ids); -void GLTrace_glDeleteQueriesEXT(GLsizei n, const GLuint * ids); +void GLTrace_glDiscardFramebufferEXT(GLenum target, GLsizei numAttachments, const GLenum *attachments); +void GLTrace_glRenderbufferStorageMultisampleEXT(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); +void GLTrace_glFramebufferTexture2DMultisampleEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples); +void GLTrace_glMultiDrawArraysEXT(GLenum mode, GLint *first, GLsizei *count, GLsizei primcount); +void GLTrace_glMultiDrawElementsEXT(GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount); +void GLTrace_glGenQueriesEXT(GLsizei n, GLuint *ids); +void GLTrace_glDeleteQueriesEXT(GLsizei n, const GLuint *ids); GLboolean GLTrace_glIsQueryEXT(GLuint id); void GLTrace_glBeginQueryEXT(GLenum target, GLuint id); void GLTrace_glEndQueryEXT(GLenum target); -void GLTrace_glQueryCounterEXT(GLuint id, GLenum target); -void GLTrace_glGetQueryivEXT(GLenum target, GLenum pname, GLint * params); -void GLTrace_glGetQueryObjectivEXT(GLuint id, GLenum pname, GLint * params); -void GLTrace_glGetQueryObjectuivEXT(GLuint id, GLenum pname, GLuint * params); -void GLTrace_glGetQueryObjecti64vEXT(GLuint id, GLenum pname, GLint64 * params); -void GLTrace_glGetQueryObjectui64vEXT(GLuint id, GLenum pname, GLuint64 * params); -void GLTrace_glDrawBuffersEXT(GLsizei n, const GLenum * bufs); -void GLTrace_glDrawArraysInstancedEXT(GLenum mode, GLint start, GLsizei count, GLsizei primcount); -void GLTrace_glDrawElementsInstancedEXT(GLenum mode, GLsizei count, GLenum type, const void * indices, GLsizei primcount); -void GLTrace_glVertexAttribDivisorEXT(GLuint index, GLuint divisor); -void * GLTrace_glMapBufferRangeEXT(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access); -void GLTrace_glFlushMappedBufferRangeEXT(GLenum target, GLintptr offset, GLsizeiptr length); -void GLTrace_glMultiDrawArraysEXT(GLenum mode, const GLint * first, const GLsizei * count, GLsizei primcount); -void GLTrace_glMultiDrawElementsEXT(GLenum mode, const GLsizei * count, GLenum type, const void *const* indices, GLsizei primcount); -void GLTrace_glRenderbufferStorageMultisampleEXT(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); -void GLTrace_glFramebufferTexture2DMultisampleEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples); -void GLTrace_glReadBufferIndexedEXT(GLenum src, GLint index); -void GLTrace_glDrawBuffersIndexedEXT(GLint n, const GLenum * location, const GLint * indices); -void GLTrace_glGetIntegeri_vEXT(GLenum target, GLuint index, GLint * data); +void GLTrace_glGetQueryivEXT(GLenum target, GLenum pname, GLint *params); +void GLTrace_glGetQueryObjectuivEXT(GLuint id, GLenum pname, GLuint *params); GLenum GLTrace_glGetGraphicsResetStatusEXT(void); -void GLTrace_glReadnPixelsEXT(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void * data); -void GLTrace_glGetnUniformfvEXT(GLuint program, GLint location, GLsizei bufSize, GLfloat * params); -void GLTrace_glGetnUniformivEXT(GLuint program, GLint location, GLsizei bufSize, GLint * params); +void GLTrace_glReadnPixelsEXT(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data); +void GLTrace_glGetnUniformfvEXT(GLuint program, GLint location, GLsizei bufSize, float *params); +void GLTrace_glGetnUniformivEXT(GLuint program, GLint location, GLsizei bufSize, GLint *params); +void GLTrace_glUseProgramStagesEXT(GLuint pipeline, GLbitfield stages, GLuint program); void GLTrace_glActiveShaderProgramEXT(GLuint pipeline, GLuint program); +GLuint GLTrace_glCreateShaderProgramvEXT(GLenum type, GLsizei count, const GLchar **strings); void GLTrace_glBindProgramPipelineEXT(GLuint pipeline); -GLuint GLTrace_glCreateShaderProgramvEXT(GLenum type, GLsizei count, const GLchar ** strings); -void GLTrace_glDeleteProgramPipelinesEXT(GLsizei n, const GLuint * pipelines); -void GLTrace_glGenProgramPipelinesEXT(GLsizei n, GLuint * pipelines); -void GLTrace_glGetProgramPipelineInfoLogEXT(GLuint pipeline, GLsizei bufSize, GLsizei * length, GLchar * infoLog); -void GLTrace_glGetProgramPipelineivEXT(GLuint pipeline, GLenum pname, GLint * params); +void GLTrace_glDeleteProgramPipelinesEXT(GLsizei n, const GLuint *pipelines); +void GLTrace_glGenProgramPipelinesEXT(GLsizei n, GLuint *pipelines); GLboolean GLTrace_glIsProgramPipelineEXT(GLuint pipeline); void GLTrace_glProgramParameteriEXT(GLuint program, GLenum pname, GLint value); -void GLTrace_glProgramUniform1fEXT(GLuint program, GLint location, GLfloat v0); -void GLTrace_glProgramUniform1fvEXT(GLuint program, GLint location, GLsizei count, const GLfloat * value); -void GLTrace_glProgramUniform1iEXT(GLuint program, GLint location, GLint v0); -void GLTrace_glProgramUniform1ivEXT(GLuint program, GLint location, GLsizei count, const GLint * value); -void GLTrace_glProgramUniform2fEXT(GLuint program, GLint location, GLfloat v0, GLfloat v1); -void GLTrace_glProgramUniform2fvEXT(GLuint program, GLint location, GLsizei count, const GLfloat * value); -void GLTrace_glProgramUniform2iEXT(GLuint program, GLint location, GLint v0, GLint v1); -void GLTrace_glProgramUniform2ivEXT(GLuint program, GLint location, GLsizei count, const GLint * value); -void GLTrace_glProgramUniform3fEXT(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); -void GLTrace_glProgramUniform3fvEXT(GLuint program, GLint location, GLsizei count, const GLfloat * value); -void GLTrace_glProgramUniform3iEXT(GLuint program, GLint location, GLint v0, GLint v1, GLint v2); -void GLTrace_glProgramUniform3ivEXT(GLuint program, GLint location, GLsizei count, const GLint * value); -void GLTrace_glProgramUniform4fEXT(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); -void GLTrace_glProgramUniform4fvEXT(GLuint program, GLint location, GLsizei count, const GLfloat * value); -void GLTrace_glProgramUniform4iEXT(GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); -void GLTrace_glProgramUniform4ivEXT(GLuint program, GLint location, GLsizei count, const GLint * value); -void GLTrace_glProgramUniformMatrix2fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -void GLTrace_glProgramUniformMatrix3fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -void GLTrace_glProgramUniformMatrix4fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -void GLTrace_glUseProgramStagesEXT(GLuint pipeline, GLbitfield stages, GLuint program); +void GLTrace_glGetProgramPipelineivEXT(GLuint pipeline, GLenum pname, GLint *params); +void GLTrace_glProgramUniform1iEXT(GLuint program, GLint location, GLint x); +void GLTrace_glProgramUniform2iEXT(GLuint program, GLint location, GLint x, GLint y); +void GLTrace_glProgramUniform3iEXT(GLuint program, GLint location, GLint x, GLint y, GLint z); +void GLTrace_glProgramUniform4iEXT(GLuint program, GLint location, GLint x, GLint y, GLint z, GLint w); +void GLTrace_glProgramUniform1fEXT(GLuint program, GLint location, GLfloat x); +void GLTrace_glProgramUniform2fEXT(GLuint program, GLint location, GLfloat x, GLfloat y); +void GLTrace_glProgramUniform3fEXT(GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z); +void GLTrace_glProgramUniform4fEXT(GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +void GLTrace_glProgramUniform1ivEXT(GLuint program, GLint location, GLsizei count, const GLint *value); +void GLTrace_glProgramUniform2ivEXT(GLuint program, GLint location, GLsizei count, const GLint *value); +void GLTrace_glProgramUniform3ivEXT(GLuint program, GLint location, GLsizei count, const GLint *value); +void GLTrace_glProgramUniform4ivEXT(GLuint program, GLint location, GLsizei count, const GLint *value); +void GLTrace_glProgramUniform1fvEXT(GLuint program, GLint location, GLsizei count, const GLfloat *value); +void GLTrace_glProgramUniform2fvEXT(GLuint program, GLint location, GLsizei count, const GLfloat *value); +void GLTrace_glProgramUniform3fvEXT(GLuint program, GLint location, GLsizei count, const GLfloat *value); +void GLTrace_glProgramUniform4fvEXT(GLuint program, GLint location, GLsizei count, const GLfloat *value); +void GLTrace_glProgramUniformMatrix2fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +void GLTrace_glProgramUniformMatrix3fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +void GLTrace_glProgramUniformMatrix4fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); void GLTrace_glValidateProgramPipelineEXT(GLuint pipeline); -void GLTrace_glProgramUniform1uiEXT(GLuint program, GLint location, GLuint v0); -void GLTrace_glProgramUniform2uiEXT(GLuint program, GLint location, GLuint v0, GLuint v1); -void GLTrace_glProgramUniform3uiEXT(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); -void GLTrace_glProgramUniform4uiEXT(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); -void GLTrace_glProgramUniform1uivEXT(GLuint program, GLint location, GLsizei count, const GLuint * value); -void GLTrace_glProgramUniform2uivEXT(GLuint program, GLint location, GLsizei count, const GLuint * value); -void GLTrace_glProgramUniform3uivEXT(GLuint program, GLint location, GLsizei count, const GLuint * value); -void GLTrace_glProgramUniform4uivEXT(GLuint program, GLint location, GLsizei count, const GLuint * value); -void GLTrace_glProgramUniformMatrix2x3fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -void GLTrace_glProgramUniformMatrix3x2fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -void GLTrace_glProgramUniformMatrix2x4fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -void GLTrace_glProgramUniformMatrix4x2fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -void GLTrace_glProgramUniformMatrix3x4fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -void GLTrace_glProgramUniformMatrix4x3fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); +void GLTrace_glGetProgramPipelineInfoLogEXT(GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog); void GLTrace_glTexStorage1DEXT(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); void GLTrace_glTexStorage2DEXT(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); void GLTrace_glTexStorage3DEXT(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); @@ -414,132 +361,108 @@ void GLTrace_glTextureStorage2DEXT(GLuint texture, GLenum target, GLsizei levels void GLTrace_glTextureStorage3DEXT(GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); void GLTrace_glRenderbufferStorageMultisampleIMG(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); void GLTrace_glFramebufferTexture2DMultisampleIMG(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples); -void GLTrace_glBeginPerfQueryINTEL(GLuint queryHandle); -void GLTrace_glCreatePerfQueryINTEL(GLuint queryId, GLuint * queryHandle); -void GLTrace_glDeletePerfQueryINTEL(GLuint queryHandle); -void GLTrace_glEndPerfQueryINTEL(GLuint queryHandle); -void GLTrace_glGetFirstPerfQueryIdINTEL(GLuint * queryId); -void GLTrace_glGetNextPerfQueryIdINTEL(GLuint queryId, GLuint * nextQueryId); -void GLTrace_glGetPerfCounterInfoINTEL(GLuint queryId, GLuint counterId, GLuint counterNameLength, GLchar * counterName, GLuint counterDescLength, GLchar * counterDesc, GLuint * counterOffset, GLuint * counterDataSize, GLuint * counterTypeEnum, GLuint * counterDataTypeEnum, GLuint64 * rawCounterMaxValue); -void GLTrace_glGetPerfQueryDataINTEL(GLuint queryHandle, GLuint flags, GLsizei dataSize, GLvoid * data, GLuint * bytesWritten); -void GLTrace_glGetPerfQueryIdByNameINTEL(GLchar * queryName, GLuint * queryId); -void GLTrace_glGetPerfQueryInfoINTEL(GLuint queryId, GLuint queryNameLength, GLchar * queryName, GLuint * dataSize, GLuint * noCounters, GLuint * noInstances, GLuint * capsMask); -void GLTrace_glBlendParameteriNV(GLenum pname, GLint value); -void GLTrace_glBlendBarrierNV(void); -void GLTrace_glCopyBufferSubDataNV(GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); void GLTrace_glCoverageMaskNV(GLboolean mask); void GLTrace_glCoverageOperationNV(GLenum operation); -void GLTrace_glDrawBuffersNV(GLsizei n, const GLenum * bufs); -void GLTrace_glDrawArraysInstancedNV(GLenum mode, GLint first, GLsizei count, GLsizei primcount); -void GLTrace_glDrawElementsInstancedNV(GLenum mode, GLsizei count, GLenum type, const void * indices, GLsizei primcount); -void GLTrace_glDeleteFencesNV(GLsizei n, const GLuint * fences); -void GLTrace_glGenFencesNV(GLsizei n, GLuint * fences); +void GLTrace_glDrawBuffersNV(GLsizei n, const GLenum *bufs); +void GLTrace_glDeleteFencesNV(GLsizei n, const GLuint *fences); +void GLTrace_glGenFencesNV(GLsizei n, GLuint *fences); GLboolean GLTrace_glIsFenceNV(GLuint fence); GLboolean GLTrace_glTestFenceNV(GLuint fence); -void GLTrace_glGetFenceivNV(GLuint fence, GLenum pname, GLint * params); +void GLTrace_glGetFenceivNV(GLuint fence, GLenum pname, GLint *params); void GLTrace_glFinishFenceNV(GLuint fence); void GLTrace_glSetFenceNV(GLuint fence, GLenum condition); -void GLTrace_glBlitFramebufferNV(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); -void GLTrace_glRenderbufferStorageMultisampleNV(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); -void GLTrace_glVertexAttribDivisorNV(GLuint index, GLuint divisor); -void GLTrace_glUniformMatrix2x3fvNV(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -void GLTrace_glUniformMatrix3x2fvNV(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -void GLTrace_glUniformMatrix2x4fvNV(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -void GLTrace_glUniformMatrix4x2fvNV(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -void GLTrace_glUniformMatrix3x4fvNV(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); -void GLTrace_glUniformMatrix4x3fvNV(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); void GLTrace_glReadBufferNV(GLenum mode); void GLTrace_glAlphaFuncQCOM(GLenum func, GLclampf ref); -void GLTrace_glGetDriverControlsQCOM(GLint * num, GLsizei size, GLuint * driverControls); -void GLTrace_glGetDriverControlStringQCOM(GLuint driverControl, GLsizei bufSize, GLsizei * length, GLchar * driverControlString); +void GLTrace_glGetDriverControlsQCOM(GLint *num, GLsizei size, GLuint *driverControls); +void GLTrace_glGetDriverControlStringQCOM(GLuint driverControl, GLsizei bufSize, GLsizei *length, GLchar *driverControlString); void GLTrace_glEnableDriverControlQCOM(GLuint driverControl); void GLTrace_glDisableDriverControlQCOM(GLuint driverControl); -void GLTrace_glExtGetTexturesQCOM(GLuint * textures, GLint maxTextures, GLint * numTextures); -void GLTrace_glExtGetBuffersQCOM(GLuint * buffers, GLint maxBuffers, GLint * numBuffers); -void GLTrace_glExtGetRenderbuffersQCOM(GLuint * renderbuffers, GLint maxRenderbuffers, GLint * numRenderbuffers); -void GLTrace_glExtGetFramebuffersQCOM(GLuint * framebuffers, GLint maxFramebuffers, GLint * numFramebuffers); -void GLTrace_glExtGetTexLevelParameterivQCOM(GLuint texture, GLenum face, GLint level, GLenum pname, GLint * params); +void GLTrace_glExtGetTexturesQCOM(GLuint *textures, GLint maxTextures, GLint *numTextures); +void GLTrace_glExtGetBuffersQCOM(GLuint *buffers, GLint maxBuffers, GLint *numBuffers); +void GLTrace_glExtGetRenderbuffersQCOM(GLuint *renderbuffers, GLint maxRenderbuffers, GLint *numRenderbuffers); +void GLTrace_glExtGetFramebuffersQCOM(GLuint *framebuffers, GLint maxFramebuffers, GLint *numFramebuffers); +void GLTrace_glExtGetTexLevelParameterivQCOM(GLuint texture, GLenum face, GLint level, GLenum pname, GLint *params); void GLTrace_glExtTexObjectStateOverrideiQCOM(GLenum target, GLenum pname, GLint param); -void GLTrace_glExtGetTexSubImageQCOM(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, void * texels); -void GLTrace_glExtGetBufferPointervQCOM(GLenum target, void ** params); -void GLTrace_glExtGetShadersQCOM(GLuint * shaders, GLint maxShaders, GLint * numShaders); -void GLTrace_glExtGetProgramsQCOM(GLuint * programs, GLint maxPrograms, GLint * numPrograms); +void GLTrace_glExtGetTexSubImageQCOM(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLvoid *texels); +void GLTrace_glExtGetBufferPointervQCOM(GLenum target, GLvoid **params); +void GLTrace_glExtGetShadersQCOM(GLuint *shaders, GLint maxShaders, GLint *numShaders); +void GLTrace_glExtGetProgramsQCOM(GLuint *programs, GLint maxPrograms, GLint *numPrograms); GLboolean GLTrace_glExtIsProgramBinaryQCOM(GLuint program); -void GLTrace_glExtGetProgramBinarySourceQCOM(GLuint program, GLenum shadertype, GLchar * source, GLint * length); +void GLTrace_glExtGetProgramBinarySourceQCOM(GLuint program, GLenum shadertype, GLchar *source, GLint *length); void GLTrace_glStartTilingQCOM(GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask); void GLTrace_glEndTilingQCOM(GLbitfield preserveMask); // Declarations for GL1 APIs -void GLTrace_glAlphaFunc(GLenum func, GLfloat ref); -void GLTrace_glClipPlanef(GLenum p, const GLfloat * eqn); +void GLTrace_glAlphaFunc(GLenum func, GLclampf ref); +void GLTrace_glClipPlanef(GLenum plane, const GLfloat *equation); void GLTrace_glColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); void GLTrace_glFogf(GLenum pname, GLfloat param); -void GLTrace_glFogfv(GLenum pname, const GLfloat * params); -void GLTrace_glFrustumf(GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f); -void GLTrace_glGetClipPlanef(GLenum plane, GLfloat * equation); -void GLTrace_glGetLightfv(GLenum light, GLenum pname, GLfloat * params); -void GLTrace_glGetMaterialfv(GLenum face, GLenum pname, GLfloat * params); -void GLTrace_glGetTexEnvfv(GLenum target, GLenum pname, GLfloat * params); +void GLTrace_glFogfv(GLenum pname, const GLfloat *params); +void GLTrace_glFrustumf(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar); +void GLTrace_glGetClipPlanef(GLenum pname, GLfloat eqn[4]); +void GLTrace_glGetLightfv(GLenum light, GLenum pname, GLfloat *params); +void GLTrace_glGetMaterialfv(GLenum face, GLenum pname, GLfloat *params); +void GLTrace_glGetTexEnvfv(GLenum env, GLenum pname, GLfloat *params); void GLTrace_glLightModelf(GLenum pname, GLfloat param); -void GLTrace_glLightModelfv(GLenum pname, const GLfloat * params); +void GLTrace_glLightModelfv(GLenum pname, const GLfloat *params); void GLTrace_glLightf(GLenum light, GLenum pname, GLfloat param); -void GLTrace_glLightfv(GLenum light, GLenum pname, const GLfloat * params); -void GLTrace_glLoadMatrixf(const GLfloat * m); +void GLTrace_glLightfv(GLenum light, GLenum pname, const GLfloat *params); +void GLTrace_glLoadMatrixf(const GLfloat *m); void GLTrace_glMaterialf(GLenum face, GLenum pname, GLfloat param); -void GLTrace_glMaterialfv(GLenum face, GLenum pname, const GLfloat * params); -void GLTrace_glMultMatrixf(const GLfloat * m); +void GLTrace_glMaterialfv(GLenum face, GLenum pname, const GLfloat *params); +void GLTrace_glMultMatrixf(const GLfloat *m); void GLTrace_glMultiTexCoord4f(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); void GLTrace_glNormal3f(GLfloat nx, GLfloat ny, GLfloat nz); -void GLTrace_glOrthof(GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f); +void GLTrace_glOrthof(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar); void GLTrace_glPointParameterf(GLenum pname, GLfloat param); -void GLTrace_glPointParameterfv(GLenum pname, const GLfloat * params); +void GLTrace_glPointParameterfv(GLenum pname, const GLfloat *params); void GLTrace_glPointSize(GLfloat size); void GLTrace_glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z); void GLTrace_glScalef(GLfloat x, GLfloat y, GLfloat z); void GLTrace_glTexEnvf(GLenum target, GLenum pname, GLfloat param); -void GLTrace_glTexEnvfv(GLenum target, GLenum pname, const GLfloat * params); +void GLTrace_glTexEnvfv(GLenum target, GLenum pname, const GLfloat *params); void GLTrace_glTranslatef(GLfloat x, GLfloat y, GLfloat z); -void GLTrace_glAlphaFuncx(GLenum func, GLfixed ref); -void GLTrace_glClearColorx(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); -void GLTrace_glClearDepthx(GLfixed depth); +void GLTrace_glAlphaFuncx(GLenum func, GLclampx ref); +void GLTrace_glClearColorx(GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha); +void GLTrace_glClearDepthx(GLclampx depth); void GLTrace_glClientActiveTexture(GLenum texture); -void GLTrace_glClipPlanex(GLenum plane, const GLfixed * equation); +void GLTrace_glClipPlanex(GLenum plane, const GLfixed *equation); void GLTrace_glColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha); void GLTrace_glColor4x(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); -void GLTrace_glColorPointer(GLint size, GLenum type, GLsizei stride, const void * pointer); -void GLTrace_glDepthRangex(GLfixed n, GLfixed f); +void GLTrace_glColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); +void GLTrace_glDepthRangex(GLclampx zNear, GLclampx zFar); void GLTrace_glDisableClientState(GLenum array); void GLTrace_glEnableClientState(GLenum array); void GLTrace_glFogx(GLenum pname, GLfixed param); -void GLTrace_glFogxv(GLenum pname, const GLfixed * param); -void GLTrace_glFrustumx(GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f); -void GLTrace_glGetClipPlanex(GLenum plane, GLfixed * equation); -void GLTrace_glGetFixedv(GLenum pname, GLfixed * params); -void GLTrace_glGetLightxv(GLenum light, GLenum pname, GLfixed * params); -void GLTrace_glGetMaterialxv(GLenum face, GLenum pname, GLfixed * params); -void GLTrace_glGetPointerv(GLenum pname, void ** params); -void GLTrace_glGetTexEnviv(GLenum target, GLenum pname, GLint * params); -void GLTrace_glGetTexEnvxv(GLenum target, GLenum pname, GLfixed * params); -void GLTrace_glGetTexParameterxv(GLenum target, GLenum pname, GLfixed * params); +void GLTrace_glFogxv(GLenum pname, const GLfixed *params); +void GLTrace_glFrustumx(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar); +void GLTrace_glGetClipPlanex(GLenum pname, GLfixed eqn[4]); +void GLTrace_glGetFixedv(GLenum pname, GLfixed *params); +void GLTrace_glGetLightxv(GLenum light, GLenum pname, GLfixed *params); +void GLTrace_glGetMaterialxv(GLenum face, GLenum pname, GLfixed *params); +void GLTrace_glGetPointerv(GLenum pname, GLvoid **params); +void GLTrace_glGetTexEnviv(GLenum env, GLenum pname, GLint *params); +void GLTrace_glGetTexEnvxv(GLenum env, GLenum pname, GLfixed *params); +void GLTrace_glGetTexParameterxv(GLenum target, GLenum pname, GLfixed *params); void GLTrace_glLightModelx(GLenum pname, GLfixed param); -void GLTrace_glLightModelxv(GLenum pname, const GLfixed * param); +void GLTrace_glLightModelxv(GLenum pname, const GLfixed *params); void GLTrace_glLightx(GLenum light, GLenum pname, GLfixed param); -void GLTrace_glLightxv(GLenum light, GLenum pname, const GLfixed * params); +void GLTrace_glLightxv(GLenum light, GLenum pname, const GLfixed *params); void GLTrace_glLineWidthx(GLfixed width); void GLTrace_glLoadIdentity(void); -void GLTrace_glLoadMatrixx(const GLfixed * m); +void GLTrace_glLoadMatrixx(const GLfixed *m); void GLTrace_glLogicOp(GLenum opcode); void GLTrace_glMaterialx(GLenum face, GLenum pname, GLfixed param); -void GLTrace_glMaterialxv(GLenum face, GLenum pname, const GLfixed * param); +void GLTrace_glMaterialxv(GLenum face, GLenum pname, const GLfixed *params); void GLTrace_glMatrixMode(GLenum mode); -void GLTrace_glMultMatrixx(const GLfixed * m); -void GLTrace_glMultiTexCoord4x(GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfixed q); +void GLTrace_glMultMatrixx(const GLfixed *m); +void GLTrace_glMultiTexCoord4x(GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q); void GLTrace_glNormal3x(GLfixed nx, GLfixed ny, GLfixed nz); -void GLTrace_glNormalPointer(GLenum type, GLsizei stride, const void * pointer); -void GLTrace_glOrthox(GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f); +void GLTrace_glNormalPointer(GLenum type, GLsizei stride, const GLvoid *pointer); +void GLTrace_glOrthox(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar); void GLTrace_glPointParameterx(GLenum pname, GLfixed param); -void GLTrace_glPointParameterxv(GLenum pname, const GLfixed * params); +void GLTrace_glPointParameterxv(GLenum pname, const GLfixed *params); void GLTrace_glPointSizex(GLfixed size); void GLTrace_glPolygonOffsetx(GLfixed factor, GLfixed units); void GLTrace_glPopMatrix(void); @@ -548,129 +471,106 @@ void GLTrace_glRotatex(GLfixed angle, GLfixed x, GLfixed y, GLfixed z); void GLTrace_glSampleCoveragex(GLclampx value, GLboolean invert); void GLTrace_glScalex(GLfixed x, GLfixed y, GLfixed z); void GLTrace_glShadeModel(GLenum mode); -void GLTrace_glTexCoordPointer(GLint size, GLenum type, GLsizei stride, const void * pointer); +void GLTrace_glTexCoordPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); void GLTrace_glTexEnvi(GLenum target, GLenum pname, GLint param); void GLTrace_glTexEnvx(GLenum target, GLenum pname, GLfixed param); -void GLTrace_glTexEnviv(GLenum target, GLenum pname, const GLint * params); -void GLTrace_glTexEnvxv(GLenum target, GLenum pname, const GLfixed * params); +void GLTrace_glTexEnviv(GLenum target, GLenum pname, const GLint *params); +void GLTrace_glTexEnvxv(GLenum target, GLenum pname, const GLfixed *params); void GLTrace_glTexParameterx(GLenum target, GLenum pname, GLfixed param); -void GLTrace_glTexParameterxv(GLenum target, GLenum pname, const GLfixed * params); +void GLTrace_glTexParameterxv(GLenum target, GLenum pname, const GLfixed *params); void GLTrace_glTranslatex(GLfixed x, GLfixed y, GLfixed z); -void GLTrace_glVertexPointer(GLint size, GLenum type, GLsizei stride, const void * pointer); +void GLTrace_glVertexPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); +void GLTrace_glPointSizePointerOES(GLenum type, GLsizei stride, const GLvoid *pointer); // Declarations for GL1Ext APIs void GLTrace_glBlendEquationSeparateOES(GLenum modeRGB, GLenum modeAlpha); void GLTrace_glBlendFuncSeparateOES(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); void GLTrace_glBlendEquationOES(GLenum mode); -void GLTrace_glMultiTexCoord1bOES(GLenum texture, GLbyte s); -void GLTrace_glMultiTexCoord1bvOES(GLenum texture, const GLbyte * coords); -void GLTrace_glMultiTexCoord2bOES(GLenum texture, GLbyte s, GLbyte t); -void GLTrace_glMultiTexCoord2bvOES(GLenum texture, const GLbyte * coords); -void GLTrace_glMultiTexCoord3bOES(GLenum texture, GLbyte s, GLbyte t, GLbyte r); -void GLTrace_glMultiTexCoord3bvOES(GLenum texture, const GLbyte * coords); -void GLTrace_glMultiTexCoord4bOES(GLenum texture, GLbyte s, GLbyte t, GLbyte r, GLbyte q); -void GLTrace_glMultiTexCoord4bvOES(GLenum texture, const GLbyte * coords); -void GLTrace_glTexCoord1bOES(GLbyte s); -void GLTrace_glTexCoord1bvOES(const GLbyte * coords); -void GLTrace_glTexCoord2bOES(GLbyte s, GLbyte t); -void GLTrace_glTexCoord2bvOES(const GLbyte * coords); -void GLTrace_glTexCoord3bOES(GLbyte s, GLbyte t, GLbyte r); -void GLTrace_glTexCoord3bvOES(const GLbyte * coords); -void GLTrace_glTexCoord4bOES(GLbyte s, GLbyte t, GLbyte r, GLbyte q); -void GLTrace_glTexCoord4bvOES(const GLbyte * coords); -void GLTrace_glVertex2bOES(GLbyte x); -void GLTrace_glVertex2bvOES(const GLbyte * coords); -void GLTrace_glVertex3bOES(GLbyte x, GLbyte y); -void GLTrace_glVertex3bvOES(const GLbyte * coords); -void GLTrace_glVertex4bOES(GLbyte x, GLbyte y, GLbyte z); -void GLTrace_glVertex4bvOES(const GLbyte * coords); void GLTrace_glDrawTexsOES(GLshort x, GLshort y, GLshort z, GLshort width, GLshort height); void GLTrace_glDrawTexiOES(GLint x, GLint y, GLint z, GLint width, GLint height); void GLTrace_glDrawTexxOES(GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height); -void GLTrace_glDrawTexsvOES(const GLshort * coords); -void GLTrace_glDrawTexivOES(const GLint * coords); -void GLTrace_glDrawTexxvOES(const GLfixed * coords); +void GLTrace_glDrawTexsvOES(const GLshort *coords); +void GLTrace_glDrawTexivOES(const GLint *coords); +void GLTrace_glDrawTexxvOES(const GLfixed *coords); void GLTrace_glDrawTexfOES(GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height); -void GLTrace_glDrawTexfvOES(const GLfloat * coords); -void GLTrace_glAlphaFuncxOES(GLenum func, GLfixed ref); -void GLTrace_glClearColorxOES(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); -void GLTrace_glClearDepthxOES(GLfixed depth); -void GLTrace_glClipPlanexOES(GLenum plane, const GLfixed * equation); +void GLTrace_glDrawTexfvOES(const GLfloat *coords); +void GLTrace_glAlphaFuncxOES(GLenum func, GLclampx ref); +void GLTrace_glClearColorxOES(GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha); +void GLTrace_glClearDepthxOES(GLclampx depth); +void GLTrace_glClipPlanexOES(GLenum plane, const GLfixed *equation); void GLTrace_glColor4xOES(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); -void GLTrace_glDepthRangexOES(GLfixed n, GLfixed f); +void GLTrace_glDepthRangexOES(GLclampx zNear, GLclampx zFar); void GLTrace_glFogxOES(GLenum pname, GLfixed param); -void GLTrace_glFogxvOES(GLenum pname, const GLfixed * param); -void GLTrace_glFrustumxOES(GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f); -void GLTrace_glGetClipPlanexOES(GLenum plane, GLfixed * equation); -void GLTrace_glGetFixedvOES(GLenum pname, GLfixed * params); -void GLTrace_glGetTexEnvxvOES(GLenum target, GLenum pname, GLfixed * params); -void GLTrace_glGetTexParameterxvOES(GLenum target, GLenum pname, GLfixed * params); +void GLTrace_glFogxvOES(GLenum pname, const GLfixed *params); +void GLTrace_glFrustumxOES(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar); +void GLTrace_glGetClipPlanexOES(GLenum pname, GLfixed eqn[4]); +void GLTrace_glGetFixedvOES(GLenum pname, GLfixed *params); +void GLTrace_glGetLightxvOES(GLenum light, GLenum pname, GLfixed *params); +void GLTrace_glGetMaterialxvOES(GLenum face, GLenum pname, GLfixed *params); +void GLTrace_glGetTexEnvxvOES(GLenum env, GLenum pname, GLfixed *params); +void GLTrace_glGetTexParameterxvOES(GLenum target, GLenum pname, GLfixed *params); void GLTrace_glLightModelxOES(GLenum pname, GLfixed param); -void GLTrace_glLightModelxvOES(GLenum pname, const GLfixed * param); +void GLTrace_glLightModelxvOES(GLenum pname, const GLfixed *params); void GLTrace_glLightxOES(GLenum light, GLenum pname, GLfixed param); -void GLTrace_glLightxvOES(GLenum light, GLenum pname, const GLfixed * params); +void GLTrace_glLightxvOES(GLenum light, GLenum pname, const GLfixed *params); void GLTrace_glLineWidthxOES(GLfixed width); -void GLTrace_glLoadMatrixxOES(const GLfixed * m); +void GLTrace_glLoadMatrixxOES(const GLfixed *m); void GLTrace_glMaterialxOES(GLenum face, GLenum pname, GLfixed param); -void GLTrace_glMaterialxvOES(GLenum face, GLenum pname, const GLfixed * param); -void GLTrace_glMultMatrixxOES(const GLfixed * m); -void GLTrace_glMultiTexCoord4xOES(GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfixed q); +void GLTrace_glMaterialxvOES(GLenum face, GLenum pname, const GLfixed *params); +void GLTrace_glMultMatrixxOES(const GLfixed *m); +void GLTrace_glMultiTexCoord4xOES(GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q); void GLTrace_glNormal3xOES(GLfixed nx, GLfixed ny, GLfixed nz); -void GLTrace_glOrthoxOES(GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f); -void GLTrace_glPointParameterxvOES(GLenum pname, const GLfixed * params); +void GLTrace_glOrthoxOES(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar); +void GLTrace_glPointParameterxOES(GLenum pname, GLfixed param); +void GLTrace_glPointParameterxvOES(GLenum pname, const GLfixed *params); void GLTrace_glPointSizexOES(GLfixed size); void GLTrace_glPolygonOffsetxOES(GLfixed factor, GLfixed units); void GLTrace_glRotatexOES(GLfixed angle, GLfixed x, GLfixed y, GLfixed z); -void GLTrace_glSampleCoverageOES(GLfixed value, GLboolean invert); +void GLTrace_glSampleCoveragexOES(GLclampx value, GLboolean invert); void GLTrace_glScalexOES(GLfixed x, GLfixed y, GLfixed z); void GLTrace_glTexEnvxOES(GLenum target, GLenum pname, GLfixed param); -void GLTrace_glTexEnvxvOES(GLenum target, GLenum pname, const GLfixed * params); +void GLTrace_glTexEnvxvOES(GLenum target, GLenum pname, const GLfixed *params); void GLTrace_glTexParameterxOES(GLenum target, GLenum pname, GLfixed param); -void GLTrace_glTexParameterxvOES(GLenum target, GLenum pname, const GLfixed * params); +void GLTrace_glTexParameterxvOES(GLenum target, GLenum pname, const GLfixed *params); void GLTrace_glTranslatexOES(GLfixed x, GLfixed y, GLfixed z); -void GLTrace_glGetLightxvOES(GLenum light, GLenum pname, GLfixed * params); -void GLTrace_glGetMaterialxvOES(GLenum face, GLenum pname, GLfixed * params); -void GLTrace_glPointParameterxOES(GLenum pname, GLfixed param); -void GLTrace_glSampleCoveragexOES(GLclampx value, GLboolean invert); -void GLTrace_glGetTexGenxvOES(GLenum coord, GLenum pname, GLfixed * params); -void GLTrace_glTexGenxOES(GLenum coord, GLenum pname, GLfixed param); -void GLTrace_glTexGenxvOES(GLenum coord, GLenum pname, const GLfixed * params); GLboolean GLTrace_glIsRenderbufferOES(GLuint renderbuffer); void GLTrace_glBindRenderbufferOES(GLenum target, GLuint renderbuffer); -void GLTrace_glDeleteRenderbuffersOES(GLsizei n, const GLuint * renderbuffers); -void GLTrace_glGenRenderbuffersOES(GLsizei n, GLuint * renderbuffers); +void GLTrace_glDeleteRenderbuffersOES(GLsizei n, const GLuint* renderbuffers); +void GLTrace_glGenRenderbuffersOES(GLsizei n, GLuint* renderbuffers); void GLTrace_glRenderbufferStorageOES(GLenum target, GLenum internalformat, GLsizei width, GLsizei height); -void GLTrace_glGetRenderbufferParameterivOES(GLenum target, GLenum pname, GLint * params); +void GLTrace_glGetRenderbufferParameterivOES(GLenum target, GLenum pname, GLint* params); GLboolean GLTrace_glIsFramebufferOES(GLuint framebuffer); void GLTrace_glBindFramebufferOES(GLenum target, GLuint framebuffer); -void GLTrace_glDeleteFramebuffersOES(GLsizei n, const GLuint * framebuffers); -void GLTrace_glGenFramebuffersOES(GLsizei n, GLuint * framebuffers); +void GLTrace_glDeleteFramebuffersOES(GLsizei n, const GLuint* framebuffers); +void GLTrace_glGenFramebuffersOES(GLsizei n, GLuint* framebuffers); GLenum GLTrace_glCheckFramebufferStatusOES(GLenum target); void GLTrace_glFramebufferRenderbufferOES(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); void GLTrace_glFramebufferTexture2DOES(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -void GLTrace_glGetFramebufferAttachmentParameterivOES(GLenum target, GLenum attachment, GLenum pname, GLint * params); +void GLTrace_glGetFramebufferAttachmentParameterivOES(GLenum target, GLenum attachment, GLenum pname, GLint* params); void GLTrace_glGenerateMipmapOES(GLenum target); void GLTrace_glCurrentPaletteMatrixOES(GLuint matrixpaletteindex); void GLTrace_glLoadPaletteFromModelViewMatrixOES(void); -void GLTrace_glMatrixIndexPointerOES(GLint size, GLenum type, GLsizei stride, const void * pointer); -void GLTrace_glWeightPointerOES(GLint size, GLenum type, GLsizei stride, const void * pointer); -void GLTrace_glPointSizePointerOES(GLenum type, GLsizei stride, const void * pointer); -GLbitfield GLTrace_glQueryMatrixxOES(GLfixed * mantissa, GLint * exponent); +void GLTrace_glMatrixIndexPointerOES(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); +void GLTrace_glWeightPointerOES(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); +GLbitfield GLTrace_glQueryMatrixxOES(GLfixed mantissa[16], GLint exponent[16]); +void GLTrace_glDepthRangefOES(GLclampf zNear, GLclampf zFar); +void GLTrace_glFrustumfOES(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar); +void GLTrace_glOrthofOES(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar); +void GLTrace_glClipPlanefOES(GLenum plane, const GLfloat *equation); +void GLTrace_glGetClipPlanefOES(GLenum pname, GLfloat eqn[4]); void GLTrace_glClearDepthfOES(GLclampf depth); -void GLTrace_glClipPlanefOES(GLenum plane, const GLfloat * equation); -void GLTrace_glDepthRangefOES(GLclampf n, GLclampf f); -void GLTrace_glFrustumfOES(GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f); -void GLTrace_glGetClipPlanefOES(GLenum plane, GLfloat * equation); -void GLTrace_glOrthofOES(GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f); void GLTrace_glTexGenfOES(GLenum coord, GLenum pname, GLfloat param); -void GLTrace_glTexGenfvOES(GLenum coord, GLenum pname, const GLfloat * params); +void GLTrace_glTexGenfvOES(GLenum coord, GLenum pname, const GLfloat *params); void GLTrace_glTexGeniOES(GLenum coord, GLenum pname, GLint param); -void GLTrace_glTexGenivOES(GLenum coord, GLenum pname, const GLint * params); -void GLTrace_glGetTexGenfvOES(GLenum coord, GLenum pname, GLfloat * params); -void GLTrace_glGetTexGenivOES(GLenum coord, GLenum pname, GLint * params); -void GLTrace_glClipPlanefIMG(GLenum p, const GLfloat * eqn); -void GLTrace_glClipPlanexIMG(GLenum p, const GLfixed * eqn); +void GLTrace_glTexGenivOES(GLenum coord, GLenum pname, const GLint *params); +void GLTrace_glTexGenxOES(GLenum coord, GLenum pname, GLfixed param); +void GLTrace_glTexGenxvOES(GLenum coord, GLenum pname, const GLfixed *params); +void GLTrace_glGetTexGenfvOES(GLenum coord, GLenum pname, GLfloat *params); +void GLTrace_glGetTexGenivOES(GLenum coord, GLenum pname, GLint *params); +void GLTrace_glGetTexGenxvOES(GLenum coord, GLenum pname, GLfixed *params); +void GLTrace_glClipPlanefIMG(GLenum p, const GLfloat *eqn); +void GLTrace_glClipPlanexIMG(GLenum p, const GLfixed *eqn); }; // namespace gltrace }; // namespace android diff --git a/opengl/libs/GLES_trace/tools/genapi.py b/opengl/libs/GLES_trace/tools/genapi.py index 2dea5da..ea6817d 100755 --- a/opengl/libs/GLES_trace/tools/genapi.py +++ b/opengl/libs/GLES_trace/tools/genapi.py @@ -18,7 +18,7 @@ # This script is used to generate the trace implementations of all # OpenGL calls. When executed, it reads the specs for the OpenGL calls # from the files GLES2/gl2_api.in, GLES2/gl2ext_api.in, GLES_CM/gl_api.in, -# and GLES_CM/glext_api.in, and generates trace versions for all the +# and GLES_CM/glext_api.in, and generates trace versions for all the # defined functions. # # PREREQUISITES @@ -103,7 +103,6 @@ GLPROTOBUF_TYPE_MAP = { "GLint64":DataType.INT64, "GLuint64":DataType.INT64, "GLsync":DataType.POINTER, - "GLDEBUGPROCKHR":DataType.POINTER, } API_SPECS = [ @@ -232,7 +231,7 @@ def getNameTypePair(decl): # if name is a pointer (e.g. "*ptr"), then remove the "*" from the name # and add it to the data type - pointersInName = name.count("*") + pointersInName = name.count("*") if pointersInName > 0: name = name.replace("*", "") dataType += "*" * pointersInName @@ -268,7 +267,7 @@ class ApiCall(object): API_ENTRY_REGEX = "(.*)API_ENTRY\(.*?\)\((.*?)\)" # Regex to match CALL_GL_API specification: - # e.g. CALL_GL_API(glCullFace, mode); + # e.g. CALL_GL_API(glCullFace, mode); # CALL_GL_API_RETURN(glCreateProgram); CALL_GL_API_REGEX = "CALL_GL_API(_RETURN)?\((.*)\);" @@ -280,7 +279,7 @@ class ApiCall(object): defn: specification line containing API_ENTRY macro e.g: void API_ENTRY(glActiveTexture)(GLenum texture) { callsite: specification line containing CALL_GL_API macro - e.g: CALL_GL_API(glActiveTexture, texture); + e.g: CALL_GL_API(glActiveTexture, texture); """ self.prefix = prefix self.ret = self.getReturnType(apientry) @@ -296,7 +295,7 @@ class ApiCall(object): '''Extract the return type from the API_ENTRY specification''' m = re.search(self.API_ENTRY_REGEX, apientry) if not m: - raise ValueError("%s does not match API_ENTRY specification %s" + raise ValueError("%s does not match API_ENTRY specification %s" % (apientry, self.API_ENTRY_REGEX)) return m.group(1).strip() @@ -305,7 +304,7 @@ class ApiCall(object): '''Extract the argument list from the API_ENTRY specification''' m = re.search(self.API_ENTRY_REGEX, apientry) if not m: - raise ValueError("%s does not match API_ENTRY specification %s" + raise ValueError("%s does not match API_ENTRY specification %s" % (apientry, self.API_ENTRY_REGEX)) return m.group(2).strip() @@ -336,7 +335,7 @@ class ApiCall(object): return "%s GLTrace_%s(%s);" % (self.ret, self.func, self.arglist) def genCode(self): - return TRACE_CALL_TEMPLATE(func = self.func, + return TRACE_CALL_TEMPLATE(func = self.func, retType = self.ret, retDataType = getDataTypeFromKw(self.ret), inputArgList = self.arglist, |