commit 39658faa52bdab69e97e09d52fcc90800d7aada1 parent 1a8a788cca7f9ff33478d5f6692b9e8ca03123a2 Author: Michael Savage <mikejsavage@gmail.com> Date: Wed Sep 14 16:17:20 +0100 Try GL_ARB_debug_output Diffstat:
gl.cc | | | 10 | +++++++--- |
glad.cc | | | 705 | ++++++++++++++++++++++++++++++++++++++++--------------------------------------- |
glad.h | | | 45 | ++++++++++++++++++++++++++++++++++++++++++--- |
diff --git a/gl.cc b/gl.cc @@ -13,7 +13,7 @@ #define YELLOW "\x1b[1;32m" #define GREEN "\x1b[1;33m" -#if !defined( __APPLE__ ) && !defined( _WIN32 ) +#if !defined( __APPLE__ ) static const char * type_string( GLenum type ) { switch( type ) { case GL_DEBUG_TYPE_ERROR: @@ -97,9 +97,13 @@ GLFWwindow * gl_init() { FATAL( "gladLoadGL" ); } - // TODO: look into why this doesn't work... + if( GLAD_GL_ARB_debug_output ) { + printf( "ARB\n" ); + + glDebugMessageCallbackARB( ( GLDEBUGPROCARB ) gl_error_printer, NULL ); + } #if !defined( _WIN32 ) - if( GLAD_GL_KHR_debug ) { + else if( GLAD_GL_KHR_debug ) { glEnable( GL_DEBUG_OUTPUT ); glDebugMessageCallback( ( GLDEBUGPROC ) gl_error_printer, NULL ); } diff --git a/glad.cc b/glad.cc @@ -1,12 +1,13 @@ /* - OpenGL loader generated by glad 0.1.12a0 on Wed Aug 31 11:01:57 2016. + OpenGL loader generated by glad 0.1.12a0 on Wed Sep 14 15:48:12 2016. Language/Generator: C/C++ Specification: gl APIs: gl=3.3 Profile: core Extensions: + GL_ARB_debug_output, GL_EXT_texture_compression_s3tc, GL_EXT_texture_sRGB, GL_KHR_debug @@ -15,9 +16,9 @@ Omit khrplatform: True Commandline: - --profile="core" --api="gl=3.3" --generator="c" --spec="gl" --omit-khrplatform --extensions="GL_EXT_texture_compression_s3tc,GL_EXT_texture_sRGB,GL_KHR_debug" + --profile="core" --api="gl=3.3" --generator="c" --spec="gl" --omit-khrplatform --extensions="GL_ARB_debug_output,GL_EXT_texture_compression_s3tc,GL_EXT_texture_sRGB,GL_KHR_debug" Online: - http://glad.dav1d.de/#profile=core&language=c&specification=gl&loader=on&api=gl%3D3.3&extensions=GL_EXT_texture_compression_s3tc&extensions=GL_EXT_texture_sRGB&extensions=GL_KHR_debug + http://glad.dav1d.de/#profile=core&language=c&specification=gl&loader=on&api=gl%3D3.3&extensions=GL_ARB_debug_output&extensions=GL_EXT_texture_compression_s3tc&extensions=GL_EXT_texture_sRGB&extensions=GL_KHR_debug */ #include <stdio.h> @@ -234,383 +235,388 @@ int GLAD_GL_VERSION_3_0; int GLAD_GL_VERSION_3_1; int GLAD_GL_VERSION_3_2; int GLAD_GL_VERSION_3_3; -PFNGLVERTEXATTRIB4FPROC glad_glVertexAttrib4f; -PFNGLUNIFORM4UIVPROC glad_glUniform4uiv; -PFNGLGETACTIVEUNIFORMSIVPROC glad_glGetActiveUniformsiv; -PFNGLGETRENDERBUFFERPARAMETERIVPROC glad_glGetRenderbufferParameteriv; -PFNGLGETUNIFORMUIVPROC glad_glGetUniformuiv; -PFNGLENDCONDITIONALRENDERPROC glad_glEndConditionalRender; -PFNGLGETSHADERIVPROC glad_glGetShaderiv; -PFNGLBINDBUFFERBASEPROC glad_glBindBufferBase; -PFNGLUNIFORM1UIVPROC glad_glUniform1uiv; -PFNGLVERTEXATTRIB3SPROC glad_glVertexAttrib3s; -PFNGLUNIFORM2UIVPROC glad_glUniform2uiv; -PFNGLVERTEXP4UIPROC glad_glVertexP4ui; -PFNGLVERTEXATTRIB4SVPROC glad_glVertexAttrib4sv; -PFNGLSTENCILMASKSEPARATEPROC glad_glStencilMaskSeparate; -PFNGLCLAMPCOLORPROC glad_glClampColor; -PFNGLGETVERTEXATTRIBPOINTERVPROC glad_glGetVertexAttribPointerv; -PFNGLCHECKFRAMEBUFFERSTATUSPROC glad_glCheckFramebufferStatus; -PFNGLBUFFERSUBDATAPROC glad_glBufferSubData; -PFNGLVERTEXATTRIBDIVISORPROC glad_glVertexAttribDivisor; -PFNGLCOMPRESSEDTEXIMAGE3DPROC glad_glCompressedTexImage3D; -PFNGLUNIFORMMATRIX4FVPROC glad_glUniformMatrix4fv; -PFNGLCOLORP3UIPROC glad_glColorP3ui; -PFNGLTEXSUBIMAGE3DPROC glad_glTexSubImage3D; -PFNGLVALIDATEPROGRAMPROC glad_glValidateProgram; -PFNGLBINDBUFFERRANGEPROC glad_glBindBufferRange; -PFNGLCLEARBUFFERFVPROC glad_glClearBufferfv; +PFNGLVERTEXATTRIBI4USVPROC glad_glVertexAttribI4usv; PFNGLVERTEXATTRIBI2IPROC glad_glVertexAttribI2i; -PFNGLGETPROGRAMIVPROC glad_glGetProgramiv; -PFNGLBLENDFUNCPROC glad_glBlendFunc; -PFNGLUNIFORM3FVPROC glad_glUniform3fv; -PFNGLCOMPRESSEDTEXIMAGE1DPROC glad_glCompressedTexImage1D; -PFNGLSAMPLERPARAMETERFVPROC glad_glSamplerParameterfv; -PFNGLVERTEXATTRIBP2UIVPROC glad_glVertexAttribP2uiv; +PFNGLGENSAMPLERSPROC glad_glGenSamplers; +PFNGLVERTEXATTRIB4NUBPROC glad_glVertexAttrib4Nub; +PFNGLTEXCOORDP3UIPROC glad_glTexCoordP3ui; PFNGLUNIFORM3IPROC glad_glUniform3i; -PFNGLVERTEXATTRIBP2UIPROC glad_glVertexAttribP2ui; -PFNGLMULTITEXCOORDP3UIPROC glad_glMultiTexCoordP3ui; +PFNGLTEXCOORDP1UIVPROC glad_glTexCoordP1uiv; +PFNGLTEXIMAGE2DMULTISAMPLEPROC glad_glTexImage2DMultisample; +PFNGLSTENCILFUNCPROC glad_glStencilFunc; +PFNGLTEXIMAGE2DPROC glad_glTexImage2D; PFNGLCREATESHADERPROC glad_glCreateShader; -PFNGLBINDRENDERBUFFERPROC glad_glBindRenderbuffer; -PFNGLGETTEXLEVELPARAMETERFVPROC glad_glGetTexLevelParameterfv; -PFNGLBUFFERDATAPROC glad_glBufferData; -PFNGLGETSTRINGPROC glad_glGetString; -PFNGLGETINTEGER64I_VPROC glad_glGetInteger64i_v; -PFNGLGETVERTEXATTRIBIUIVPROC glad_glGetVertexAttribIuiv; -PFNGLVERTEXP2UIPROC glad_glVertexP2ui; -PFNGLUNIFORM2IPROC glad_glUniform2i; -PFNGLDRAWARRAYSPROC glad_glDrawArrays; -PFNGLPOLYGONMODEPROC glad_glPolygonMode; -PFNGLTEXIMAGE3DPROC glad_glTexImage3D; -PFNGLQUERYCOUNTERPROC glad_glQueryCounter; -PFNGLUNIFORM3UIPROC glad_glUniform3ui; -PFNGLDISABLEPROC glad_glDisable; -PFNGLUNIFORM3UIVPROC glad_glUniform3uiv; -PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC glad_glDrawElementsInstancedBaseVertex; -PFNGLCOPYTEXSUBIMAGE1DPROC glad_glCopyTexSubImage1D; +PFNGLUNIFORM1FVPROC glad_glUniform1fv; +PFNGLUNMAPBUFFERPROC glad_glUnmapBuffer; PFNGLGETQUERYOBJECTUIVPROC glad_glGetQueryObjectuiv; -PFNGLVERTEXP2UIVPROC glad_glVertexP2uiv; PFNGLUNIFORM1IVPROC glad_glUniform1iv; -PFNGLVERTEXATTRIBP3UIPROC glad_glVertexAttribP3ui; -PFNGLVERTEXATTRIB3DPROC glad_glVertexAttrib3d; -PFNGLGETFLOATVPROC glad_glGetFloatv; -PFNGLGENQUERIESPROC glad_glGenQueries; -PFNGLLINEWIDTHPROC glad_glLineWidth; -PFNGLBINDFRAGDATALOCATIONPROC glad_glBindFragDataLocation; -PFNGLLINKPROGRAMPROC glad_glLinkProgram; -PFNGLDISABLEVERTEXATTRIBARRAYPROC glad_glDisableVertexAttribArray; -PFNGLVERTEXATTRIB3SVPROC glad_glVertexAttrib3sv; -PFNGLTEXBUFFERPROC glad_glTexBuffer; -PFNGLGETATTACHEDSHADERSPROC glad_glGetAttachedShaders; -PFNGLVERTEXATTRIBI4IPROC glad_glVertexAttribI4i; -PFNGLGETQUERYIVPROC glad_glGetQueryiv; -PFNGLCLIENTWAITSYNCPROC glad_glClientWaitSync; -PFNGLUNIFORM3IVPROC glad_glUniform3iv; -PFNGLGENFRAMEBUFFERSPROC glad_glGenFramebuffers; -PFNGLMULTIDRAWARRAYSPROC glad_glMultiDrawArrays; -PFNGLDELETEQUERIESPROC glad_glDeleteQueries; -PFNGLGETTEXPARAMETERIVPROC glad_glGetTexParameteriv; -PFNGLVERTEXATTRIB4NUBVPROC glad_glVertexAttrib4Nubv; -PFNGLGETUNIFORMINDICESPROC glad_glGetUniformIndices; -PFNGLGETINTEGER64VPROC glad_glGetInteger64v; -PFNGLPIXELSTOREFPROC glad_glPixelStoref; -PFNGLDELETEVERTEXARRAYSPROC glad_glDeleteVertexArrays; -PFNGLGETTEXIMAGEPROC glad_glGetTexImage; +PFNGLVERTEXATTRIB4DVPROC glad_glVertexAttrib4dv; +PFNGLVERTEXATTRIBP2UIPROC glad_glVertexAttribP2ui; +PFNGLVERTEXATTRIBI4UIVPROC glad_glVertexAttribI4uiv; +PFNGLISENABLEDIPROC glad_glIsEnabledi; +PFNGLBINDBUFFERBASEPROC glad_glBindBufferBase; +PFNGLBINDRENDERBUFFERPROC glad_glBindRenderbuffer; +PFNGLGETSHADERSOURCEPROC glad_glGetShaderSource; +PFNGLUNIFORMMATRIX4X3FVPROC glad_glUniformMatrix4x3fv; PFNGLCOLORMASKPROC glad_glColorMask; -PFNGLSECONDARYCOLORP3UIVPROC glad_glSecondaryColorP3uiv; -PFNGLTEXPARAMETERIUIVPROC glad_glTexParameterIuiv; +PFNGLGETSAMPLERPARAMETERIUIVPROC glad_glGetSamplerParameterIuiv; +PFNGLVERTEXATTRIB2DVPROC glad_glVertexAttrib2dv; +PFNGLDRAWARRAYSINSTANCEDPROC glad_glDrawArraysInstanced; +PFNGLVERTEXATTRIBP1UIPROC glad_glVertexAttribP1ui; +PFNGLISPROGRAMPROC glad_glIsProgram; +PFNGLDEPTHMASKPROC glad_glDepthMask; +PFNGLVERTEXATTRIB2FPROC glad_glVertexAttrib2f; +PFNGLPOLYGONOFFSETPROC glad_glPolygonOffset; +PFNGLGETQUERYIVPROC glad_glGetQueryiv; +PFNGLVERTEXP2UIVPROC glad_glVertexP2uiv; PFNGLTEXCOORDP2UIVPROC glad_glTexCoordP2uiv; -PFNGLGENVERTEXARRAYSPROC glad_glGenVertexArrays; -PFNGLTEXPARAMETERIPROC glad_glTexParameteri; -PFNGLDELETESHADERPROC glad_glDeleteShader; -PFNGLPOINTPARAMETERIVPROC glad_glPointParameteriv; -PFNGLGETBUFFERPOINTERVPROC glad_glGetBufferPointerv; -PFNGLGETTEXPARAMETERIIVPROC glad_glGetTexParameterIiv; -PFNGLTEXSUBIMAGE1DPROC glad_glTexSubImage1D; -PFNGLFINISHPROC glad_glFinish; -PFNGLISRENDERBUFFERPROC glad_glIsRenderbuffer; -PFNGLVERTEXATTRIB3FPROC glad_glVertexAttrib3f; -PFNGLGETFRAGDATALOCATIONPROC glad_glGetFragDataLocation; -PFNGLSCISSORPROC glad_glScissor; -PFNGLUNIFORM1FPROC glad_glUniform1f; -PFNGLGETTRANSFORMFEEDBACKVARYINGPROC glad_glGetTransformFeedbackVarying; -PFNGLCOLORP4UIPROC glad_glColorP4ui; -PFNGLDELETESAMPLERSPROC glad_glDeleteSamplers; +PFNGLVERTEXATTRIBP4UIVPROC glad_glVertexAttribP4uiv; +PFNGLVERTEXATTRIB4UBVPROC glad_glVertexAttrib4ubv; +PFNGLVERTEXATTRIB3SPROC glad_glVertexAttrib3s; +PFNGLGETTEXPARAMETERIUIVPROC glad_glGetTexParameterIuiv; +PFNGLGETMULTISAMPLEFVPROC glad_glGetMultisamplefv; +PFNGLVERTEXATTRIBP3UIPROC glad_glVertexAttribP3ui; +PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC glad_glCompressedTexSubImage3D; +PFNGLTEXCOORDP1UIPROC glad_glTexCoordP1ui; +PFNGLUNIFORM3FPROC glad_glUniform3f; +PFNGLUNIFORMMATRIX2X4FVPROC glad_glUniformMatrix2x4fv; +PFNGLGETTEXPARAMETERFVPROC glad_glGetTexParameterfv; +PFNGLVERTEXATTRIB2FVPROC glad_glVertexAttrib2fv; +PFNGLTEXBUFFERPROC glad_glTexBuffer; +PFNGLUNIFORMMATRIX4FVPROC glad_glUniformMatrix4fv; +PFNGLVERTEXATTRIBPOINTERPROC glad_glVertexAttribPointer; +PFNGLGETSAMPLERPARAMETERFVPROC glad_glGetSamplerParameterfv; +PFNGLRENDERBUFFERSTORAGEPROC glad_glRenderbufferStorage; +PFNGLGETBOOLEANI_VPROC glad_glGetBooleani_v; +PFNGLBUFFERSUBDATAPROC glad_glBufferSubData; PFNGLVERTEXATTRIB4USVPROC glad_glVertexAttrib4usv; -PFNGLGETERRORPROC glad_glGetError; -PFNGLVERTEXATTRIBI4BVPROC glad_glVertexAttribI4bv; -PFNGLDELETESYNCPROC glad_glDeleteSync; -PFNGLBINDFRAMEBUFFERPROC glad_glBindFramebuffer; -PFNGLREADPIXELSPROC glad_glReadPixels; -PFNGLSAMPLEMASKIPROC glad_glSampleMaski; -PFNGLGETVERTEXATTRIBIVPROC glad_glGetVertexAttribiv; -PFNGLHINTPROC glad_glHint; -PFNGLGETQUERYOBJECTUI64VPROC glad_glGetQueryObjectui64v; -PFNGLTEXPARAMETERFPROC glad_glTexParameterf; +PFNGLGETACTIVEUNIFORMSIVPROC glad_glGetActiveUniformsiv; +PFNGLTRANSFORMFEEDBACKVARYINGSPROC glad_glTransformFeedbackVaryings; +PFNGLVERTEXATTRIB4FVPROC glad_glVertexAttrib4fv; PFNGLDELETEFRAMEBUFFERSPROC glad_glDeleteFramebuffers; -PFNGLVERTEXATTRIBIPOINTERPROC glad_glVertexAttribIPointer; -PFNGLBINDBUFFERPROC glad_glBindBuffer; -PFNGLTEXPARAMETERIIVPROC glad_glTexParameterIiv; -PFNGLUNIFORM1IPROC glad_glUniform1i; -PFNGLFRAMEBUFFERTEXTURELAYERPROC glad_glFramebufferTextureLayer; -PFNGLGETTEXLEVELPARAMETERIVPROC glad_glGetTexLevelParameteriv; -PFNGLSAMPLERPARAMETERIVPROC glad_glSamplerParameteriv; -PFNGLGETTEXPARAMETERFVPROC glad_glGetTexParameterfv; -PFNGLGETUNIFORMIVPROC glad_glGetUniformiv; -PFNGLDETACHSHADERPROC glad_glDetachShader; -PFNGLDELETERENDERBUFFERSPROC glad_glDeleteRenderbuffers; -PFNGLGENSAMPLERSPROC glad_glGenSamplers; -PFNGLSECONDARYCOLORP3UIPROC glad_glSecondaryColorP3ui; -PFNGLSAMPLERPARAMETERIUIVPROC glad_glSamplerParameterIuiv; +PFNGLGETSHADERINFOLOGPROC glad_glGetShaderInfoLog; +PFNGLBLENDFUNCSEPARATEPROC glad_glBlendFuncSeparate; +PFNGLBLITFRAMEBUFFERPROC glad_glBlitFramebuffer; +PFNGLUNIFORM1UIVPROC glad_glUniform1uiv; +PFNGLDRAWBUFFERPROC glad_glDrawBuffer; +PFNGLMULTITEXCOORDP4UIPROC glad_glMultiTexCoordP4ui; +PFNGLGETSAMPLERPARAMETERIVPROC glad_glGetSamplerParameteriv; +PFNGLNORMALP3UIPROC glad_glNormalP3ui; PFNGLPOINTSIZEPROC glad_glPointSize; -PFNGLDEPTHFUNCPROC glad_glDepthFunc; -PFNGLVERTEXATTRIBP3UIVPROC glad_glVertexAttribP3uiv; -PFNGLDEPTHMASKPROC glad_glDepthMask; -PFNGLGENERATEMIPMAPPROC glad_glGenerateMipmap; -PFNGLTEXCOORDP2UIPROC glad_glTexCoordP2ui; -PFNGLCLEARPROC glad_glClear; -PFNGLGETBUFFERPARAMETERIVPROC glad_glGetBufferParameteriv; +PFNGLFLUSHMAPPEDBUFFERRANGEPROC glad_glFlushMappedBufferRange; +PFNGLDRAWRANGEELEMENTSPROC glad_glDrawRangeElements; +PFNGLVERTEXATTRIB3DPROC glad_glVertexAttrib3d; +PFNGLGETSAMPLERPARAMETERIIVPROC glad_glGetSamplerParameterIiv; +PFNGLISSHADERPROC glad_glIsShader; +PFNGLUNIFORM4UIVPROC glad_glUniform4uiv; +PFNGLENDQUERYPROC glad_glEndQuery; PFNGLCULLFACEPROC glad_glCullFace; -PFNGLGETINTEGERI_VPROC glad_glGetIntegeri_v; -PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC glad_glGetFramebufferAttachmentParameteriv; -PFNGLDRAWBUFFERSPROC glad_glDrawBuffers; +PFNGLCHECKFRAMEBUFFERSTATUSPROC glad_glCheckFramebufferStatus; +PFNGLFRAMEBUFFERTEXTURELAYERPROC glad_glFramebufferTextureLayer; +PFNGLVERTEXATTRIB1FVPROC glad_glVertexAttrib1fv; +PFNGLUNIFORM2FPROC glad_glUniform2f; +PFNGLUNIFORMBLOCKBINDINGPROC glad_glUniformBlockBinding; +PFNGLGETQUERYOBJECTUI64VPROC glad_glGetQueryObjectui64v; +PFNGLGETACTIVEUNIFORMBLOCKIVPROC glad_glGetActiveUniformBlockiv; +PFNGLGETSTRINGPROC glad_glGetString; +PFNGLTEXCOORDP2UIPROC glad_glTexCoordP2ui; +PFNGLVERTEXATTRIB3FVPROC glad_glVertexAttrib3fv; +PFNGLPROVOKINGVERTEXPROC glad_glProvokingVertex; +PFNGLGETVERTEXATTRIBPOINTERVPROC glad_glGetVertexAttribPointerv; +PFNGLUNIFORMMATRIX2X3FVPROC glad_glUniformMatrix2x3fv; PFNGLUNIFORMMATRIX2FVPROC glad_glUniformMatrix2fv; -PFNGLVERTEXATTRIBI4SVPROC glad_glVertexAttribI4sv; -PFNGLVERTEXATTRIB4NUSVPROC glad_glVertexAttrib4Nusv; -PFNGLISSAMPLERPROC glad_glIsSampler; -PFNGLVERTEXATTRIBI1IVPROC glad_glVertexAttribI1iv; -PFNGLTEXPARAMETERFVPROC glad_glTexParameterfv; -PFNGLVERTEXATTRIB2FVPROC glad_glVertexAttrib2fv; -PFNGLBEGINTRANSFORMFEEDBACKPROC glad_glBeginTransformFeedback; -PFNGLFRAMEBUFFERTEXTURE2DPROC glad_glFramebufferTexture2D; -PFNGLCOPYTEXIMAGE1DPROC glad_glCopyTexImage1D; -PFNGLVERTEXATTRIB4BVPROC glad_glVertexAttrib4bv; -PFNGLMULTITEXCOORDP2UIPROC glad_glMultiTexCoordP2ui; -PFNGLENABLEVERTEXATTRIBARRAYPROC glad_glEnableVertexAttribArray; -PFNGLCLEARBUFFERUIVPROC glad_glClearBufferuiv; -PFNGLUNIFORM2IVPROC glad_glUniform2iv; -PFNGLVERTEXATTRIB4NSVPROC glad_glVertexAttrib4Nsv; -PFNGLVERTEXP4UIVPROC glad_glVertexP4uiv; -PFNGLVERTEXATTRIBI3IPROC glad_glVertexAttribI3i; -PFNGLVERTEXATTRIBI1UIPROC glad_glVertexAttribI1ui; -PFNGLTEXIMAGE3DMULTISAMPLEPROC glad_glTexImage3DMultisample; -PFNGLTEXIMAGE2DMULTISAMPLEPROC glad_glTexImage2DMultisample; -PFNGLBLENDEQUATIONPROC glad_glBlendEquation; +PFNGLFRAMEBUFFERTEXTURE3DPROC glad_glFramebufferTexture3D; +PFNGLMULTITEXCOORDP2UIVPROC glad_glMultiTexCoordP2uiv; PFNGLVERTEXP3UIPROC glad_glVertexP3ui; -PFNGLPROVOKINGVERTEXPROC glad_glProvokingVertex; -PFNGLUNIFORM2FVPROC glad_glUniform2fv; -PFNGLDRAWELEMENTSBASEVERTEXPROC glad_glDrawElementsBaseVertex; -PFNGLVERTEXATTRIB2FPROC glad_glVertexAttrib2f; -PFNGLVERTEXATTRIB1DPROC glad_glVertexAttrib1d; -PFNGLVERTEXATTRIBI2UIPROC glad_glVertexAttribI2ui; -PFNGLGETSYNCIVPROC glad_glGetSynciv; +PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC glad_glGetActiveUniformBlockName; +PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC glad_glCompressedTexSubImage2D; +PFNGLBLENDEQUATIONPROC glad_glBlendEquation; +PFNGLGETVERTEXATTRIBIIVPROC glad_glGetVertexAttribIiv; +PFNGLGETUNIFORMIVPROC glad_glGetUniformiv; +PFNGLTEXIMAGE3DMULTISAMPLEPROC glad_glTexImage3DMultisample; +PFNGLVERTEXATTRIBI3IVPROC glad_glVertexAttribI3iv; +PFNGLGETINTEGER64VPROC glad_glGetInteger64v; +PFNGLSTENCILOPPROC glad_glStencilOp; +PFNGLDELETEQUERIESPROC glad_glDeleteQueries; +PFNGLVERTEXATTRIB4NUBVPROC glad_glVertexAttrib4Nubv; +PFNGLVERTEXATTRIBI1IPROC glad_glVertexAttribI1i; PFNGLMULTITEXCOORDP1UIPROC glad_glMultiTexCoordP1ui; -PFNGLFRAMEBUFFERTEXTURE1DPROC glad_glFramebufferTexture1D; -PFNGLACTIVETEXTUREPROC glad_glActiveTexture; -PFNGLVERTEXATTRIB4DVPROC glad_glVertexAttrib4dv; -PFNGLGETBOOLEANI_VPROC glad_glGetBooleani_v; -PFNGLVIEWPORTPROC glad_glViewport; -PFNGLTEXCOORDP3UIPROC glad_glTexCoordP3ui; -PFNGLVERTEXATTRIBP4UIPROC glad_glVertexAttribP4ui; -PFNGLISTEXTUREPROC glad_glIsTexture; -PFNGLDELETEPROGRAMPROC glad_glDeleteProgram; -PFNGLSTENCILOPSEPARATEPROC glad_glStencilOpSeparate; -PFNGLGETINTEGERVPROC glad_glGetIntegerv; -PFNGLTEXCOORDP4UIPROC glad_glTexCoordP4ui; +PFNGLISSYNCPROC glad_glIsSync; +PFNGLISVERTEXARRAYPROC glad_glIsVertexArray; PFNGLENABLEPROC glad_glEnable; -PFNGLVERTEXATTRIB4DPROC glad_glVertexAttrib4d; -PFNGLMAPBUFFERRANGEPROC glad_glMapBufferRange; -PFNGLGETACTIVEUNIFORMBLOCKIVPROC glad_glGetActiveUniformBlockiv; -PFNGLSTENCILMASKPROC glad_glStencilMask; -PFNGLVERTEXATTRIBI2UIVPROC glad_glVertexAttribI2uiv; -PFNGLTEXPARAMETERIVPROC glad_glTexParameteriv; -PFNGLGENBUFFERSPROC glad_glGenBuffers; -PFNGLSHADERSOURCEPROC glad_glShaderSource; -PFNGLRENDERBUFFERSTORAGEPROC glad_glRenderbufferStorage; -PFNGLVERTEXATTRIB1DVPROC glad_glVertexAttrib1dv; -PFNGLUNIFORM4IPROC glad_glUniform4i; -PFNGLDELETEBUFFERSPROC glad_glDeleteBuffers; -PFNGLVERTEXATTRIB4NUIVPROC glad_glVertexAttrib4Nuiv; -PFNGLCLEARCOLORPROC glad_glClearColor; -PFNGLLOGICOPPROC glad_glLogicOp; -PFNGLGETSAMPLERPARAMETERIVPROC glad_glGetSamplerParameteriv; -PFNGLDELETETEXTURESPROC glad_glDeleteTextures; -PFNGLSAMPLERPARAMETERFPROC glad_glSamplerParameterf; -PFNGLUNIFORM2FPROC glad_glUniform2f; -PFNGLGETSAMPLERPARAMETERFVPROC glad_glGetSamplerParameterfv; -PFNGLSAMPLECOVERAGEPROC glad_glSampleCoverage; -PFNGLTEXCOORDP1UIPROC glad_glTexCoordP1ui; -PFNGLISPROGRAMPROC glad_glIsProgram; +PFNGLUNIFORM1IPROC glad_glUniform1i; +PFNGLDRAWELEMENTSPROC glad_glDrawElements; +PFNGLVERTEXATTRIBI4BVPROC glad_glVertexAttribI4bv; +PFNGLSAMPLERPARAMETERIIVPROC glad_glSamplerParameterIiv; +PFNGLUNIFORM4UIPROC glad_glUniform4ui; +PFNGLVERTEXATTRIBI2UIPROC glad_glVertexAttribI2ui; PFNGLBINDFRAGDATALOCATIONINDEXEDPROC glad_glBindFragDataLocationIndexed; -PFNGLVERTEXATTRIB1SPROC glad_glVertexAttrib1s; -PFNGLVERTEXATTRIB3FVPROC glad_glVertexAttrib3fv; -PFNGLGETACTIVEUNIFORMNAMEPROC glad_glGetActiveUniformName; -PFNGLGETSAMPLERPARAMETERIUIVPROC glad_glGetSamplerParameterIuiv; -PFNGLVERTEXATTRIB2DPROC glad_glVertexAttrib2d; -PFNGLNORMALP3UIPROC glad_glNormalP3ui; -PFNGLDRAWARRAYSINSTANCEDPROC glad_glDrawArraysInstanced; +PFNGLDEPTHFUNCPROC glad_glDepthFunc; +PFNGLTEXCOORDP4UIPROC glad_glTexCoordP4ui; +PFNGLACTIVETEXTUREPROC glad_glActiveTexture; PFNGLWAITSYNCPROC glad_glWaitSync; -PFNGLCOMPRESSEDTEXIMAGE2DPROC glad_glCompressedTexImage2D; -PFNGLSTENCILOPPROC glad_glStencilOp; -PFNGLUNIFORM4FPROC glad_glUniform4f; -PFNGLVERTEXATTRIB1FVPROC glad_glVertexAttrib1fv; -PFNGLBINDSAMPLERPROC glad_glBindSampler; -PFNGLBINDVERTEXARRAYPROC glad_glBindVertexArray; -PFNGLBLENDCOLORPROC glad_glBlendColor; -PFNGLMULTITEXCOORDP1UIVPROC glad_glMultiTexCoordP1uiv; -PFNGLGETCOMPRESSEDTEXIMAGEPROC glad_glGetCompressedTexImage; -PFNGLPOINTPARAMETERFVPROC glad_glPointParameterfv; -PFNGLMULTITEXCOORDP4UIVPROC glad_glMultiTexCoordP4uiv; -PFNGLGETVERTEXATTRIBIIVPROC glad_glGetVertexAttribIiv; -PFNGLGETACTIVEUNIFORMPROC glad_glGetActiveUniform; -PFNGLBINDATTRIBLOCATIONPROC glad_glBindAttribLocation; -PFNGLCLEARSTENCILPROC glad_glClearStencil; -PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC glad_glGetActiveUniformBlockName; -PFNGLGETVERTEXATTRIBFVPROC glad_glGetVertexAttribfv; -PFNGLVERTEXATTRIB2SPROC glad_glVertexAttrib2s; -PFNGLGETTEXPARAMETERIUIVPROC glad_glGetTexParameterIuiv; +PFNGLGETSYNCIVPROC glad_glGetSynciv; +PFNGLVERTEXATTRIB4SVPROC glad_glVertexAttrib4sv; +PFNGLGETVERTEXATTRIBDVPROC glad_glGetVertexAttribdv; +PFNGLGETFRAGDATALOCATIONPROC glad_glGetFragDataLocation; +PFNGLNORMALP3UIVPROC glad_glNormalP3uiv; +PFNGLLOGICOPPROC glad_glLogicOp; +PFNGLGETERRORPROC glad_glGetError; +PFNGLCLAMPCOLORPROC glad_glClampColor; +PFNGLTEXPARAMETERIUIVPROC glad_glTexParameterIuiv; +PFNGLGETTEXLEVELPARAMETERFVPROC glad_glGetTexLevelParameterfv; +PFNGLVERTEXP3UIVPROC glad_glVertexP3uiv; +PFNGLCOPYTEXSUBIMAGE2DPROC glad_glCopyTexSubImage2D; +PFNGLUNIFORM4IVPROC glad_glUniform4iv; +PFNGLBLENDEQUATIONSEPARATEPROC glad_glBlendEquationSeparate; +PFNGLVERTEXATTRIB4DPROC glad_glVertexAttrib4d; +PFNGLISFRAMEBUFFERPROC glad_glIsFramebuffer; +PFNGLGETUNIFORMBLOCKINDEXPROC glad_glGetUniformBlockIndex; +PFNGLGETINTEGER64I_VPROC glad_glGetInteger64i_v; +PFNGLMULTIDRAWARRAYSPROC glad_glMultiDrawArrays; +PFNGLGENFRAMEBUFFERSPROC glad_glGenFramebuffers; +PFNGLGETUNIFORMINDICESPROC glad_glGetUniformIndices; +PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC glad_glCompressedTexSubImage1D; +PFNGLMAPBUFFERRANGEPROC glad_glMapBufferRange; +PFNGLUNIFORM2FVPROC glad_glUniform2fv; +PFNGLVALIDATEPROGRAMPROC glad_glValidateProgram; +PFNGLSAMPLERPARAMETERIUIVPROC glad_glSamplerParameterIuiv; +PFNGLUNIFORM2UIVPROC glad_glUniform2uiv; +PFNGLGETRENDERBUFFERPARAMETERIVPROC glad_glGetRenderbufferParameteriv; +PFNGLSECONDARYCOLORP3UIPROC glad_glSecondaryColorP3ui; PFNGLVERTEXATTRIB1FPROC glad_glVertexAttrib1f; -PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC glad_glCompressedTexSubImage3D; -PFNGLISSHADERPROC glad_glIsShader; -PFNGLVERTEXATTRIBI4UIVPROC glad_glVertexAttribI4uiv; -PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC glad_glDrawRangeElementsBaseVertex; -PFNGLTEXCOORDP3UIVPROC glad_glTexCoordP3uiv; -PFNGLUNIFORM4UIPROC glad_glUniform4ui; -PFNGLCOMPILESHADERPROC glad_glCompileShader; -PFNGLENABLEIPROC glad_glEnablei; +PFNGLDELETESHADERPROC glad_glDeleteShader; PFNGLVERTEXATTRIB2SVPROC glad_glVertexAttrib2sv; -PFNGLFENCESYNCPROC glad_glFenceSync; -PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC glad_glCompressedTexSubImage1D; -PFNGLFRAMEBUFFERRENDERBUFFERPROC glad_glFramebufferRenderbuffer; -PFNGLSTENCILFUNCSEPARATEPROC glad_glStencilFuncSeparate; -PFNGLSAMPLERPARAMETERIPROC glad_glSamplerParameteri; -PFNGLGETVERTEXATTRIBDVPROC glad_glGetVertexAttribdv; -PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC glad_glMultiDrawElementsBaseVertex; -PFNGLVERTEXATTRIBP4UIVPROC glad_glVertexAttribP4uiv; -PFNGLGETPROGRAMINFOLOGPROC glad_glGetProgramInfoLog; -PFNGLGETQUERYOBJECTI64VPROC glad_glGetQueryObjecti64v; -PFNGLMULTITEXCOORDP4UIPROC glad_glMultiTexCoordP4ui; -PFNGLGETBUFFERPARAMETERI64VPROC glad_glGetBufferParameteri64v; +PFNGLTEXCOORDP3UIVPROC glad_glTexCoordP3uiv; +PFNGLTEXPARAMETERIIVPROC glad_glTexParameterIiv; +PFNGLDELETERENDERBUFFERSPROC glad_glDeleteRenderbuffers; +PFNGLVERTEXATTRIBP3UIVPROC glad_glVertexAttribP3uiv; +PFNGLGETTRANSFORMFEEDBACKVARYINGPROC glad_glGetTransformFeedbackVarying; +PFNGLCLEARBUFFERFVPROC glad_glClearBufferfv; +PFNGLGETSHADERIVPROC glad_glGetShaderiv; +PFNGLGETATTRIBLOCATIONPROC glad_glGetAttribLocation; +PFNGLVERTEXP4UIVPROC glad_glVertexP4uiv; +PFNGLGENERATEMIPMAPPROC glad_glGenerateMipmap; PFNGLUNIFORMMATRIX4X2FVPROC glad_glUniformMatrix4x2fv; -PFNGLVERTEXATTRIBI2IVPROC glad_glVertexAttribI2iv; -PFNGLGETBUFFERSUBDATAPROC glad_glGetBufferSubData; -PFNGLFRAMEBUFFERTEXTUREPROC glad_glFramebufferTexture; -PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC glad_glCompressedTexSubImage2D; -PFNGLMAPBUFFERPROC glad_glMapBuffer; -PFNGLDRAWRANGEELEMENTSPROC glad_glDrawRangeElements; -PFNGLPOLYGONOFFSETPROC glad_glPolygonOffset; -PFNGLVERTEXATTRIBI3UIPROC glad_glVertexAttribI3ui; -PFNGLFRONTFACEPROC glad_glFrontFace; -PFNGLGETDOUBLEVPROC glad_glGetDoublev; -PFNGLREADBUFFERPROC glad_glReadBuffer; -PFNGLGETUNIFORMBLOCKINDEXPROC glad_glGetUniformBlockIndex; +PFNGLVERTEXATTRIBP4UIPROC glad_glVertexAttribP4ui; +PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC glad_glMultiDrawElementsBaseVertex; +PFNGLCLIENTWAITSYNCPROC glad_glClientWaitSync; +PFNGLENABLEIPROC glad_glEnablei; +PFNGLCOPYBUFFERSUBDATAPROC glad_glCopyBufferSubData; +PFNGLVERTEXATTRIB1DPROC glad_glVertexAttrib1d; +PFNGLUSEPROGRAMPROC glad_glUseProgram; +PFNGLFRAMEBUFFERTEXTURE1DPROC glad_glFramebufferTexture1D; +PFNGLCOMPRESSEDTEXIMAGE3DPROC glad_glCompressedTexImage3D; +PFNGLUNIFORM4FVPROC glad_glUniform4fv; +PFNGLSECONDARYCOLORP3UIVPROC glad_glSecondaryColorP3uiv; +PFNGLTEXSUBIMAGE1DPROC glad_glTexSubImage1D; +PFNGLGETTEXPARAMETERIIVPROC glad_glGetTexParameterIiv; +PFNGLVERTEXATTRIBI4IPROC glad_glVertexAttribI4i; +PFNGLVERTEXATTRIB4NBVPROC glad_glVertexAttrib4Nbv; +PFNGLBINDFRAMEBUFFERPROC glad_glBindFramebuffer; PFNGLUNIFORMMATRIX3X4FVPROC glad_glUniformMatrix3x4fv; -PFNGLUNIFORM4IVPROC glad_glUniform4iv; -PFNGLDRAWBUFFERPROC glad_glDrawBuffer; -PFNGLCOPYTEXSUBIMAGE2DPROC glad_glCopyTexSubImage2D; -PFNGLENDTRANSFORMFEEDBACKPROC glad_glEndTransformFeedback; -PFNGLCOPYTEXIMAGE2DPROC glad_glCopyTexImage2D; -PFNGLVERTEXATTRIB1SVPROC glad_glVertexAttrib1sv; -PFNGLDRAWELEMENTSPROC glad_glDrawElements; -PFNGLSTENCILFUNCPROC glad_glStencilFunc; -PFNGLVERTEXP3UIVPROC glad_glVertexP3uiv; -PFNGLGETSTRINGIPROC glad_glGetStringi; -PFNGLVERTEXATTRIBI4UBVPROC glad_glVertexAttribI4ubv; -PFNGLGETACTIVEATTRIBPROC glad_glGetActiveAttrib; -PFNGLCLEARDEPTHPROC glad_glClearDepth; +PFNGLVERTEXATTRIBP1UIVPROC glad_glVertexAttribP1uiv; +PFNGLTEXIMAGE1DPROC glad_glTexImage1D; +PFNGLPOLYGONMODEPROC glad_glPolygonMode; +PFNGLCOLORP4UIPROC glad_glColorP4ui; +PFNGLSAMPLERPARAMETERIPROC glad_glSamplerParameteri; +PFNGLDRAWARRAYSPROC glad_glDrawArrays; +PFNGLTEXCOORDP4UIVPROC glad_glTexCoordP4uiv; +PFNGLGETUNIFORMFVPROC glad_glGetUniformfv; +PFNGLVERTEXATTRIBI3UIPROC glad_glVertexAttribI3ui; +PFNGLVERTEXATTRIBI1UIVPROC glad_glVertexAttribI1uiv; +PFNGLVERTEXATTRIB4NUIVPROC glad_glVertexAttrib4Nuiv; +PFNGLSAMPLEMASKIPROC glad_glSampleMaski; +PFNGLFLUSHPROC glad_glFlush; +PFNGLVERTEXATTRIB2DPROC glad_glVertexAttrib2d; PFNGLATTACHSHADERPROC glad_glAttachShader; -PFNGLGETBOOLEANVPROC glad_glGetBooleanv; -PFNGLPOINTPARAMETERIPROC glad_glPointParameteri; -PFNGLVERTEXATTRIBI4USVPROC glad_glVertexAttribI4usv; -PFNGLDEPTHRANGEPROC glad_glDepthRange; -PFNGLBINDTEXTUREPROC glad_glBindTexture; -PFNGLVERTEXATTRIB4FVPROC glad_glVertexAttrib4fv; -PFNGLPOINTPARAMETERFPROC glad_glPointParameterf; -PFNGLUNIFORM4FVPROC glad_glUniform4fv; -PFNGLISQUERYPROC glad_glIsQuery; -PFNGLENDQUERYPROC glad_glEndQuery; -PFNGLUNIFORM3FPROC glad_glUniform3f; -PFNGLCLEARBUFFERFIPROC glad_glClearBufferfi; -PFNGLSAMPLERPARAMETERIIVPROC glad_glSamplerParameterIiv; +PFNGLVERTEXATTRIBP2UIVPROC glad_glVertexAttribP2uiv; +PFNGLVERTEXATTRIB2SPROC glad_glVertexAttrib2s; +PFNGLBEGINCONDITIONALRENDERPROC glad_glBeginConditionalRender; +PFNGLSAMPLERPARAMETERFVPROC glad_glSamplerParameterfv; +PFNGLDISABLEIPROC glad_glDisablei; +PFNGLVERTEXATTRIB4NUSVPROC glad_glVertexAttrib4Nusv; +PFNGLBINDBUFFERPROC glad_glBindBuffer; +PFNGLTEXSUBIMAGE3DPROC glad_glTexSubImage3D; +PFNGLBINDATTRIBLOCATIONPROC glad_glBindAttribLocation; PFNGLTEXSUBIMAGE2DPROC glad_glTexSubImage2D; +PFNGLGETUNIFORMUIVPROC glad_glGetUniformuiv; +PFNGLDELETESYNCPROC glad_glDeleteSync; +PFNGLVERTEXATTRIBI4UBVPROC glad_glVertexAttribI4ubv; +PFNGLDISABLEVERTEXATTRIBARRAYPROC glad_glDisableVertexAttribArray; +PFNGLBINDVERTEXARRAYPROC glad_glBindVertexArray; +PFNGLVERTEXATTRIBI4SVPROC glad_glVertexAttribI4sv; +PFNGLMULTITEXCOORDP2UIPROC glad_glMultiTexCoordP2ui; +PFNGLVIEWPORTPROC glad_glViewport; PFNGLGENTEXTURESPROC glad_glGenTextures; -PFNGLISBUFFERPROC glad_glIsBuffer; -PFNGLISVERTEXARRAYPROC glad_glIsVertexArray; -PFNGLVERTEXATTRIB2DVPROC glad_glVertexAttrib2dv; -PFNGLTEXCOORDP1UIVPROC glad_glTexCoordP1uiv; -PFNGLVERTEXATTRIBI1IPROC glad_glVertexAttribI1i; -PFNGLUNIFORM1FVPROC glad_glUniform1fv; -PFNGLVERTEXATTRIBPOINTERPROC glad_glVertexAttribPointer; -PFNGLDISABLEIPROC glad_glDisablei; -PFNGLUNIFORMBLOCKBINDINGPROC glad_glUniformBlockBinding; -PFNGLGETUNIFORMFVPROC glad_glGetUniformfv; -PFNGLPIXELSTOREIPROC glad_glPixelStorei; -PFNGLPRIMITIVERESTARTINDEXPROC glad_glPrimitiveRestartIndex; -PFNGLCLEARBUFFERIVPROC glad_glClearBufferiv; -PFNGLMULTITEXCOORDP2UIVPROC glad_glMultiTexCoordP2uiv; -PFNGLUNIFORM2UIPROC glad_glUniform2ui; -PFNGLCREATEPROGRAMPROC glad_glCreateProgram; -PFNGLUNIFORMMATRIX3X2FVPROC glad_glUniformMatrix3x2fv; -PFNGLUNIFORMMATRIX3FVPROC glad_glUniformMatrix3fv; -PFNGLUNIFORM1UIPROC glad_glUniform1ui; -PFNGLVERTEXATTRIBP1UIVPROC glad_glVertexAttribP1uiv; -PFNGLNORMALP3UIVPROC glad_glNormalP3uiv; +PFNGLMULTITEXCOORDP4UIVPROC glad_glMultiTexCoordP4uiv; +PFNGLVERTEXATTRIB4NSVPROC glad_glVertexAttrib4Nsv; +PFNGLVERTEXATTRIB4UIVPROC glad_glVertexAttrib4uiv; +PFNGLLINEWIDTHPROC glad_glLineWidth; +PFNGLGETTEXIMAGEPROC glad_glGetTexImage; +PFNGLBINDBUFFERRANGEPROC glad_glBindBufferRange; +PFNGLGETBUFFERPOINTERVPROC glad_glGetBufferPointerv; +PFNGLVERTEXATTRIBI1UIPROC glad_glVertexAttribI1ui; +PFNGLCOMPILESHADERPROC glad_glCompileShader; +PFNGLDELETESAMPLERSPROC glad_glDeleteSamplers; +PFNGLSCISSORPROC glad_glScissor; +PFNGLCOMPRESSEDTEXIMAGE2DPROC glad_glCompressedTexImage2D; +PFNGLGETACTIVEUNIFORMPROC glad_glGetActiveUniform; +PFNGLBLENDFUNCPROC glad_glBlendFunc; +PFNGLDEPTHRANGEPROC glad_glDepthRange; +PFNGLGENRENDERBUFFERSPROC glad_glGenRenderbuffers; +PFNGLDRAWELEMENTSINSTANCEDPROC glad_glDrawElementsInstanced; PFNGLGETUNIFORMLOCATIONPROC glad_glGetUniformLocation; -PFNGLUNIFORMMATRIX2X4FVPROC glad_glUniformMatrix2x4fv; -PFNGLVERTEXATTRIB4UBVPROC glad_glVertexAttrib4ubv; +PFNGLGETQUERYOBJECTIVPROC glad_glGetQueryObjectiv; +PFNGLDELETEVERTEXARRAYSPROC glad_glDeleteVertexArrays; +PFNGLTEXPARAMETERIVPROC glad_glTexParameteriv; +PFNGLREADBUFFERPROC glad_glReadBuffer; PFNGLVERTEXATTRIB4NIVPROC glad_glVertexAttrib4Niv; -PFNGLVERTEXATTRIB4IVPROC glad_glVertexAttrib4iv; +PFNGLCLEARPROC glad_glClear; +PFNGLUNIFORM2IPROC glad_glUniform2i; +PFNGLVERTEXATTRIBI4UIPROC glad_glVertexAttribI4ui; +PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC glad_glRenderbufferStorageMultisample; +PFNGLSAMPLECOVERAGEPROC glad_glSampleCoverage; PFNGLGETFRAGDATAINDEXPROC glad_glGetFragDataIndex; -PFNGLUNMAPBUFFERPROC glad_glUnmapBuffer; -PFNGLVERTEXATTRIBI3IVPROC glad_glVertexAttribI3iv; -PFNGLFLUSHPROC glad_glFlush; -PFNGLISFRAMEBUFFERPROC glad_glIsFramebuffer; -PFNGLFRAMEBUFFERTEXTURE3DPROC glad_glFramebufferTexture3D; -PFNGLBEGINQUERYPROC glad_glBeginQuery; -PFNGLFLUSHMAPPEDBUFFERRANGEPROC glad_glFlushMappedBufferRange; -PFNGLVERTEXATTRIBI1UIVPROC glad_glVertexAttribI1uiv; -PFNGLDRAWELEMENTSINSTANCEDPROC glad_glDrawElementsInstanced; -PFNGLISSYNCPROC glad_glIsSync; -PFNGLISENABLEDPROC glad_glIsEnabled; -PFNGLGETSHADERINFOLOGPROC glad_glGetShaderInfoLog; -PFNGLVERTEXATTRIB3DVPROC glad_glVertexAttrib3dv; +PFNGLGETSTRINGIPROC glad_glGetStringi; +PFNGLUNIFORM2UIPROC glad_glUniform2ui; +PFNGLPIXELSTOREFPROC glad_glPixelStoref; +PFNGLENDTRANSFORMFEEDBACKPROC glad_glEndTransformFeedback; +PFNGLUNIFORM4FPROC glad_glUniform4f; +PFNGLPRIMITIVERESTARTINDEXPROC glad_glPrimitiveRestartIndex; +PFNGLVERTEXATTRIB4FPROC glad_glVertexAttrib4f; +PFNGLUNIFORM4IPROC glad_glUniform4i; +PFNGLTEXIMAGE3DPROC glad_glTexImage3D; +PFNGLVERTEXATTRIB1SPROC glad_glVertexAttrib1s; +PFNGLTEXPARAMETERFVPROC glad_glTexParameterfv; +PFNGLCOLORP4UIVPROC glad_glColorP4uiv; +PFNGLUNIFORM1FPROC glad_glUniform1f; +PFNGLGETACTIVEUNIFORMNAMEPROC glad_glGetActiveUniformName; +PFNGLGETTEXPARAMETERIVPROC glad_glGetTexParameteriv; +PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC glad_glDrawRangeElementsBaseVertex; +PFNGLGETTEXLEVELPARAMETERIVPROC glad_glGetTexLevelParameteriv; +PFNGLCLEARDEPTHPROC glad_glClearDepth; +PFNGLVERTEXATTRIBI3IPROC glad_glVertexAttribI3i; +PFNGLBEGINTRANSFORMFEEDBACKPROC glad_glBeginTransformFeedback; +PFNGLPOINTPARAMETERFPROC glad_glPointParameterf; +PFNGLFENCESYNCPROC glad_glFenceSync; +PFNGLISTEXTUREPROC glad_glIsTexture; +PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC glad_glGetFramebufferAttachmentParameteriv; +PFNGLBINDTEXTUREPROC glad_glBindTexture; +PFNGLGETACTIVEATTRIBPROC glad_glGetActiveAttrib; +PFNGLENDCONDITIONALRENDERPROC glad_glEndConditionalRender; +PFNGLGETBUFFERPARAMETERI64VPROC glad_glGetBufferParameteri64v; +PFNGLSTENCILFUNCSEPARATEPROC glad_glStencilFuncSeparate; +PFNGLGETBUFFERSUBDATAPROC glad_glGetBufferSubData; +PFNGLPOINTPARAMETERFVPROC glad_glPointParameterfv; +PFNGLCOLORMASKIPROC glad_glColorMaski; +PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC glad_glDrawElementsInstancedBaseVertex; +PFNGLGETBUFFERPARAMETERIVPROC glad_glGetBufferParameteriv; +PFNGLGETQUERYOBJECTI64VPROC glad_glGetQueryObjecti64v; +PFNGLCOLORP3UIPROC glad_glColorP3ui; +PFNGLCOPYTEXSUBIMAGE1DPROC glad_glCopyTexSubImage1D; PFNGLVERTEXATTRIBI4IVPROC glad_glVertexAttribI4iv; -PFNGLUNIFORMMATRIX2X3FVPROC glad_glUniformMatrix2x3fv; -PFNGLVERTEXATTRIBI4UIPROC glad_glVertexAttribI4ui; -PFNGLGETMULTISAMPLEFVPROC glad_glGetMultisamplefv; -PFNGLVERTEXATTRIBI3UIVPROC glad_glVertexAttribI3uiv; -PFNGLBEGINCONDITIONALRENDERPROC glad_glBeginConditionalRender; PFNGLVERTEXATTRIB4SPROC glad_glVertexAttrib4s; -PFNGLVERTEXATTRIB4UIVPROC glad_glVertexAttrib4uiv; -PFNGLTRANSFORMFEEDBACKVARYINGSPROC glad_glTransformFeedbackVaryings; -PFNGLVERTEXATTRIBP1UIPROC glad_glVertexAttribP1ui; -PFNGLCOLORP4UIVPROC glad_glColorP4uiv; -PFNGLGETSHADERSOURCEPROC glad_glGetShaderSource; +PFNGLSTENCILOPSEPARATEPROC glad_glStencilOpSeparate; +PFNGLTEXPARAMETERFPROC glad_glTexParameterf; +PFNGLVERTEXATTRIB4BVPROC glad_glVertexAttrib4bv; +PFNGLBINDFRAGDATALOCATIONPROC glad_glBindFragDataLocation; +PFNGLISBUFFERPROC glad_glIsBuffer; +PFNGLFINISHPROC glad_glFinish; +PFNGLVERTEXATTRIB1SVPROC glad_glVertexAttrib1sv; +PFNGLDRAWELEMENTSBASEVERTEXPROC glad_glDrawElementsBaseVertex; +PFNGLISENABLEDPROC glad_glIsEnabled; +PFNGLDELETETEXTURESPROC glad_glDeleteTextures; +PFNGLFRONTFACEPROC glad_glFrontFace; +PFNGLVERTEXATTRIBI1IVPROC glad_glVertexAttribI1iv; +PFNGLFRAMEBUFFERTEXTURE2DPROC glad_glFramebufferTexture2D; +PFNGLDELETEPROGRAMPROC glad_glDeleteProgram; +PFNGLCREATEPROGRAMPROC glad_glCreateProgram; +PFNGLUNIFORM3IVPROC glad_glUniform3iv; +PFNGLCLEARBUFFERFIPROC glad_glClearBufferfi; +PFNGLQUERYCOUNTERPROC glad_glQueryCounter; +PFNGLCLEARBUFFERUIVPROC glad_glClearBufferuiv; +PFNGLBINDSAMPLERPROC glad_glBindSampler; +PFNGLVERTEXATTRIBIPOINTERPROC glad_glVertexAttribIPointer; +PFNGLSTENCILMASKPROC glad_glStencilMask; +PFNGLGETVERTEXATTRIBFVPROC glad_glGetVertexAttribfv; +PFNGLMULTITEXCOORDP1UIVPROC glad_glMultiTexCoordP1uiv; +PFNGLPOINTPARAMETERIPROC glad_glPointParameteri; +PFNGLMULTITEXCOORDP3UIPROC glad_glMultiTexCoordP3ui; +PFNGLUNIFORM3UIPROC glad_glUniform3ui; +PFNGLGETATTACHEDSHADERSPROC glad_glGetAttachedShaders; +PFNGLENABLEVERTEXATTRIBARRAYPROC glad_glEnableVertexAttribArray; +PFNGLUNIFORM1UIPROC glad_glUniform1ui; +PFNGLISRENDERBUFFERPROC glad_glIsRenderbuffer; +PFNGLBEGINQUERYPROC glad_glBeginQuery; +PFNGLVERTEXP4UIPROC glad_glVertexP4ui; +PFNGLGETFLOATVPROC glad_glGetFloatv; +PFNGLUNIFORMMATRIX3X2FVPROC glad_glUniformMatrix3x2fv; +PFNGLSAMPLERPARAMETERIVPROC glad_glSamplerParameteriv; +PFNGLGETBOOLEANVPROC glad_glGetBooleanv; +PFNGLUNIFORM3FVPROC glad_glUniform3fv; +PFNGLISSAMPLERPROC glad_glIsSampler; +PFNGLVERTEXATTRIB4IVPROC glad_glVertexAttrib4iv; PFNGLMULTIDRAWELEMENTSPROC glad_glMultiDrawElements; -PFNGLUNIFORMMATRIX4X3FVPROC glad_glUniformMatrix4x3fv; -PFNGLTEXIMAGE1DPROC glad_glTexImage1D; -PFNGLISENABLEDIPROC glad_glIsEnabledi; -PFNGLTEXIMAGE2DPROC glad_glTexImage2D; -PFNGLVERTEXATTRIB4NBVPROC glad_glVertexAttrib4Nbv; -PFNGLGETSAMPLERPARAMETERIIVPROC glad_glGetSamplerParameterIiv; -PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC glad_glRenderbufferStorageMultisample; +PFNGLFRAMEBUFFERTEXTUREPROC glad_glFramebufferTexture; +PFNGLGENBUFFERSPROC glad_glGenBuffers; +PFNGLCOPYTEXSUBIMAGE3DPROC glad_glCopyTexSubImage3D; +PFNGLBLENDCOLORPROC glad_glBlendColor; +PFNGLGETPROGRAMIVPROC glad_glGetProgramiv; +PFNGLBUFFERDATAPROC glad_glBufferData; +PFNGLDISABLEPROC glad_glDisable; PFNGLCOLORP3UIVPROC glad_glColorP3uiv; -PFNGLBLENDEQUATIONSEPARATEPROC glad_glBlendEquationSeparate; -PFNGLTEXCOORDP4UIVPROC glad_glTexCoordP4uiv; -PFNGLGETQUERYOBJECTIVPROC glad_glGetQueryObjectiv; -PFNGLVERTEXATTRIB4NUBPROC glad_glVertexAttrib4Nub; -PFNGLGETATTRIBLOCATIONPROC glad_glGetAttribLocation; +PFNGLFRAMEBUFFERRENDERBUFFERPROC glad_glFramebufferRenderbuffer; +PFNGLGETCOMPRESSEDTEXIMAGEPROC glad_glGetCompressedTexImage; +PFNGLSAMPLERPARAMETERFPROC glad_glSamplerParameterf; +PFNGLGETDOUBLEVPROC glad_glGetDoublev; +PFNGLVERTEXATTRIBI2UIVPROC glad_glVertexAttribI2uiv; +PFNGLPIXELSTOREIPROC glad_glPixelStorei; +PFNGLVERTEXATTRIB3SVPROC glad_glVertexAttrib3sv; +PFNGLCOPYTEXIMAGE2DPROC glad_glCopyTexImage2D; +PFNGLSHADERSOURCEPROC glad_glShaderSource; +PFNGLGETVERTEXATTRIBIVPROC glad_glGetVertexAttribiv; +PFNGLUNIFORMMATRIX3FVPROC glad_glUniformMatrix3fv; +PFNGLVERTEXP2UIPROC glad_glVertexP2ui; +PFNGLGETINTEGERVPROC glad_glGetIntegerv; +PFNGLUNIFORM2IVPROC glad_glUniform2iv; +PFNGLVERTEXATTRIBDIVISORPROC glad_glVertexAttribDivisor; +PFNGLLINKPROGRAMPROC glad_glLinkProgram; +PFNGLDETACHSHADERPROC glad_glDetachShader; +PFNGLDRAWBUFFERSPROC glad_glDrawBuffers; +PFNGLVERTEXATTRIBI3UIVPROC glad_glVertexAttribI3uiv; +PFNGLMAPBUFFERPROC glad_glMapBuffer; +PFNGLUNIFORM3UIVPROC glad_glUniform3uiv; +PFNGLSTENCILMASKSEPARATEPROC glad_glStencilMaskSeparate; +PFNGLTEXPARAMETERIPROC glad_glTexParameteri; +PFNGLVERTEXATTRIB3DVPROC glad_glVertexAttrib3dv; +PFNGLVERTEXATTRIB1DVPROC glad_glVertexAttrib1dv; +PFNGLCLEARCOLORPROC glad_glClearColor; +PFNGLCLEARSTENCILPROC glad_glClearStencil; +PFNGLGETINTEGERI_VPROC glad_glGetIntegeri_v; +PFNGLREADPIXELSPROC glad_glReadPixels; +PFNGLPOINTPARAMETERIVPROC glad_glPointParameteriv; PFNGLMULTITEXCOORDP3UIVPROC glad_glMultiTexCoordP3uiv; -PFNGLGENRENDERBUFFERSPROC glad_glGenRenderbuffers; -PFNGLBLITFRAMEBUFFERPROC glad_glBlitFramebuffer; -PFNGLCOPYBUFFERSUBDATAPROC glad_glCopyBufferSubData; -PFNGLCOPYTEXSUBIMAGE3DPROC glad_glCopyTexSubImage3D; -PFNGLUSEPROGRAMPROC glad_glUseProgram; -PFNGLBLENDFUNCSEPARATEPROC glad_glBlendFuncSeparate; -PFNGLCOLORMASKIPROC glad_glColorMaski; +PFNGLVERTEXATTRIB3FPROC glad_glVertexAttrib3f; +PFNGLCLEARBUFFERIVPROC glad_glClearBufferiv; +PFNGLHINTPROC glad_glHint; +PFNGLGENQUERIESPROC glad_glGenQueries; +PFNGLGETVERTEXATTRIBIUIVPROC glad_glGetVertexAttribIuiv; +PFNGLDELETEBUFFERSPROC glad_glDeleteBuffers; +PFNGLGENVERTEXARRAYSPROC glad_glGenVertexArrays; +PFNGLCOMPRESSEDTEXIMAGE1DPROC glad_glCompressedTexImage1D; +PFNGLCOPYTEXIMAGE1DPROC glad_glCopyTexImage1D; +PFNGLVERTEXATTRIBI2IVPROC glad_glVertexAttribI2iv; +PFNGLGETPROGRAMINFOLOGPROC glad_glGetProgramInfoLog; +PFNGLISQUERYPROC glad_glIsQuery; +int GLAD_GL_ARB_debug_output; int GLAD_GL_EXT_texture_compression_s3tc; int GLAD_GL_KHR_debug; int GLAD_GL_EXT_texture_sRGB; +PFNGLDEBUGMESSAGECONTROLARBPROC glad_glDebugMessageControlARB; +PFNGLDEBUGMESSAGEINSERTARBPROC glad_glDebugMessageInsertARB; +PFNGLDEBUGMESSAGECALLBACKARBPROC glad_glDebugMessageCallbackARB; +PFNGLGETDEBUGMESSAGELOGARBPROC glad_glGetDebugMessageLogARB; PFNGLDEBUGMESSAGECONTROLPROC glad_glDebugMessageControl; PFNGLDEBUGMESSAGEINSERTPROC glad_glDebugMessageInsert; PFNGLDEBUGMESSAGECALLBACKPROC glad_glDebugMessageCallback; @@ -1046,6 +1052,13 @@ static void load_GL_VERSION_3_3(GLADloadproc load) { glad_glSecondaryColorP3ui = (PFNGLSECONDARYCOLORP3UIPROC)load("glSecondaryColorP3ui"); glad_glSecondaryColorP3uiv = (PFNGLSECONDARYCOLORP3UIVPROC)load("glSecondaryColorP3uiv"); } +static void load_GL_ARB_debug_output(GLADloadproc load) { + if(!GLAD_GL_ARB_debug_output) return; + glad_glDebugMessageControlARB = (PFNGLDEBUGMESSAGECONTROLARBPROC)load("glDebugMessageControlARB"); + glad_glDebugMessageInsertARB = (PFNGLDEBUGMESSAGEINSERTARBPROC)load("glDebugMessageInsertARB"); + glad_glDebugMessageCallbackARB = (PFNGLDEBUGMESSAGECALLBACKARBPROC)load("glDebugMessageCallbackARB"); + glad_glGetDebugMessageLogARB = (PFNGLGETDEBUGMESSAGELOGARBPROC)load("glGetDebugMessageLogARB"); +} static void load_GL_KHR_debug(GLADloadproc load) { if(!GLAD_GL_KHR_debug) return; glad_glDebugMessageControl = (PFNGLDEBUGMESSAGECONTROLPROC)load("glDebugMessageControl"); @@ -1073,6 +1086,7 @@ static void load_GL_KHR_debug(GLADloadproc load) { } static int find_extensionsGL(void) { if (!get_exts()) return 0; + GLAD_GL_ARB_debug_output = has_ext("GL_ARB_debug_output"); GLAD_GL_EXT_texture_compression_s3tc = has_ext("GL_EXT_texture_compression_s3tc"); GLAD_GL_EXT_texture_sRGB = has_ext("GL_EXT_texture_sRGB"); GLAD_GL_KHR_debug = has_ext("GL_KHR_debug"); @@ -1154,6 +1168,7 @@ int gladLoadGLLoader(GLADloadproc load) { load_GL_VERSION_3_3(load); if (!find_extensionsGL()) return 0; + load_GL_ARB_debug_output(load); load_GL_KHR_debug(load); return GLVersion.major != 0 || GLVersion.minor != 0; } diff --git a/glad.h b/glad.h @@ -1,12 +1,13 @@ /* - OpenGL loader generated by glad 0.1.12a0 on Wed Aug 31 11:01:57 2016. + OpenGL loader generated by glad 0.1.12a0 on Wed Sep 14 15:48:12 2016. Language/Generator: C/C++ Specification: gl APIs: gl=3.3 Profile: core Extensions: + GL_ARB_debug_output, GL_EXT_texture_compression_s3tc, GL_EXT_texture_sRGB, GL_KHR_debug @@ -15,9 +16,9 @@ Omit khrplatform: True Commandline: - --profile="core" --api="gl=3.3" --generator="c" --spec="gl" --omit-khrplatform --extensions="GL_EXT_texture_compression_s3tc,GL_EXT_texture_sRGB,GL_KHR_debug" + --profile="core" --api="gl=3.3" --generator="c" --spec="gl" --omit-khrplatform --extensions="GL_ARB_debug_output,GL_EXT_texture_compression_s3tc,GL_EXT_texture_sRGB,GL_KHR_debug" Online: - http://glad.dav1d.de/#profile=core&language=c&specification=gl&loader=on&api=gl%3D3.3&extensions=GL_EXT_texture_compression_s3tc&extensions=GL_EXT_texture_sRGB&extensions=GL_KHR_debug + http://glad.dav1d.de/#profile=core&language=c&specification=gl&loader=on&api=gl%3D3.3&extensions=GL_ARB_debug_output&extensions=GL_EXT_texture_compression_s3tc&extensions=GL_EXT_texture_sRGB&extensions=GL_KHR_debug */ @@ -2155,6 +2156,28 @@ typedef void (APIENTRYP PFNGLSECONDARYCOLORP3UIVPROC)(GLenum type, const GLuint GLAPI PFNGLSECONDARYCOLORP3UIVPROC glad_glSecondaryColorP3uiv; #define glSecondaryColorP3uiv glad_glSecondaryColorP3uiv #endif +#define GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB 0x8242 +#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB 0x8243 +#define GL_DEBUG_CALLBACK_FUNCTION_ARB 0x8244 +#define GL_DEBUG_CALLBACK_USER_PARAM_ARB 0x8245 +#define GL_DEBUG_SOURCE_API_ARB 0x8246 +#define GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB 0x8247 +#define GL_DEBUG_SOURCE_SHADER_COMPILER_ARB 0x8248 +#define GL_DEBUG_SOURCE_THIRD_PARTY_ARB 0x8249 +#define GL_DEBUG_SOURCE_APPLICATION_ARB 0x824A +#define GL_DEBUG_SOURCE_OTHER_ARB 0x824B +#define GL_DEBUG_TYPE_ERROR_ARB 0x824C +#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB 0x824D +#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB 0x824E +#define GL_DEBUG_TYPE_PORTABILITY_ARB 0x824F +#define GL_DEBUG_TYPE_PERFORMANCE_ARB 0x8250 +#define GL_DEBUG_TYPE_OTHER_ARB 0x8251 +#define GL_MAX_DEBUG_MESSAGE_LENGTH_ARB 0x9143 +#define GL_MAX_DEBUG_LOGGED_MESSAGES_ARB 0x9144 +#define GL_DEBUG_LOGGED_MESSAGES_ARB 0x9145 +#define GL_DEBUG_SEVERITY_HIGH_ARB 0x9146 +#define GL_DEBUG_SEVERITY_MEDIUM_ARB 0x9147 +#define GL_DEBUG_SEVERITY_LOW_ARB 0x9148 #define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0 #define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1 #define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F2 @@ -2256,6 +2279,22 @@ GLAPI PFNGLSECONDARYCOLORP3UIVPROC glad_glSecondaryColorP3uiv; #define GL_STACK_OVERFLOW_KHR 0x0503 #define GL_STACK_UNDERFLOW_KHR 0x0504 #define GL_DISPLAY_LIST 0x82E7 +#ifndef GL_ARB_debug_output +#define GL_ARB_debug_output 1 +GLAPI int GLAD_GL_ARB_debug_output; +typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLARBPROC)(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled); +GLAPI PFNGLDEBUGMESSAGECONTROLARBPROC glad_glDebugMessageControlARB; +#define glDebugMessageControlARB glad_glDebugMessageControlARB +typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTARBPROC)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf); +GLAPI PFNGLDEBUGMESSAGEINSERTARBPROC glad_glDebugMessageInsertARB; +#define glDebugMessageInsertARB glad_glDebugMessageInsertARB +typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKARBPROC)(GLDEBUGPROCARB callback, const void *userParam); +GLAPI PFNGLDEBUGMESSAGECALLBACKARBPROC glad_glDebugMessageCallbackARB; +#define glDebugMessageCallbackARB glad_glDebugMessageCallbackARB +typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGARBPROC)(GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog); +GLAPI PFNGLGETDEBUGMESSAGELOGARBPROC glad_glGetDebugMessageLogARB; +#define glGetDebugMessageLogARB glad_glGetDebugMessageLogARB +#endif #ifndef GL_EXT_texture_compression_s3tc #define GL_EXT_texture_compression_s3tc 1 GLAPI int GLAD_GL_EXT_texture_compression_s3tc;