medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit f4a4e36534b5a0c3303b89c81b0dab16297023b6
parent 85fad0e6594f8923a59baf96bdb3e188def68ab2
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Tue Dec 27 16:43:39 +0200

Try AMD_debug_output too

Diffstat:
gl.cc | 47+++++++++++++++++++++++++++++++++++++++++++++--
glad.cc | 703++++++++++++++++++++++++++++++++++++++++---------------------------------------
glad.h | 37++++++++++++++++++++++++++++++++++---
scripts/glad.sh | 2+-
4 files changed, 439 insertions(+), 350 deletions(-)
diff --git a/gl.cc b/gl.cc @@ -18,16 +18,27 @@ static const char * type_string( GLenum type ) { switch( type ) { case GL_DEBUG_TYPE_ERROR: + case GL_DEBUG_CATEGORY_API_ERROR_AMD: return "error"; case GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR: + case GL_DEBUG_CATEGORY_DEPRECATION_AMD: return "deprecated"; case GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR: + case GL_DEBUG_CATEGORY_UNDEFINED_BEHAVIOR_AMD: return "undefined"; case GL_DEBUG_TYPE_PORTABILITY: return "nonportable"; case GL_DEBUG_TYPE_PERFORMANCE: + case GL_DEBUG_CATEGORY_PERFORMANCE_AMD: return "performance"; + case GL_DEBUG_CATEGORY_WINDOW_SYSTEM_AMD: + return "window system"; + case GL_DEBUG_CATEGORY_SHADER_COMPILER_AMD: + return "shader compiler"; + case GL_DEBUG_CATEGORY_APPLICATION_AMD: + return "application"; case GL_DEBUG_TYPE_OTHER: + case GL_DEBUG_CATEGORY_OTHER_AMD: return "other"; default: return "idk"; @@ -37,10 +48,13 @@ static const char * type_string( GLenum type ) { static const char * severity_string( GLenum severity ) { switch( severity ) { case GL_DEBUG_SEVERITY_LOW: + // case GL_DEBUG_SEVERITY_LOW_AMD: return GREEN "low" RESET; case GL_DEBUG_SEVERITY_MEDIUM: + // case GL_DEBUG_SEVERITY_MEDIUM_AMD: return YELLOW "medium" RESET; case GL_DEBUG_SEVERITY_HIGH: + // case GL_DEBUG_SEVERITY_HIGH_AMD: return RED "high" RESET; default: return "idk"; @@ -71,6 +85,30 @@ static void gl_debug_output_callback( } } +static void gl_debug_output_callback_amd( + GLuint id, GLenum type, GLenum severity, GLsizei length, + const GLchar * message, const void * _ +) { + if( id == 131169 || id == 131185 || id == 131218 || id == 131204 ) { + return; + } + + // we don't want the trailing \n + size_t len = strlen( message ); + if( len > 0 && message[ len - 1 ] == '\n' ) { + len--; + } + + WARN( "GL [%s - %s]: %.*s", + type_string( type ), + severity_string( severity ), + len, message ); + + if( severity == GL_DEBUG_SEVERITY_HIGH ) { + ASSERT( 0 ); + } +} + static void glfw_error_callback( int code, const char * message ) { WARN( "GLFW error %d: %s", code, message ); } @@ -108,7 +146,6 @@ GLFWwindow * gl_init() { GLAD_GL_EXT_texture_compression_s3tc ? " EXT_texture_compression_s3tc" : "", GLAD_GL_EXT_texture_compression_rgtc ? " EXT_texture_compression_rgtc" : "" ); -#if PLATFORM_LINUX if( GLAD_GL_KHR_debug != 0 ) { GLint context_flags; glGetIntegerv( GL_CONTEXT_FLAGS, &context_flags ); @@ -121,7 +158,13 @@ GLFWwindow * gl_init() { glDebugMessageControl( GL_DONT_CARE, GL_DONT_CARE, GL_DONT_CARE, 0, NULL, GL_TRUE ); } } -#endif + + if( GLAD_GL_AMD_debug_output != 0 ) { + INFO( "Initialising AMD debug output" ); + + glDebugMessageCallbackAMD( ( GLDEBUGPROCAMD ) gl_debug_output_callback_amd, NULL ); + glDebugMessageEnableAMD( GL_DONT_CARE, GL_DONT_CARE, 0, NULL, GL_TRUE ); + } INFO( "Version %s", glGetString( GL_VERSION ) ); INFO( "Vendor %s", glGetString( GL_VENDOR ) ); diff --git a/glad.cc b/glad.cc @@ -1,12 +1,13 @@ /* - OpenGL loader generated by glad 0.1.12a0 on Sun Dec 25 14:12:51 2016. + OpenGL loader generated by glad 0.1.12a0 on Tue Dec 27 16:37:20 2016. Language/Generator: C/C++ Specification: gl APIs: gl=3.3 Profile: core Extensions: + GL_AMD_debug_output, GL_EXT_texture_compression_rgtc, GL_EXT_texture_compression_s3tc, GL_EXT_texture_sRGB, @@ -16,9 +17,9 @@ Omit khrplatform: True Commandline: - --profile="core" --api="gl=3.3" --generator="c" --spec="gl" --omit-khrplatform --extensions="GL_EXT_texture_compression_rgtc,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_AMD_debug_output,GL_EXT_texture_compression_rgtc,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_rgtc&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_AMD_debug_output&extensions=GL_EXT_texture_compression_rgtc&extensions=GL_EXT_texture_compression_s3tc&extensions=GL_EXT_texture_sRGB&extensions=GL_KHR_debug */ #include <stdio.h> @@ -235,384 +236,389 @@ int GLAD_GL_VERSION_3_0; int GLAD_GL_VERSION_3_1; int GLAD_GL_VERSION_3_2; int GLAD_GL_VERSION_3_3; -PFNGLISENABLEDPROC glad_glIsEnabled; -PFNGLCLEARBUFFERFVPROC glad_glClearBufferfv; -PFNGLMAPBUFFERRANGEPROC glad_glMapBufferRange; -PFNGLCLEARBUFFERIVPROC glad_glClearBufferiv; -PFNGLPOLYGONOFFSETPROC glad_glPolygonOffset; -PFNGLGENFRAMEBUFFERSPROC glad_glGenFramebuffers; -PFNGLUNIFORM2UIPROC glad_glUniform2ui; -PFNGLVERTEXATTRIBI1UIVPROC glad_glVertexAttribI1uiv; -PFNGLVERTEXATTRIB2FVPROC glad_glVertexAttrib2fv; -PFNGLLINEWIDTHPROC glad_glLineWidth; -PFNGLGETSYNCIVPROC glad_glGetSynciv; -PFNGLSTENCILMASKSEPARATEPROC glad_glStencilMaskSeparate; -PFNGLCLEARSTENCILPROC glad_glClearStencil; -PFNGLPOLYGONMODEPROC glad_glPolygonMode; -PFNGLMAPBUFFERPROC glad_glMapBuffer; -PFNGLCREATESHADERPROC glad_glCreateShader; -PFNGLUNIFORM1UIPROC glad_glUniform1ui; -PFNGLGETMULTISAMPLEFVPROC glad_glGetMultisamplefv; -PFNGLVERTEXATTRIBI4SVPROC glad_glVertexAttribI4sv; -PFNGLGETBUFFERPARAMETERI64VPROC glad_glGetBufferParameteri64v; -PFNGLBINDTEXTUREPROC glad_glBindTexture; -PFNGLCLEARBUFFERFIPROC glad_glClearBufferfi; -PFNGLGETUNIFORMBLOCKINDEXPROC glad_glGetUniformBlockIndex; -PFNGLWAITSYNCPROC glad_glWaitSync; -PFNGLVALIDATEPROGRAMPROC glad_glValidateProgram; -PFNGLDRAWBUFFERSPROC glad_glDrawBuffers; +PFNGLGENVERTEXARRAYSPROC glad_glGenVertexArrays; +PFNGLGETVERTEXATTRIBFVPROC glad_glGetVertexAttribfv; +PFNGLVERTEXATTRIBI3UIVPROC glad_glVertexAttribI3uiv; +PFNGLVERTEXATTRIB4FVPROC glad_glVertexAttrib4fv; +PFNGLFINISHPROC glad_glFinish; +PFNGLDELETESHADERPROC glad_glDeleteShader; +PFNGLGETVERTEXATTRIBDVPROC glad_glGetVertexAttribdv; PFNGLBUFFERSUBDATAPROC glad_glBufferSubData; -PFNGLUNIFORM1FPROC glad_glUniform1f; -PFNGLATTACHSHADERPROC glad_glAttachShader; -PFNGLTEXPARAMETERFPROC glad_glTexParameterf; -PFNGLGETBOOLEANVPROC glad_glGetBooleanv; -PFNGLMULTITEXCOORDP4UIPROC glad_glMultiTexCoordP4ui; +PFNGLGETACTIVEUNIFORMPROC glad_glGetActiveUniform; +PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC glad_glRenderbufferStorageMultisample; +PFNGLFRONTFACEPROC glad_glFrontFace; +PFNGLGETVERTEXATTRIBIIVPROC glad_glGetVertexAttribIiv; +PFNGLGETSYNCIVPROC glad_glGetSynciv; +PFNGLSTENCILFUNCSEPARATEPROC glad_glStencilFuncSeparate; +PFNGLUNIFORMMATRIX4X2FVPROC glad_glUniformMatrix4x2fv; +PFNGLBLENDFUNCSEPARATEPROC glad_glBlendFuncSeparate; +PFNGLSHADERSOURCEPROC glad_glShaderSource; +PFNGLENDTRANSFORMFEEDBACKPROC glad_glEndTransformFeedback; PFNGLVERTEXATTRIB1DVPROC glad_glVertexAttrib1dv; -PFNGLDELETETEXTURESPROC glad_glDeleteTextures; -PFNGLGETBUFFERPOINTERVPROC glad_glGetBufferPointerv; -PFNGLSTENCILOPSEPARATEPROC glad_glStencilOpSeparate; -PFNGLDEPTHRANGEPROC glad_glDepthRange; -PFNGLDELETESAMPLERSPROC glad_glDeleteSamplers; -PFNGLGETSTRINGPROC glad_glGetString; -PFNGLGETVERTEXATTRIBIVPROC glad_glGetVertexAttribiv; -PFNGLTEXCOORDP1UIVPROC glad_glTexCoordP1uiv; -PFNGLGETQUERYOBJECTUIVPROC glad_glGetQueryObjectuiv; -PFNGLVERTEXATTRIBI1IVPROC glad_glVertexAttribI1iv; -PFNGLGETTEXPARAMETERFVPROC glad_glGetTexParameterfv; -PFNGLCOLORP3UIVPROC glad_glColorP3uiv; -PFNGLCLEARPROC glad_glClear; -PFNGLPRIMITIVERESTARTINDEXPROC glad_glPrimitiveRestartIndex; -PFNGLUNIFORMMATRIX3X2FVPROC glad_glUniformMatrix3x2fv; -PFNGLGETPROGRAMIVPROC glad_glGetProgramiv; -PFNGLUNIFORM3FVPROC glad_glUniform3fv; -PFNGLPOINTPARAMETERIVPROC glad_glPointParameteriv; -PFNGLVERTEXATTRIB2DPROC glad_glVertexAttrib2d; -PFNGLGETFLOATVPROC glad_glGetFloatv; -PFNGLVERTEXATTRIBI1UIPROC glad_glVertexAttribI1ui; -PFNGLSAMPLERPARAMETERIPROC glad_glSamplerParameteri; -PFNGLGETSAMPLERPARAMETERIUIVPROC glad_glGetSamplerParameterIuiv; +PFNGLVERTEXATTRIBI3IVPROC glad_glVertexAttribI3iv; +PFNGLUNIFORM2FPROC glad_glUniform2f; +PFNGLVERTEXATTRIBI2UIVPROC glad_glVertexAttribI2uiv; +PFNGLVERTEXATTRIB4UBVPROC glad_glVertexAttrib4ubv; +PFNGLTEXCOORDP2UIVPROC glad_glTexCoordP2uiv; +PFNGLENABLEVERTEXATTRIBARRAYPROC glad_glEnableVertexAttribArray; +PFNGLVERTEXATTRIB1FVPROC glad_glVertexAttrib1fv; +PFNGLTEXIMAGE1DPROC glad_glTexImage1D; +PFNGLISTEXTUREPROC glad_glIsTexture; +PFNGLCOPYBUFFERSUBDATAPROC glad_glCopyBufferSubData; PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC glad_glGetActiveUniformBlockName; -PFNGLCOPYTEXSUBIMAGE2DPROC glad_glCopyTexSubImage2D; -PFNGLENABLEPROC glad_glEnable; +PFNGLVERTEXATTRIBPOINTERPROC glad_glVertexAttribPointer; PFNGLNORMALP3UIVPROC glad_glNormalP3uiv; -PFNGLVERTEXATTRIBI4UIVPROC glad_glVertexAttribI4uiv; -PFNGLGETRENDERBUFFERPARAMETERIVPROC glad_glGetRenderbufferParameteriv; -PFNGLDELETEPROGRAMPROC glad_glDeleteProgram; -PFNGLDETACHSHADERPROC glad_glDetachShader; -PFNGLVERTEXATTRIB2DVPROC glad_glVertexAttrib2dv; -PFNGLGETQUERYOBJECTI64VPROC glad_glGetQueryObjecti64v; -PFNGLGETACTIVEUNIFORMPROC glad_glGetActiveUniform; -PFNGLGETBOOLEANI_VPROC glad_glGetBooleani_v; -PFNGLBLENDEQUATIONSEPARATEPROC glad_glBlendEquationSeparate; -PFNGLFRAMEBUFFERTEXTURELAYERPROC glad_glFramebufferTextureLayer; -PFNGLBINDBUFFERPROC glad_glBindBuffer; -PFNGLGENSAMPLERSPROC glad_glGenSamplers; -PFNGLSTENCILMASKPROC glad_glStencilMask; -PFNGLVERTEXATTRIB4USVPROC glad_glVertexAttrib4usv; -PFNGLUNIFORMMATRIX3FVPROC glad_glUniformMatrix3fv; -PFNGLMULTITEXCOORDP1UIVPROC glad_glMultiTexCoordP1uiv; -PFNGLTEXCOORDP2UIVPROC glad_glTexCoordP2uiv; -PFNGLUSEPROGRAMPROC glad_glUseProgram; -PFNGLCOPYTEXSUBIMAGE1DPROC glad_glCopyTexSubImage1D; +PFNGLGETBOOLEANVPROC glad_glGetBooleanv; +PFNGLGETFRAGDATAINDEXPROC glad_glGetFragDataIndex; +PFNGLVERTEXATTRIBI4IVPROC glad_glVertexAttribI4iv; +PFNGLVERTEXATTRIBP3UIVPROC glad_glVertexAttribP3uiv; +PFNGLVERTEXATTRIBI4SVPROC glad_glVertexAttribI4sv; +PFNGLUNIFORM4UIVPROC glad_glUniform4uiv; +PFNGLMULTIDRAWARRAYSPROC glad_glMultiDrawArrays; +PFNGLMULTITEXCOORDP3UIVPROC glad_glMultiTexCoordP3uiv; +PFNGLVERTEXATTRIBI1UIPROC glad_glVertexAttribI1ui; +PFNGLTEXIMAGE2DMULTISAMPLEPROC glad_glTexImage2DMultisample; +PFNGLTEXPARAMETERFPROC glad_glTexParameterf; +PFNGLCLEARSTENCILPROC glad_glClearStencil; +PFNGLVERTEXATTRIBI4USVPROC glad_glVertexAttribI4usv; +PFNGLBINDFRAMEBUFFERPROC glad_glBindFramebuffer; +PFNGLTEXCOORDP4UIVPROC glad_glTexCoordP4uiv; +PFNGLCOMPRESSEDTEXIMAGE3DPROC glad_glCompressedTexImage3D; +PFNGLVERTEXATTRIB4UIVPROC glad_glVertexAttrib4uiv; +PFNGLENDCONDITIONALRENDERPROC glad_glEndConditionalRender; PFNGLACTIVETEXTUREPROC glad_glActiveTexture; -PFNGLVERTEXATTRIBI2UIPROC glad_glVertexAttribI2ui; -PFNGLVERTEXATTRIBI3IPROC glad_glVertexAttribI3i; -PFNGLBINDVERTEXARRAYPROC glad_glBindVertexArray; -PFNGLVERTEXATTRIB3DVPROC glad_glVertexAttrib3dv; -PFNGLUNMAPBUFFERPROC glad_glUnmapBuffer; -PFNGLCOLORMASKIPROC glad_glColorMaski; -PFNGLVERTEXATTRIBI4UBVPROC glad_glVertexAttribI4ubv; -PFNGLVERTEXP4UIPROC glad_glVertexP4ui; -PFNGLCULLFACEPROC glad_glCullFace; -PFNGLISBUFFERPROC glad_glIsBuffer; -PFNGLUNIFORM1FVPROC glad_glUniform1fv; -PFNGLDELETEQUERIESPROC glad_glDeleteQueries; PFNGLVERTEXATTRIB3SVPROC glad_glVertexAttrib3sv; -PFNGLVERTEXATTRIB4SPROC glad_glVertexAttrib4s; -PFNGLMULTITEXCOORDP3UIVPROC glad_glMultiTexCoordP3uiv; -PFNGLISRENDERBUFFERPROC glad_glIsRenderbuffer; -PFNGLTRANSFORMFEEDBACKVARYINGSPROC glad_glTransformFeedbackVaryings; -PFNGLGETVERTEXATTRIBPOINTERVPROC glad_glGetVertexAttribPointerv; -PFNGLCHECKFRAMEBUFFERSTATUSPROC glad_glCheckFramebufferStatus; -PFNGLGETSHADERSOURCEPROC glad_glGetShaderSource; +PFNGLVERTEXATTRIB4NUBPROC glad_glVertexAttrib4Nub; +PFNGLLOGICOPPROC glad_glLogicOp; +PFNGLMULTITEXCOORDP3UIPROC glad_glMultiTexCoordP3ui; PFNGLDRAWELEMENTSINSTANCEDPROC glad_glDrawElementsInstanced; -PFNGLUNIFORM2FPROC glad_glUniform2f; -PFNGLUNIFORM3FPROC glad_glUniform3f; -PFNGLVERTEXATTRIB4UBVPROC glad_glVertexAttrib4ubv; -PFNGLMULTITEXCOORDP2UIPROC glad_glMultiTexCoordP2ui; -PFNGLTEXIMAGE3DMULTISAMPLEPROC glad_glTexImage3DMultisample; -PFNGLREADBUFFERPROC glad_glReadBuffer; -PFNGLSTENCILOPPROC glad_glStencilOp; -PFNGLFLUSHPROC glad_glFlush; -PFNGLVERTEXATTRIB1DPROC glad_glVertexAttrib1d; -PFNGLBEGINTRANSFORMFEEDBACKPROC glad_glBeginTransformFeedback; -PFNGLVERTEXATTRIBDIVISORPROC glad_glVertexAttribDivisor; -PFNGLVERTEXATTRIBI2IVPROC glad_glVertexAttribI2iv; -PFNGLBINDBUFFERBASEPROC glad_glBindBufferBase; -PFNGLTEXPARAMETERIIVPROC glad_glTexParameterIiv; -PFNGLVERTEXATTRIB1FPROC glad_glVertexAttrib1f; +PFNGLDELETEPROGRAMPROC glad_glDeleteProgram; +PFNGLVERTEXATTRIBI1IVPROC glad_glVertexAttribI1iv; +PFNGLSTENCILOPSEPARATEPROC glad_glStencilOpSeparate; +PFNGLUNIFORM2FVPROC glad_glUniform2fv; PFNGLSTENCILFUNCPROC glad_glStencilFunc; +PFNGLDEPTHFUNCPROC glad_glDepthFunc; +PFNGLVERTEXATTRIB4DVPROC glad_glVertexAttrib4dv; +PFNGLVERTEXATTRIBP2UIPROC glad_glVertexAttribP2ui; +PFNGLPIXELSTOREIPROC glad_glPixelStorei; +PFNGLBLENDEQUATIONPROC glad_glBlendEquation; +PFNGLGETVERTEXATTRIBPOINTERVPROC glad_glGetVertexAttribPointerv; +PFNGLGETSTRINGIPROC glad_glGetStringi; +PFNGLGETQUERYOBJECTIVPROC glad_glGetQueryObjectiv; +PFNGLISPROGRAMPROC glad_glIsProgram; PFNGLDELETEFRAMEBUFFERSPROC glad_glDeleteFramebuffers; -PFNGLFRAMEBUFFERTEXTUREPROC glad_glFramebufferTexture; -PFNGLGETDOUBLEVPROC glad_glGetDoublev; -PFNGLCLAMPCOLORPROC glad_glClampColor; -PFNGLPOINTPARAMETERFVPROC glad_glPointParameterfv; -PFNGLUNIFORM4UIVPROC glad_glUniform4uiv; -PFNGLGETATTRIBLOCATIONPROC glad_glGetAttribLocation; -PFNGLSECONDARYCOLORP3UIPROC glad_glSecondaryColorP3ui; -PFNGLGETFRAGDATAINDEXPROC glad_glGetFragDataIndex; -PFNGLDELETEVERTEXARRAYSPROC glad_glDeleteVertexArrays; -PFNGLVERTEXATTRIB4DPROC glad_glVertexAttrib4d; +PFNGLTEXCOORDP3UIVPROC glad_glTexCoordP3uiv; +PFNGLUNIFORM4IPROC glad_glUniform4i; +PFNGLGENTEXTURESPROC glad_glGenTextures; +PFNGLUNIFORM1IVPROC glad_glUniform1iv; +PFNGLFENCESYNCPROC glad_glFenceSync; +PFNGLVERTEXATTRIB4NUSVPROC glad_glVertexAttrib4Nusv; +PFNGLUNIFORMMATRIX2X4FVPROC glad_glUniformMatrix2x4fv; +PFNGLGETMULTISAMPLEFVPROC glad_glGetMultisamplefv; +PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC glad_glDrawElementsInstancedBaseVertex; +PFNGLBLENDCOLORPROC glad_glBlendColor; +PFNGLUNIFORM1FPROC glad_glUniform1f; +PFNGLBEGINTRANSFORMFEEDBACKPROC glad_glBeginTransformFeedback; +PFNGLBINDBUFFERPROC glad_glBindBuffer; +PFNGLGETBUFFERPOINTERVPROC glad_glGetBufferPointerv; +PFNGLBUFFERDATAPROC glad_glBufferData; +PFNGLDRAWARRAYSPROC glad_glDrawArrays; +PFNGLSTENCILOPPROC glad_glStencilOp; +PFNGLGETFLOATVPROC glad_glGetFloatv; +PFNGLSAMPLERPARAMETERIUIVPROC glad_glSamplerParameterIuiv; +PFNGLTEXCOORDP3UIPROC glad_glTexCoordP3ui; +PFNGLGETACTIVEATTRIBPROC glad_glGetActiveAttrib; +PFNGLCREATESHADERPROC glad_glCreateShader; +PFNGLGETUNIFORMLOCATIONPROC glad_glGetUniformLocation; +PFNGLLINEWIDTHPROC glad_glLineWidth; PFNGLGETPROGRAMINFOLOGPROC glad_glGetProgramInfoLog; -PFNGLUNIFORMMATRIX4FVPROC glad_glUniformMatrix4fv; +PFNGLVERTEXATTRIB2SVPROC glad_glVertexAttrib2sv; +PFNGLGENFRAMEBUFFERSPROC glad_glGenFramebuffers; +PFNGLFRAMEBUFFERTEXTURELAYERPROC glad_glFramebufferTextureLayer; +PFNGLGETATTRIBLOCATIONPROC glad_glGetAttribLocation; +PFNGLVERTEXATTRIBP3UIPROC glad_glVertexAttribP3ui; +PFNGLGETQUERYOBJECTUIVPROC glad_glGetQueryObjectuiv; +PFNGLGETTRANSFORMFEEDBACKVARYINGPROC glad_glGetTransformFeedbackVarying; +PFNGLSAMPLERPARAMETERIPROC glad_glSamplerParameteri; +PFNGLTEXIMAGE2DPROC glad_glTexImage2D; +PFNGLGETUNIFORMUIVPROC glad_glGetUniformuiv; +PFNGLDELETESAMPLERSPROC glad_glDeleteSamplers; +PFNGLBINDFRAGDATALOCATIONPROC glad_glBindFragDataLocation; +PFNGLVERTEXATTRIBIPOINTERPROC glad_glVertexAttribIPointer; +PFNGLUNIFORM2IVPROC glad_glUniform2iv; +PFNGLGETVERTEXATTRIBIUIVPROC glad_glGetVertexAttribIuiv; +PFNGLBINDATTRIBLOCATIONPROC glad_glBindAttribLocation; +PFNGLVERTEXP3UIVPROC glad_glVertexP3uiv; +PFNGLCOMPRESSEDTEXIMAGE1DPROC glad_glCompressedTexImage1D; +PFNGLVERTEXATTRIBP4UIVPROC glad_glVertexAttribP4uiv; PFNGLUNIFORM4FPROC glad_glUniform4f; -PFNGLUNIFORM1UIVPROC glad_glUniform1uiv; -PFNGLVERTEXATTRIB4NIVPROC glad_glVertexAttrib4Niv; -PFNGLBEGINCONDITIONALRENDERPROC glad_glBeginConditionalRender; -PFNGLMULTITEXCOORDP3UIPROC glad_glMultiTexCoordP3ui; -PFNGLTEXSUBIMAGE3DPROC glad_glTexSubImage3D; -PFNGLBLITFRAMEBUFFERPROC glad_glBlitFramebuffer; +PFNGLVERTEXATTRIB1SPROC glad_glVertexAttrib1s; PFNGLGETSHADERIVPROC glad_glGetShaderiv; -PFNGLCOPYTEXSUBIMAGE3DPROC glad_glCopyTexSubImage3D; -PFNGLMULTIDRAWELEMENTSPROC glad_glMultiDrawElements; -PFNGLPROVOKINGVERTEXPROC glad_glProvokingVertex; -PFNGLTEXSUBIMAGE1DPROC glad_glTexSubImage1D; -PFNGLBINDFRAMEBUFFERPROC glad_glBindFramebuffer; -PFNGLSECONDARYCOLORP3UIVPROC glad_glSecondaryColorP3uiv; -PFNGLVERTEXATTRIBP4UIPROC glad_glVertexAttribP4ui; -PFNGLVERTEXATTRIB1SVPROC glad_glVertexAttrib1sv; -PFNGLDRAWELEMENTSPROC glad_glDrawElements; -PFNGLVERTEXATTRIBP4UIVPROC glad_glVertexAttribP4uiv; -PFNGLENDTRANSFORMFEEDBACKPROC glad_glEndTransformFeedback; -PFNGLPOINTPARAMETERFPROC glad_glPointParameterf; -PFNGLFRONTFACEPROC glad_glFrontFace; -PFNGLDISABLEPROC glad_glDisable; -PFNGLCREATEPROGRAMPROC glad_glCreateProgram; +PFNGLVERTEXATTRIB3DPROC glad_glVertexAttrib3d; +PFNGLUNIFORM2UIPROC glad_glUniform2ui; +PFNGLGETRENDERBUFFERPARAMETERIVPROC glad_glGetRenderbufferParameteriv; +PFNGLVERTEXATTRIBI2UIPROC glad_glVertexAttribI2ui; PFNGLVERTEXATTRIBP1UIVPROC glad_glVertexAttribP1uiv; -PFNGLGETUNIFORMLOCATIONPROC glad_glGetUniformLocation; -PFNGLGETVERTEXATTRIBFVPROC glad_glGetVertexAttribfv; -PFNGLUNIFORM4FVPROC glad_glUniform4fv; -PFNGLVERTEXATTRIB4NUSVPROC glad_glVertexAttrib4Nusv; -PFNGLFRAMEBUFFERTEXTURE3DPROC glad_glFramebufferTexture3D; -PFNGLGETUNIFORMIVPROC glad_glGetUniformiv; -PFNGLISPROGRAMPROC glad_glIsProgram; -PFNGLTEXIMAGE1DPROC glad_glTexImage1D; -PFNGLGENQUERIESPROC glad_glGenQueries; -PFNGLCOMPRESSEDTEXIMAGE1DPROC glad_glCompressedTexImage1D; -PFNGLGETCOMPRESSEDTEXIMAGEPROC glad_glGetCompressedTexImage; -PFNGLGENBUFFERSPROC glad_glGenBuffers; -PFNGLISQUERYPROC glad_glIsQuery; +PFNGLCOPYTEXIMAGE2DPROC glad_glCopyTexImage2D; +PFNGLDELETETEXTURESPROC glad_glDeleteTextures; +PFNGLCOMPRESSEDTEXIMAGE2DPROC glad_glCompressedTexImage2D; PFNGLGETBUFFERSUBDATAPROC glad_glGetBufferSubData; -PFNGLVERTEXATTRIBP3UIPROC glad_glVertexAttribP3ui; -PFNGLMULTIDRAWARRAYSPROC glad_glMultiDrawArrays; -PFNGLUNIFORMMATRIX3X4FVPROC glad_glUniformMatrix3x4fv; -PFNGLSAMPLERPARAMETERIUIVPROC glad_glSamplerParameterIuiv; -PFNGLGENVERTEXARRAYSPROC glad_glGenVertexArrays; -PFNGLENABLEIPROC glad_glEnablei; -PFNGLBEGINQUERYPROC glad_glBeginQuery; -PFNGLVERTEXATTRIB4NSVPROC glad_glVertexAttrib4Nsv; -PFNGLVERTEXATTRIBI3IVPROC glad_glVertexAttribI3iv; -PFNGLFENCESYNCPROC glad_glFenceSync; -PFNGLSAMPLERPARAMETERIVPROC glad_glSamplerParameteriv; -PFNGLHINTPROC glad_glHint; -PFNGLTEXIMAGE2DPROC glad_glTexImage2D; -PFNGLENDQUERYPROC glad_glEndQuery; -PFNGLCOMPILESHADERPROC glad_glCompileShader; -PFNGLSTENCILFUNCSEPARATEPROC glad_glStencilFuncSeparate; -PFNGLVERTEXATTRIB4NBVPROC glad_glVertexAttrib4Nbv; -PFNGLREADPIXELSPROC glad_glReadPixels; -PFNGLVERTEXATTRIB4SVPROC glad_glVertexAttrib4sv; -PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC glad_glDrawRangeElementsBaseVertex; -PFNGLGETUNIFORMUIVPROC glad_glGetUniformuiv; +PFNGLVERTEXATTRIBI2IVPROC glad_glVertexAttribI2iv; +PFNGLGENSAMPLERSPROC glad_glGenSamplers; +PFNGLMULTITEXCOORDP2UIVPROC glad_glMultiTexCoordP2uiv; +PFNGLDRAWRANGEELEMENTSPROC glad_glDrawRangeElements; +PFNGLTEXBUFFERPROC glad_glTexBuffer; +PFNGLDELETERENDERBUFFERSPROC glad_glDeleteRenderbuffers; +PFNGLCULLFACEPROC glad_glCullFace; +PFNGLVERTEXATTRIB4DPROC glad_glVertexAttrib4d; +PFNGLDELETEVERTEXARRAYSPROC glad_glDeleteVertexArrays; +PFNGLATTACHSHADERPROC glad_glAttachShader; +PFNGLVERTEXATTRIB3FPROC glad_glVertexAttrib3f; +PFNGLDELETESYNCPROC glad_glDeleteSync; +PFNGLDRAWELEMENTSPROC glad_glDrawElements; +PFNGLGETQUERYIVPROC glad_glGetQueryiv; +PFNGLGETACTIVEUNIFORMBLOCKIVPROC glad_glGetActiveUniformBlockiv; +PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC glad_glCompressedTexSubImage1D; +PFNGLGETUNIFORMINDICESPROC glad_glGetUniformIndices; +PFNGLRENDERBUFFERSTORAGEPROC glad_glRenderbufferStorage; PFNGLVERTEXATTRIBP2UIVPROC glad_glVertexAttribP2uiv; -PFNGLCLEARDEPTHPROC glad_glClearDepth; -PFNGLFINISHPROC glad_glFinish; +PFNGLVERTEXATTRIBI4BVPROC glad_glVertexAttribI4bv; +PFNGLVERTEXATTRIB4BVPROC glad_glVertexAttrib4bv; +PFNGLTEXPARAMETERFVPROC glad_glTexParameterfv; +PFNGLDISABLEPROC glad_glDisable; +PFNGLGETATTACHEDSHADERSPROC glad_glGetAttachedShaders; +PFNGLGENERATEMIPMAPPROC glad_glGenerateMipmap; +PFNGLUNIFORM3IPROC glad_glUniform3i; +PFNGLUNIFORM3UIVPROC glad_glUniform3uiv; +PFNGLISQUERYPROC glad_glIsQuery; +PFNGLBEGINCONDITIONALRENDERPROC glad_glBeginConditionalRender; +PFNGLGENQUERIESPROC glad_glGenQueries; +PFNGLVIEWPORTPROC glad_glViewport; +PFNGLGETBOOLEANI_VPROC glad_glGetBooleani_v; +PFNGLTEXSUBIMAGE1DPROC glad_glTexSubImage1D; +PFNGLVERTEXATTRIB2FVPROC glad_glVertexAttrib2fv; PFNGLISVERTEXARRAYPROC glad_glIsVertexArray; -PFNGLVERTEXATTRIB4FVPROC glad_glVertexAttrib4fv; +PFNGLUNIFORMBLOCKBINDINGPROC glad_glUniformBlockBinding; +PFNGLTEXIMAGE3DPROC glad_glTexImage3D; +PFNGLPOINTPARAMETERFVPROC glad_glPointParameterfv; +PFNGLVERTEXATTRIB2SPROC glad_glVertexAttrib2s; +PFNGLMULTITEXCOORDP2UIPROC glad_glMultiTexCoordP2ui; +PFNGLGETTEXLEVELPARAMETERFVPROC glad_glGetTexLevelParameterfv; +PFNGLUNIFORMMATRIX4FVPROC glad_glUniformMatrix4fv; +PFNGLBLENDFUNCPROC glad_glBlendFunc; +PFNGLGETQUERYOBJECTUI64VPROC glad_glGetQueryObjectui64v; +PFNGLVERTEXATTRIBI4IPROC glad_glVertexAttribI4i; +PFNGLVERTEXATTRIBI4UIVPROC glad_glVertexAttribI4uiv; +PFNGLDETACHSHADERPROC glad_glDetachShader; +PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC glad_glCompressedTexSubImage2D; +PFNGLUNIFORM1FVPROC glad_glUniform1fv; +PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC glad_glDrawRangeElementsBaseVertex; +PFNGLGETTEXPARAMETERIVPROC glad_glGetTexParameteriv; +PFNGLFRAMEBUFFERTEXTURE2DPROC glad_glFramebufferTexture2D; +PFNGLCOLORMASKIPROC glad_glColorMaski; +PFNGLVERTEXATTRIB4USVPROC glad_glVertexAttrib4usv; +PFNGLFLUSHPROC glad_glFlush; PFNGLTEXCOORDP1UIPROC glad_glTexCoordP1ui; -PFNGLUNIFORM4IPROC glad_glUniform4i; -PFNGLCOLORP4UIVPROC glad_glColorP4uiv; +PFNGLGETINTEGER64I_VPROC glad_glGetInteger64i_v; +PFNGLBLENDEQUATIONSEPARATEPROC glad_glBlendEquationSeparate; +PFNGLCOPYTEXSUBIMAGE2DPROC glad_glCopyTexSubImage2D; +PFNGLPOINTPARAMETERIVPROC glad_glPointParameteriv; +PFNGLGETACTIVEUNIFORMSIVPROC glad_glGetActiveUniformsiv; PFNGLTEXPARAMETERIVPROC glad_glTexParameteriv; -PFNGLGETTRANSFORMFEEDBACKVARYINGPROC glad_glGetTransformFeedbackVarying; -PFNGLVERTEXATTRIB4NUBPROC glad_glVertexAttrib4Nub; -PFNGLTEXSUBIMAGE2DPROC glad_glTexSubImage2D; -PFNGLGETACTIVEUNIFORMBLOCKIVPROC glad_glGetActiveUniformBlockiv; +PFNGLPROVOKINGVERTEXPROC glad_glProvokingVertex; +PFNGLVERTEXATTRIB2DPROC glad_glVertexAttrib2d; +PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC glad_glCompressedTexSubImage3D; +PFNGLGETSHADERINFOLOGPROC glad_glGetShaderInfoLog; +PFNGLVERTEXATTRIB4SPROC glad_glVertexAttrib4s; +PFNGLVERTEXATTRIB2DVPROC glad_glVertexAttrib2dv; +PFNGLGETSAMPLERPARAMETERFVPROC glad_glGetSamplerParameterfv; +PFNGLUNIFORM3FPROC glad_glUniform3f; +PFNGLUNIFORMMATRIX2X3FVPROC glad_glUniformMatrix2x3fv; +PFNGLMULTITEXCOORDP1UIVPROC glad_glMultiTexCoordP1uiv; +PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC glad_glGetFramebufferAttachmentParameteriv; +PFNGLBLITFRAMEBUFFERPROC glad_glBlitFramebuffer; PFNGLGETACTIVEUNIFORMNAMEPROC glad_glGetActiveUniformName; -PFNGLGETQUERYOBJECTIVPROC glad_glGetQueryObjectiv; -PFNGLISTEXTUREPROC glad_glIsTexture; -PFNGLGETINTEGERVPROC glad_glGetIntegerv; -PFNGLBLENDFUNCSEPARATEPROC glad_glBlendFuncSeparate; -PFNGLGETTEXLEVELPARAMETERFVPROC glad_glGetTexLevelParameterfv; +PFNGLVERTEXATTRIB4IVPROC glad_glVertexAttrib4iv; +PFNGLTEXCOORDP2UIPROC glad_glTexCoordP2ui; +PFNGLUNIFORM3FVPROC glad_glUniform3fv; +PFNGLLINKPROGRAMPROC glad_glLinkProgram; +PFNGLDELETEBUFFERSPROC glad_glDeleteBuffers; +PFNGLUNIFORM3IVPROC glad_glUniform3iv; +PFNGLSECONDARYCOLORP3UIPROC glad_glSecondaryColorP3ui; +PFNGLUNIFORMMATRIX3X4FVPROC glad_glUniformMatrix3x4fv; +PFNGLVERTEXATTRIBI3IPROC glad_glVertexAttribI3i; +PFNGLVERTEXATTRIBDIVISORPROC glad_glVertexAttribDivisor; +PFNGLGETTEXIMAGEPROC glad_glGetTexImage; +PFNGLVERTEXATTRIBI4UIPROC glad_glVertexAttribI4ui; +PFNGLTEXSUBIMAGE2DPROC glad_glTexSubImage2D; +PFNGLVERTEXATTRIB1DPROC glad_glVertexAttrib1d; PFNGLISSAMPLERPROC glad_glIsSampler; -PFNGLNORMALP3UIPROC glad_glNormalP3ui; -PFNGLISSYNCPROC glad_glIsSync; +PFNGLVERTEXATTRIB1FPROC glad_glVertexAttrib1f; +PFNGLTEXIMAGE3DMULTISAMPLEPROC glad_glTexImage3DMultisample; +PFNGLGETVERTEXATTRIBIVPROC glad_glGetVertexAttribiv; +PFNGLMULTIDRAWELEMENTSPROC glad_glMultiDrawElements; +PFNGLGETUNIFORMFVPROC glad_glGetUniformfv; +PFNGLMAPBUFFERPROC glad_glMapBuffer; +PFNGLUSEPROGRAMPROC glad_glUseProgram; +PFNGLVERTEXP2UIPROC glad_glVertexP2ui; +PFNGLVERTEXP4UIPROC glad_glVertexP4ui; +PFNGLCOPYTEXSUBIMAGE3DPROC glad_glCopyTexSubImage3D; +PFNGLFRAMEBUFFERTEXTURE3DPROC glad_glFramebufferTexture3D; +PFNGLGENBUFFERSPROC glad_glGenBuffers; +PFNGLVERTEXP4UIVPROC glad_glVertexP4uiv; +PFNGLVERTEXATTRIB4NUIVPROC glad_glVertexAttrib4Nuiv; +PFNGLGETSTRINGPROC glad_glGetString; +PFNGLSCISSORPROC glad_glScissor; +PFNGLVERTEXATTRIB3DVPROC glad_glVertexAttrib3dv; +PFNGLVERTEXATTRIB3SPROC glad_glVertexAttrib3s; +PFNGLUNIFORM4UIPROC glad_glUniform4ui; +PFNGLISENABLEDIPROC glad_glIsEnabledi; +PFNGLGETUNIFORMIVPROC glad_glGetUniformiv; +PFNGLPOLYGONMODEPROC glad_glPolygonMode; +PFNGLBINDFRAGDATALOCATIONINDEXEDPROC glad_glBindFragDataLocationIndexed; +PFNGLVERTEXATTRIBI4UBVPROC glad_glVertexAttribI4ubv; +PFNGLGETERRORPROC glad_glGetError; +PFNGLGETPROGRAMIVPROC glad_glGetProgramiv; +PFNGLGETSHADERSOURCEPROC glad_glGetShaderSource; +PFNGLPOINTSIZEPROC glad_glPointSize; +PFNGLGETTEXLEVELPARAMETERIVPROC glad_glGetTexLevelParameteriv; +PFNGLGETINTEGERI_VPROC glad_glGetIntegeri_v; +PFNGLGETFRAGDATALOCATIONPROC glad_glGetFragDataLocation; +PFNGLREADPIXELSPROC glad_glReadPixels; +PFNGLBINDSAMPLERPROC glad_glBindSampler; +PFNGLCLEARCOLORPROC glad_glClearColor; +PFNGLDRAWBUFFERSPROC glad_glDrawBuffers; +PFNGLCLEARBUFFERUIVPROC glad_glClearBufferuiv; +PFNGLCOLORP3UIPROC glad_glColorP3ui; +PFNGLMULTITEXCOORDP4UIVPROC glad_glMultiTexCoordP4uiv; +PFNGLVERTEXATTRIBI3UIPROC glad_glVertexAttribI3ui; +PFNGLREADBUFFERPROC glad_glReadBuffer; +PFNGLCOPYTEXIMAGE1DPROC glad_glCopyTexImage1D; +PFNGLDRAWARRAYSINSTANCEDPROC glad_glDrawArraysInstanced; +PFNGLVERTEXATTRIB4SVPROC glad_glVertexAttrib4sv; +PFNGLISRENDERBUFFERPROC glad_glIsRenderbuffer; +PFNGLPOLYGONOFFSETPROC glad_glPolygonOffset; +PFNGLPOINTPARAMETERFPROC glad_glPointParameterf; +PFNGLUNIFORM1UIVPROC glad_glUniform1uiv; +PFNGLUNIFORM4FVPROC glad_glUniform4fv; +PFNGLCOLORP3UIVPROC glad_glColorP3uiv; +PFNGLISSHADERPROC glad_glIsShader; PFNGLVERTEXATTRIB4FPROC glad_glVertexAttrib4f; -PFNGLGETSAMPLERPARAMETERIIVPROC glad_glGetSamplerParameterIiv; -PFNGLGETVERTEXATTRIBIUIVPROC glad_glGetVertexAttribIuiv; -PFNGLCLEARCOLORPROC glad_glClearColor; -PFNGLPIXELSTOREFPROC glad_glPixelStoref; -PFNGLCLIENTWAITSYNCPROC glad_glClientWaitSync; -PFNGLVERTEXATTRIBI2IPROC glad_glVertexAttribI2i; +PFNGLFLUSHMAPPEDBUFFERRANGEPROC glad_glFlushMappedBufferRange; +PFNGLSAMPLERPARAMETERIIVPROC glad_glSamplerParameterIiv; +PFNGLMAPBUFFERRANGEPROC glad_glMapBufferRange; +PFNGLHINTPROC glad_glHint; PFNGLVERTEXATTRIB2FPROC glad_glVertexAttrib2f; -PFNGLGETSAMPLERPARAMETERFVPROC glad_glGetSamplerParameterfv; -PFNGLTEXPARAMETERIPROC glad_glTexParameteri; -PFNGLBLENDEQUATIONPROC glad_glBlendEquation; -PFNGLVERTEXATTRIBP3UIVPROC glad_glVertexAttribP3uiv; -PFNGLBUFFERDATAPROC glad_glBufferData; -PFNGLVERTEXATTRIBI4BVPROC glad_glVertexAttribI4bv; -PFNGLDELETERENDERBUFFERSPROC glad_glDeleteRenderbuffers; -PFNGLVERTEXP2UIVPROC glad_glVertexP2uiv; -PFNGLDRAWBUFFERPROC glad_glDrawBuffer; -PFNGLSAMPLECOVERAGEPROC glad_glSampleCoverage; -PFNGLMULTITEXCOORDP1UIPROC glad_glMultiTexCoordP1ui; -PFNGLGETQUERYOBJECTUI64VPROC glad_glGetQueryObjectui64v; -PFNGLUNIFORMMATRIX4X2FVPROC glad_glUniformMatrix4x2fv; -PFNGLVERTEXATTRIBP2UIPROC glad_glVertexAttribP2ui; -PFNGLDEPTHFUNCPROC glad_glDepthFunc; -PFNGLTEXBUFFERPROC glad_glTexBuffer; +PFNGLVALIDATEPROGRAMPROC glad_glValidateProgram; +PFNGLPRIMITIVERESTARTINDEXPROC glad_glPrimitiveRestartIndex; +PFNGLVERTEXATTRIBI1UIVPROC glad_glVertexAttribI1uiv; +PFNGLSAMPLERPARAMETERFPROC glad_glSamplerParameterf; +PFNGLGETBUFFERPARAMETERIVPROC glad_glGetBufferParameteriv; +PFNGLENABLEPROC glad_glEnable; +PFNGLVERTEXATTRIBI1IPROC glad_glVertexAttribI1i; +PFNGLGETUNIFORMBLOCKINDEXPROC glad_glGetUniformBlockIndex; +PFNGLGETINTEGERVPROC glad_glGetIntegerv; PFNGLQUERYCOUNTERPROC glad_glQueryCounter; -PFNGLVIEWPORTPROC glad_glViewport; -PFNGLVERTEXATTRIB2SPROC glad_glVertexAttrib2s; -PFNGLBINDFRAGDATALOCATIONPROC glad_glBindFragDataLocation; -PFNGLVERTEXATTRIB4BVPROC glad_glVertexAttrib4bv; -PFNGLVERTEXATTRIB4UIVPROC glad_glVertexAttrib4uiv; -PFNGLBLENDFUNCPROC glad_glBlendFunc; -PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC glad_glMultiDrawElementsBaseVertex; PFNGLTEXPARAMETERIUIVPROC glad_glTexParameterIuiv; -PFNGLGETACTIVEATTRIBPROC glad_glGetActiveAttrib; -PFNGLVERTEXATTRIB2SVPROC glad_glVertexAttrib2sv; -PFNGLGETTEXPARAMETERIVPROC glad_glGetTexParameteriv; -PFNGLUNIFORM2UIVPROC glad_glUniform2uiv; -PFNGLVERTEXATTRIB4DVPROC glad_glVertexAttrib4dv; -PFNGLUNIFORM3UIPROC glad_glUniform3ui; PFNGLPOINTPARAMETERIPROC glad_glPointParameteri; -PFNGLBLENDCOLORPROC glad_glBlendColor; -PFNGLUNIFORMMATRIX2X3FVPROC glad_glUniformMatrix2x3fv; -PFNGLDRAWELEMENTSBASEVERTEXPROC glad_glDrawElementsBaseVertex; -PFNGLLINKPROGRAMPROC glad_glLinkProgram; -PFNGLGETFRAGDATALOCATIONPROC glad_glGetFragDataLocation; -PFNGLENDCONDITIONALRENDERPROC glad_glEndConditionalRender; -PFNGLUNIFORM4UIPROC glad_glUniform4ui; -PFNGLGETSTRINGIPROC glad_glGetStringi; -PFNGLVERTEXATTRIB4NUIVPROC glad_glVertexAttrib4Nuiv; -PFNGLRENDERBUFFERSTORAGEPROC glad_glRenderbufferStorage; -PFNGLVERTEXATTRIBP1UIPROC glad_glVertexAttribP1ui; -PFNGLUNIFORM2IVPROC glad_glUniform2iv; -PFNGLVERTEXATTRIB1FVPROC glad_glVertexAttrib1fv; +PFNGLUNIFORMMATRIX3FVPROC glad_glUniformMatrix3fv; +PFNGLGETBUFFERPARAMETERI64VPROC glad_glGetBufferParameteri64v; +PFNGLUNIFORMMATRIX3X2FVPROC glad_glUniformMatrix3x2fv; +PFNGLWAITSYNCPROC glad_glWaitSync; +PFNGLGENRENDERBUFFERSPROC glad_glGenRenderbuffers; +PFNGLSAMPLERPARAMETERIVPROC glad_glSamplerParameteriv; +PFNGLUNIFORMMATRIX2FVPROC glad_glUniformMatrix2fv; +PFNGLUNIFORM3UIPROC glad_glUniform3ui; +PFNGLBINDBUFFERRANGEPROC glad_glBindBufferRange; +PFNGLCOLORP4UIVPROC glad_glColorP4uiv; +PFNGLGETSAMPLERPARAMETERIIVPROC glad_glGetSamplerParameterIiv; +PFNGLTRANSFORMFEEDBACKVARYINGSPROC glad_glTransformFeedbackVaryings; +PFNGLDISABLEVERTEXATTRIBARRAYPROC glad_glDisableVertexAttribArray; +PFNGLVERTEXATTRIB4NSVPROC glad_glVertexAttrib4Nsv; +PFNGLCREATEPROGRAMPROC glad_glCreateProgram; +PFNGLCLIENTWAITSYNCPROC glad_glClientWaitSync; +PFNGLUNIFORM2UIVPROC glad_glUniform2uiv; +PFNGLSAMPLERPARAMETERFVPROC glad_glSamplerParameterfv; +PFNGLSTENCILMASKPROC glad_glStencilMask; PFNGLVERTEXP3UIPROC glad_glVertexP3ui; -PFNGLISENABLEDIPROC glad_glIsEnabledi; -PFNGLCOPYTEXIMAGE1DPROC glad_glCopyTexImage1D; -PFNGLCOLORP3UIPROC glad_glColorP3ui; -PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC glad_glCompressedTexSubImage3D; -PFNGLBINDFRAGDATALOCATIONINDEXEDPROC glad_glBindFragDataLocationIndexed; -PFNGLCOPYBUFFERSUBDATAPROC glad_glCopyBufferSubData; +PFNGLGETQUERYOBJECTI64VPROC glad_glGetQueryObjecti64v; +PFNGLGETSAMPLERPARAMETERIUIVPROC glad_glGetSamplerParameterIuiv; +PFNGLDRAWELEMENTSBASEVERTEXPROC glad_glDrawElementsBaseVertex; PFNGLDISABLEIPROC glad_glDisablei; -PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC glad_glRenderbufferStorageMultisample; -PFNGLUNIFORM3UIVPROC glad_glUniform3uiv; -PFNGLDRAWARRAYSPROC glad_glDrawArrays; -PFNGLVERTEXATTRIB3FVPROC glad_glVertexAttrib3fv; -PFNGLISSHADERPROC glad_glIsShader; -PFNGLUNIFORM4IVPROC glad_glUniform4iv; -PFNGLGETUNIFORMINDICESPROC glad_glGetUniformIndices; -PFNGLTEXCOORDP2UIPROC glad_glTexCoordP2ui; -PFNGLFRAMEBUFFERTEXTURE2DPROC glad_glFramebufferTexture2D; -PFNGLPOINTSIZEPROC glad_glPointSize; -PFNGLUNIFORM1IVPROC glad_glUniform1iv; -PFNGLGETVERTEXATTRIBIIVPROC glad_glGetVertexAttribIiv; -PFNGLBINDATTRIBLOCATIONPROC glad_glBindAttribLocation; -PFNGLGETTEXIMAGEPROC glad_glGetTexImage; -PFNGLVERTEXATTRIBI3UIPROC glad_glVertexAttribI3ui; -PFNGLTEXIMAGE3DPROC glad_glTexImage3D; -PFNGLVERTEXATTRIB1SPROC glad_glVertexAttrib1s; -PFNGLDELETESYNCPROC glad_glDeleteSync; -PFNGLMULTITEXCOORDP4UIVPROC glad_glMultiTexCoordP4uiv; -PFNGLGETBUFFERPARAMETERIVPROC glad_glGetBufferParameteriv; -PFNGLVERTEXATTRIB3DPROC glad_glVertexAttrib3d; -PFNGLENABLEVERTEXATTRIBARRAYPROC glad_glEnableVertexAttribArray; +PFNGLDEPTHRANGEPROC glad_glDepthRange; +PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC glad_glMultiDrawElementsBaseVertex; +PFNGLUNMAPBUFFERPROC glad_glUnmapBuffer; +PFNGLNORMALP3UIPROC glad_glNormalP3ui; +PFNGLTEXSUBIMAGE3DPROC glad_glTexSubImage3D; +PFNGLBEGINQUERYPROC glad_glBeginQuery; +PFNGLGETTEXPARAMETERFVPROC glad_glGetTexParameterfv; PFNGLUNIFORMMATRIX4X3FVPROC glad_glUniformMatrix4x3fv; -PFNGLSCISSORPROC glad_glScissor; -PFNGLBINDBUFFERRANGEPROC glad_glBindBufferRange; -PFNGLDRAWRANGEELEMENTSPROC glad_glDrawRangeElements; -PFNGLTEXCOORDP4UIPROC glad_glTexCoordP4ui; -PFNGLVERTEXATTRIBI4IPROC glad_glVertexAttribI4i; -PFNGLSAMPLEMASKIPROC glad_glSampleMaski; -PFNGLVERTEXATTRIBPOINTERPROC glad_glVertexAttribPointer; -PFNGLTEXCOORDP4UIVPROC glad_glTexCoordP4uiv; -PFNGLVERTEXATTRIBIPOINTERPROC glad_glVertexAttribIPointer; -PFNGLDRAWARRAYSINSTANCEDPROC glad_glDrawArraysInstanced; -PFNGLGETVERTEXATTRIBDVPROC glad_glGetVertexAttribdv; -PFNGLCOMPRESSEDTEXIMAGE3DPROC glad_glCompressedTexImage3D; -PFNGLVERTEXATTRIBI4USVPROC glad_glVertexAttribI4usv; -PFNGLVERTEXATTRIB3SPROC glad_glVertexAttrib3s; -PFNGLGETINTEGER64VPROC glad_glGetInteger64v; -PFNGLGETINTEGERI_VPROC glad_glGetIntegeri_v; -PFNGLGETATTACHEDSHADERSPROC glad_glGetAttachedShaders; -PFNGLVERTEXP3UIVPROC glad_glVertexP3uiv; -PFNGLGETINTEGER64I_VPROC glad_glGetInteger64i_v; -PFNGLPIXELSTOREIPROC glad_glPixelStorei; -PFNGLFLUSHMAPPEDBUFFERRANGEPROC glad_glFlushMappedBufferRange; -PFNGLGENERATEMIPMAPPROC glad_glGenerateMipmap; -PFNGLUNIFORMBLOCKBINDINGPROC glad_glUniformBlockBinding; -PFNGLTEXPARAMETERFVPROC glad_glTexParameterfv; -PFNGLUNIFORM1IPROC glad_glUniform1i; -PFNGLSHADERSOURCEPROC glad_glShaderSource; -PFNGLVERTEXATTRIBI4IVPROC glad_glVertexAttribI4iv; -PFNGLGETQUERYIVPROC glad_glGetQueryiv; -PFNGLBINDSAMPLERPROC glad_glBindSampler; -PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC glad_glDrawElementsInstancedBaseVertex; -PFNGLCOPYTEXIMAGE2DPROC glad_glCopyTexImage2D; -PFNGLCOLORP4UIPROC glad_glColorP4ui; -PFNGLBINDRENDERBUFFERPROC glad_glBindRenderbuffer; -PFNGLGENTEXTURESPROC glad_glGenTextures; -PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC glad_glGetFramebufferAttachmentParameteriv; -PFNGLCLEARBUFFERUIVPROC glad_glClearBufferuiv; -PFNGLVERTEXP4UIVPROC glad_glVertexP4uiv; -PFNGLUNIFORM3IPROC glad_glUniform3i; -PFNGLDELETESHADERPROC glad_glDeleteShader; -PFNGLVERTEXATTRIB3FPROC glad_glVertexAttrib3f; +PFNGLTEXCOORDP1UIVPROC glad_glTexCoordP1uiv; +PFNGLVERTEXATTRIBI2IPROC glad_glVertexAttribI2i; PFNGLDEPTHMASKPROC glad_glDepthMask; -PFNGLFRAMEBUFFERTEXTURE1DPROC glad_glFramebufferTexture1D; -PFNGLFRAMEBUFFERRENDERBUFFERPROC glad_glFramebufferRenderbuffer; -PFNGLVERTEXATTRIBI2UIVPROC glad_glVertexAttribI2uiv; -PFNGLTEXCOORDP3UIPROC glad_glTexCoordP3ui; -PFNGLVERTEXP2UIPROC glad_glVertexP2ui; PFNGLGETTEXPARAMETERIUIVPROC glad_glGetTexParameterIuiv; +PFNGLCLEARDEPTHPROC glad_glClearDepth; +PFNGLDRAWBUFFERPROC glad_glDrawBuffer; +PFNGLCLEARBUFFERFVPROC glad_glClearBufferfv; +PFNGLSAMPLECOVERAGEPROC glad_glSampleCoverage; PFNGLCOLORMASKPROC glad_glColorMask; -PFNGLVERTEXATTRIBI4UIPROC glad_glVertexAttribI4ui; -PFNGLGETERRORPROC glad_glGetError; -PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC glad_glCompressedTexSubImage1D; -PFNGLGETTEXPARAMETERIIVPROC glad_glGetTexParameterIiv; -PFNGLLOGICOPPROC glad_glLogicOp; -PFNGLGETSAMPLERPARAMETERIVPROC glad_glGetSamplerParameteriv; -PFNGLGETTEXLEVELPARAMETERIVPROC glad_glGetTexLevelParameteriv; -PFNGLUNIFORM3IVPROC glad_glUniform3iv; -PFNGLDISABLEVERTEXATTRIBARRAYPROC glad_glDisableVertexAttribArray; -PFNGLVERTEXATTRIB4IVPROC glad_glVertexAttrib4iv; -PFNGLCOMPRESSEDTEXIMAGE2DPROC glad_glCompressedTexImage2D; -PFNGLDELETEBUFFERSPROC glad_glDeleteBuffers; -PFNGLGETUNIFORMFVPROC glad_glGetUniformfv; -PFNGLGETACTIVEUNIFORMSIVPROC glad_glGetActiveUniformsiv; -PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC glad_glCompressedTexSubImage2D; -PFNGLVERTEXATTRIBI3UIVPROC glad_glVertexAttribI3uiv; -PFNGLSAMPLERPARAMETERFVPROC glad_glSamplerParameterfv; -PFNGLUNIFORM2IPROC glad_glUniform2i; -PFNGLGENRENDERBUFFERSPROC glad_glGenRenderbuffers; -PFNGLSAMPLERPARAMETERFPROC glad_glSamplerParameterf; -PFNGLGETSHADERINFOLOGPROC glad_glGetShaderInfoLog; -PFNGLUNIFORMMATRIX2FVPROC glad_glUniformMatrix2fv; +PFNGLBINDVERTEXARRAYPROC glad_glBindVertexArray; +PFNGLBINDRENDERBUFFERPROC glad_glBindRenderbuffer; +PFNGLMULTITEXCOORDP1UIPROC glad_glMultiTexCoordP1ui; PFNGLISFRAMEBUFFERPROC glad_glIsFramebuffer; -PFNGLUNIFORMMATRIX2X4FVPROC glad_glUniformMatrix2x4fv; +PFNGLCLEARBUFFERFIPROC glad_glClearBufferfi; +PFNGLGETCOMPRESSEDTEXIMAGEPROC glad_glGetCompressedTexImage; +PFNGLUNIFORM4IVPROC glad_glUniform4iv; +PFNGLCOLORP4UIPROC glad_glColorP4ui; +PFNGLCLEARBUFFERIVPROC glad_glClearBufferiv; +PFNGLVERTEXATTRIB4NIVPROC glad_glVertexAttrib4Niv; +PFNGLCLAMPCOLORPROC glad_glClampColor; +PFNGLFRAMEBUFFERTEXTUREPROC glad_glFramebufferTexture; +PFNGLCOPYTEXSUBIMAGE1DPROC glad_glCopyTexSubImage1D; +PFNGLTEXPARAMETERIIVPROC glad_glTexParameterIiv; +PFNGLFRAMEBUFFERTEXTURE1DPROC glad_glFramebufferTexture1D; +PFNGLGETINTEGER64VPROC glad_glGetInteger64v; +PFNGLMULTITEXCOORDP4UIPROC glad_glMultiTexCoordP4ui; +PFNGLUNIFORM2IPROC glad_glUniform2i; +PFNGLVERTEXATTRIB1SVPROC glad_glVertexAttrib1sv; +PFNGLVERTEXATTRIBP1UIPROC glad_glVertexAttribP1ui; +PFNGLGETDOUBLEVPROC glad_glGetDoublev; +PFNGLDELETEQUERIESPROC glad_glDeleteQueries; +PFNGLISBUFFERPROC glad_glIsBuffer; +PFNGLSAMPLEMASKIPROC glad_glSampleMaski; +PFNGLSECONDARYCOLORP3UIVPROC glad_glSecondaryColorP3uiv; +PFNGLGETSAMPLERPARAMETERIVPROC glad_glGetSamplerParameteriv; +PFNGLISSYNCPROC glad_glIsSync; +PFNGLENDQUERYPROC glad_glEndQuery; +PFNGLVERTEXP2UIVPROC glad_glVertexP2uiv; +PFNGLVERTEXATTRIB3FVPROC glad_glVertexAttrib3fv; +PFNGLBINDBUFFERBASEPROC glad_glBindBufferBase; +PFNGLCOMPILESHADERPROC glad_glCompileShader; +PFNGLCHECKFRAMEBUFFERSTATUSPROC glad_glCheckFramebufferStatus; +PFNGLENABLEIPROC glad_glEnablei; +PFNGLGETTEXPARAMETERIIVPROC glad_glGetTexParameterIiv; +PFNGLBINDTEXTUREPROC glad_glBindTexture; +PFNGLPIXELSTOREFPROC glad_glPixelStoref; +PFNGLCLEARPROC glad_glClear; +PFNGLVERTEXATTRIB4NBVPROC glad_glVertexAttrib4Nbv; +PFNGLSTENCILMASKSEPARATEPROC glad_glStencilMaskSeparate; +PFNGLISENABLEDPROC glad_glIsEnabled; +PFNGLVERTEXATTRIBP4UIPROC glad_glVertexAttribP4ui; PFNGLVERTEXATTRIB4NUBVPROC glad_glVertexAttrib4Nubv; -PFNGLUNIFORM2FVPROC glad_glUniform2fv; -PFNGLTEXIMAGE2DMULTISAMPLEPROC glad_glTexImage2DMultisample; -PFNGLMULTITEXCOORDP2UIVPROC glad_glMultiTexCoordP2uiv; -PFNGLSAMPLERPARAMETERIIVPROC glad_glSamplerParameterIiv; -PFNGLTEXCOORDP3UIVPROC glad_glTexCoordP3uiv; -PFNGLVERTEXATTRIBI1IPROC glad_glVertexAttribI1i; +PFNGLTEXCOORDP4UIPROC glad_glTexCoordP4ui; +PFNGLUNIFORM1IPROC glad_glUniform1i; +PFNGLTEXPARAMETERIPROC glad_glTexParameteri; +PFNGLUNIFORM1UIPROC glad_glUniform1ui; +PFNGLFRAMEBUFFERRENDERBUFFERPROC glad_glFramebufferRenderbuffer; int GLAD_GL_KHR_debug; int GLAD_GL_EXT_texture_compression_s3tc; +int GLAD_GL_AMD_debug_output; int GLAD_GL_EXT_texture_compression_rgtc; int GLAD_GL_EXT_texture_sRGB; +PFNGLDEBUGMESSAGEENABLEAMDPROC glad_glDebugMessageEnableAMD; +PFNGLDEBUGMESSAGEINSERTAMDPROC glad_glDebugMessageInsertAMD; +PFNGLDEBUGMESSAGECALLBACKAMDPROC glad_glDebugMessageCallbackAMD; +PFNGLGETDEBUGMESSAGELOGAMDPROC glad_glGetDebugMessageLogAMD; PFNGLDEBUGMESSAGECONTROLPROC glad_glDebugMessageControl; PFNGLDEBUGMESSAGEINSERTPROC glad_glDebugMessageInsert; PFNGLDEBUGMESSAGECALLBACKPROC glad_glDebugMessageCallback; @@ -1048,6 +1054,13 @@ static void load_GL_VERSION_3_3(GLADloadproc load) { glad_glSecondaryColorP3ui = (PFNGLSECONDARYCOLORP3UIPROC)load("glSecondaryColorP3ui"); glad_glSecondaryColorP3uiv = (PFNGLSECONDARYCOLORP3UIVPROC)load("glSecondaryColorP3uiv"); } +static void load_GL_AMD_debug_output(GLADloadproc load) { + if(!GLAD_GL_AMD_debug_output) return; + glad_glDebugMessageEnableAMD = (PFNGLDEBUGMESSAGEENABLEAMDPROC)load("glDebugMessageEnableAMD"); + glad_glDebugMessageInsertAMD = (PFNGLDEBUGMESSAGEINSERTAMDPROC)load("glDebugMessageInsertAMD"); + glad_glDebugMessageCallbackAMD = (PFNGLDEBUGMESSAGECALLBACKAMDPROC)load("glDebugMessageCallbackAMD"); + glad_glGetDebugMessageLogAMD = (PFNGLGETDEBUGMESSAGELOGAMDPROC)load("glGetDebugMessageLogAMD"); +} static void load_GL_KHR_debug(GLADloadproc load) { if(!GLAD_GL_KHR_debug) return; glad_glDebugMessageControl = (PFNGLDEBUGMESSAGECONTROLPROC)load("glDebugMessageControl"); @@ -1075,6 +1088,7 @@ static void load_GL_KHR_debug(GLADloadproc load) { } static int find_extensionsGL(void) { if (!get_exts()) return 0; + GLAD_GL_AMD_debug_output = has_ext("GL_AMD_debug_output"); GLAD_GL_EXT_texture_compression_rgtc = has_ext("GL_EXT_texture_compression_rgtc"); GLAD_GL_EXT_texture_compression_s3tc = has_ext("GL_EXT_texture_compression_s3tc"); GLAD_GL_EXT_texture_sRGB = has_ext("GL_EXT_texture_sRGB"); @@ -1157,6 +1171,7 @@ int gladLoadGLLoader(GLADloadproc load) { load_GL_VERSION_3_3(load); if (!find_extensionsGL()) return 0; + load_GL_AMD_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 Sun Dec 25 14:12:51 2016. + OpenGL loader generated by glad 0.1.12a0 on Tue Dec 27 16:37:20 2016. Language/Generator: C/C++ Specification: gl APIs: gl=3.3 Profile: core Extensions: + GL_AMD_debug_output, GL_EXT_texture_compression_rgtc, GL_EXT_texture_compression_s3tc, GL_EXT_texture_sRGB, @@ -16,9 +17,9 @@ Omit khrplatform: True Commandline: - --profile="core" --api="gl=3.3" --generator="c" --spec="gl" --omit-khrplatform --extensions="GL_EXT_texture_compression_rgtc,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_AMD_debug_output,GL_EXT_texture_compression_rgtc,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_rgtc&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_AMD_debug_output&extensions=GL_EXT_texture_compression_rgtc&extensions=GL_EXT_texture_compression_s3tc&extensions=GL_EXT_texture_sRGB&extensions=GL_KHR_debug */ @@ -2156,6 +2157,20 @@ typedef void (APIENTRYP PFNGLSECONDARYCOLORP3UIVPROC)(GLenum type, const GLuint GLAPI PFNGLSECONDARYCOLORP3UIVPROC glad_glSecondaryColorP3uiv; #define glSecondaryColorP3uiv glad_glSecondaryColorP3uiv #endif +#define GL_MAX_DEBUG_MESSAGE_LENGTH_AMD 0x9143 +#define GL_MAX_DEBUG_LOGGED_MESSAGES_AMD 0x9144 +#define GL_DEBUG_LOGGED_MESSAGES_AMD 0x9145 +#define GL_DEBUG_SEVERITY_HIGH_AMD 0x9146 +#define GL_DEBUG_SEVERITY_MEDIUM_AMD 0x9147 +#define GL_DEBUG_SEVERITY_LOW_AMD 0x9148 +#define GL_DEBUG_CATEGORY_API_ERROR_AMD 0x9149 +#define GL_DEBUG_CATEGORY_WINDOW_SYSTEM_AMD 0x914A +#define GL_DEBUG_CATEGORY_DEPRECATION_AMD 0x914B +#define GL_DEBUG_CATEGORY_UNDEFINED_BEHAVIOR_AMD 0x914C +#define GL_DEBUG_CATEGORY_PERFORMANCE_AMD 0x914D +#define GL_DEBUG_CATEGORY_SHADER_COMPILER_AMD 0x914E +#define GL_DEBUG_CATEGORY_APPLICATION_AMD 0x914F +#define GL_DEBUG_CATEGORY_OTHER_AMD 0x9150 #define GL_COMPRESSED_RED_RGTC1_EXT 0x8DBB #define GL_COMPRESSED_SIGNED_RED_RGTC1_EXT 0x8DBC #define GL_COMPRESSED_RED_GREEN_RGTC2_EXT 0x8DBD @@ -2261,6 +2276,22 @@ GLAPI PFNGLSECONDARYCOLORP3UIVPROC glad_glSecondaryColorP3uiv; #define GL_STACK_OVERFLOW_KHR 0x0503 #define GL_STACK_UNDERFLOW_KHR 0x0504 #define GL_DISPLAY_LIST 0x82E7 +#ifndef GL_AMD_debug_output +#define GL_AMD_debug_output 1 +GLAPI int GLAD_GL_AMD_debug_output; +typedef void (APIENTRYP PFNGLDEBUGMESSAGEENABLEAMDPROC)(GLenum category, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled); +GLAPI PFNGLDEBUGMESSAGEENABLEAMDPROC glad_glDebugMessageEnableAMD; +#define glDebugMessageEnableAMD glad_glDebugMessageEnableAMD +typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTAMDPROC)(GLenum category, GLenum severity, GLuint id, GLsizei length, const GLchar *buf); +GLAPI PFNGLDEBUGMESSAGEINSERTAMDPROC glad_glDebugMessageInsertAMD; +#define glDebugMessageInsertAMD glad_glDebugMessageInsertAMD +typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKAMDPROC)(GLDEBUGPROCAMD callback, void *userParam); +GLAPI PFNGLDEBUGMESSAGECALLBACKAMDPROC glad_glDebugMessageCallbackAMD; +#define glDebugMessageCallbackAMD glad_glDebugMessageCallbackAMD +typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGAMDPROC)(GLuint count, GLsizei bufsize, GLenum *categories, GLuint *severities, GLuint *ids, GLsizei *lengths, GLchar *message); +GLAPI PFNGLGETDEBUGMESSAGELOGAMDPROC glad_glGetDebugMessageLogAMD; +#define glGetDebugMessageLogAMD glad_glGetDebugMessageLogAMD +#endif #ifndef GL_EXT_texture_compression_rgtc #define GL_EXT_texture_compression_rgtc 1 GLAPI int GLAD_GL_EXT_texture_compression_rgtc; diff --git a/scripts/glad.sh b/scripts/glad.sh @@ -4,7 +4,7 @@ set -e cd libs/glad python -m glad --profile=core --api=gl=3.3 --generator=c --spec=gl --out-path gladout --omit-khrplatform \ - --extensions GL_KHR_debug,GL_EXT_texture_sRGB,GL_EXT_texture_compression_s3tc,GL_EXT_texture_compression_rgtc + --extensions GL_KHR_debug,GL_AMD_debug_output,GL_EXT_texture_sRGB,GL_EXT_texture_compression_s3tc,GL_EXT_texture_compression_rgtc mv gladout/src/glad.c ../../glad.cc mv gladout/include/glad/glad.h ../../glad.h rm -r gladout