#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <glad/gles2.h>
#ifndef GLAD_IMPL_UTIL_C_
#define GLAD_IMPL_UTIL_C_
#ifdef _MSC_VER
#define GLAD_IMPL_UTIL_SSCANF …
#else
#define GLAD_IMPL_UTIL_SSCANF …
#endif
#endif
#ifdef __cplusplus
extern "C" {
#endif
int GLAD_GL_ES_VERSION_2_0 = …;
int GLAD_GL_OES_mapbuffer = …;
int GLAD_GL_OES_required_internalformat = …;
PFNGLACTIVETEXTUREPROC glad_glActiveTexture = …;
PFNGLATTACHSHADERPROC glad_glAttachShader = …;
PFNGLBINDATTRIBLOCATIONPROC glad_glBindAttribLocation = …;
PFNGLBINDBUFFERPROC glad_glBindBuffer = …;
PFNGLBINDFRAMEBUFFERPROC glad_glBindFramebuffer = …;
PFNGLBINDRENDERBUFFERPROC glad_glBindRenderbuffer = …;
PFNGLBINDTEXTUREPROC glad_glBindTexture = …;
PFNGLBLENDCOLORPROC glad_glBlendColor = …;
PFNGLBLENDEQUATIONPROC glad_glBlendEquation = …;
PFNGLBLENDEQUATIONSEPARATEPROC glad_glBlendEquationSeparate = …;
PFNGLBLENDFUNCPROC glad_glBlendFunc = …;
PFNGLBLENDFUNCSEPARATEPROC glad_glBlendFuncSeparate = …;
PFNGLBUFFERDATAPROC glad_glBufferData = …;
PFNGLBUFFERSUBDATAPROC glad_glBufferSubData = …;
PFNGLCHECKFRAMEBUFFERSTATUSPROC glad_glCheckFramebufferStatus = …;
PFNGLCLEARPROC glad_glClear = …;
PFNGLCLEARCOLORPROC glad_glClearColor = …;
PFNGLCLEARDEPTHFPROC glad_glClearDepthf = …;
PFNGLCLEARSTENCILPROC glad_glClearStencil = …;
PFNGLCOLORMASKPROC glad_glColorMask = …;
PFNGLCOMPILESHADERPROC glad_glCompileShader = …;
PFNGLCOMPRESSEDTEXIMAGE2DPROC glad_glCompressedTexImage2D = …;
PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC glad_glCompressedTexSubImage2D = …;
PFNGLCOPYTEXIMAGE2DPROC glad_glCopyTexImage2D = …;
PFNGLCOPYTEXSUBIMAGE2DPROC glad_glCopyTexSubImage2D = …;
PFNGLCREATEPROGRAMPROC glad_glCreateProgram = …;
PFNGLCREATESHADERPROC glad_glCreateShader = …;
PFNGLCULLFACEPROC glad_glCullFace = …;
PFNGLDELETEBUFFERSPROC glad_glDeleteBuffers = …;
PFNGLDELETEFRAMEBUFFERSPROC glad_glDeleteFramebuffers = …;
PFNGLDELETEPROGRAMPROC glad_glDeleteProgram = …;
PFNGLDELETERENDERBUFFERSPROC glad_glDeleteRenderbuffers = …;
PFNGLDELETESHADERPROC glad_glDeleteShader = …;
PFNGLDELETETEXTURESPROC glad_glDeleteTextures = …;
PFNGLDEPTHFUNCPROC glad_glDepthFunc = …;
PFNGLDEPTHMASKPROC glad_glDepthMask = …;
PFNGLDEPTHRANGEFPROC glad_glDepthRangef = …;
PFNGLDETACHSHADERPROC glad_glDetachShader = …;
PFNGLDISABLEPROC glad_glDisable = …;
PFNGLDISABLEVERTEXATTRIBARRAYPROC glad_glDisableVertexAttribArray = …;
PFNGLDRAWARRAYSPROC glad_glDrawArrays = …;
PFNGLDRAWELEMENTSPROC glad_glDrawElements = …;
PFNGLENABLEPROC glad_glEnable = …;
PFNGLENABLEVERTEXATTRIBARRAYPROC glad_glEnableVertexAttribArray = …;
PFNGLFINISHPROC glad_glFinish = …;
PFNGLFLUSHPROC glad_glFlush = …;
PFNGLFRAMEBUFFERRENDERBUFFERPROC glad_glFramebufferRenderbuffer = …;
PFNGLFRAMEBUFFERTEXTURE2DPROC glad_glFramebufferTexture2D = …;
PFNGLFRONTFACEPROC glad_glFrontFace = …;
PFNGLGENBUFFERSPROC glad_glGenBuffers = …;
PFNGLGENFRAMEBUFFERSPROC glad_glGenFramebuffers = …;
PFNGLGENRENDERBUFFERSPROC glad_glGenRenderbuffers = …;
PFNGLGENTEXTURESPROC glad_glGenTextures = …;
PFNGLGENERATEMIPMAPPROC glad_glGenerateMipmap = …;
PFNGLGETACTIVEATTRIBPROC glad_glGetActiveAttrib = …;
PFNGLGETACTIVEUNIFORMPROC glad_glGetActiveUniform = …;
PFNGLGETATTACHEDSHADERSPROC glad_glGetAttachedShaders = …;
PFNGLGETATTRIBLOCATIONPROC glad_glGetAttribLocation = …;
PFNGLGETBOOLEANVPROC glad_glGetBooleanv = …;
PFNGLGETBUFFERPARAMETERIVPROC glad_glGetBufferParameteriv = …;
PFNGLGETBUFFERPOINTERVOESPROC glad_glGetBufferPointervOES = …;
PFNGLGETERRORPROC glad_glGetError = …;
PFNGLGETFLOATVPROC glad_glGetFloatv = …;
PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC glad_glGetFramebufferAttachmentParameteriv = …;
PFNGLGETINTEGERVPROC glad_glGetIntegerv = …;
PFNGLGETPROGRAMINFOLOGPROC glad_glGetProgramInfoLog = …;
PFNGLGETPROGRAMIVPROC glad_glGetProgramiv = …;
PFNGLGETRENDERBUFFERPARAMETERIVPROC glad_glGetRenderbufferParameteriv = …;
PFNGLGETSHADERINFOLOGPROC glad_glGetShaderInfoLog = …;
PFNGLGETSHADERPRECISIONFORMATPROC glad_glGetShaderPrecisionFormat = …;
PFNGLGETSHADERSOURCEPROC glad_glGetShaderSource = …;
PFNGLGETSHADERIVPROC glad_glGetShaderiv = …;
PFNGLGETSTRINGPROC glad_glGetString = …;
PFNGLGETTEXPARAMETERFVPROC glad_glGetTexParameterfv = …;
PFNGLGETTEXPARAMETERIVPROC glad_glGetTexParameteriv = …;
PFNGLGETUNIFORMLOCATIONPROC glad_glGetUniformLocation = …;
PFNGLGETUNIFORMFVPROC glad_glGetUniformfv = …;
PFNGLGETUNIFORMIVPROC glad_glGetUniformiv = …;
PFNGLGETVERTEXATTRIBPOINTERVPROC glad_glGetVertexAttribPointerv = …;
PFNGLGETVERTEXATTRIBFVPROC glad_glGetVertexAttribfv = …;
PFNGLGETVERTEXATTRIBIVPROC glad_glGetVertexAttribiv = …;
PFNGLHINTPROC glad_glHint = …;
PFNGLISBUFFERPROC glad_glIsBuffer = …;
PFNGLISENABLEDPROC glad_glIsEnabled = …;
PFNGLISFRAMEBUFFERPROC glad_glIsFramebuffer = …;
PFNGLISPROGRAMPROC glad_glIsProgram = …;
PFNGLISRENDERBUFFERPROC glad_glIsRenderbuffer = …;
PFNGLISSHADERPROC glad_glIsShader = …;
PFNGLISTEXTUREPROC glad_glIsTexture = …;
PFNGLLINEWIDTHPROC glad_glLineWidth = …;
PFNGLLINKPROGRAMPROC glad_glLinkProgram = …;
PFNGLMAPBUFFEROESPROC glad_glMapBufferOES = …;
PFNGLPIXELSTOREIPROC glad_glPixelStorei = …;
PFNGLPOLYGONOFFSETPROC glad_glPolygonOffset = …;
PFNGLREADPIXELSPROC glad_glReadPixels = …;
PFNGLRELEASESHADERCOMPILERPROC glad_glReleaseShaderCompiler = …;
PFNGLRENDERBUFFERSTORAGEPROC glad_glRenderbufferStorage = …;
PFNGLSAMPLECOVERAGEPROC glad_glSampleCoverage = …;
PFNGLSCISSORPROC glad_glScissor = …;
PFNGLSHADERBINARYPROC glad_glShaderBinary = …;
PFNGLSHADERSOURCEPROC glad_glShaderSource = …;
PFNGLSTENCILFUNCPROC glad_glStencilFunc = …;
PFNGLSTENCILFUNCSEPARATEPROC glad_glStencilFuncSeparate = …;
PFNGLSTENCILMASKPROC glad_glStencilMask = …;
PFNGLSTENCILMASKSEPARATEPROC glad_glStencilMaskSeparate = …;
PFNGLSTENCILOPPROC glad_glStencilOp = …;
PFNGLSTENCILOPSEPARATEPROC glad_glStencilOpSeparate = …;
PFNGLTEXIMAGE2DPROC glad_glTexImage2D = …;
PFNGLTEXPARAMETERFPROC glad_glTexParameterf = …;
PFNGLTEXPARAMETERFVPROC glad_glTexParameterfv = …;
PFNGLTEXPARAMETERIPROC glad_glTexParameteri = …;
PFNGLTEXPARAMETERIVPROC glad_glTexParameteriv = …;
PFNGLTEXSUBIMAGE2DPROC glad_glTexSubImage2D = …;
PFNGLUNIFORM1FPROC glad_glUniform1f = …;
PFNGLUNIFORM1FVPROC glad_glUniform1fv = …;
PFNGLUNIFORM1IPROC glad_glUniform1i = …;
PFNGLUNIFORM1IVPROC glad_glUniform1iv = …;
PFNGLUNIFORM2FPROC glad_glUniform2f = …;
PFNGLUNIFORM2FVPROC glad_glUniform2fv = …;
PFNGLUNIFORM2IPROC glad_glUniform2i = …;
PFNGLUNIFORM2IVPROC glad_glUniform2iv = …;
PFNGLUNIFORM3FPROC glad_glUniform3f = …;
PFNGLUNIFORM3FVPROC glad_glUniform3fv = …;
PFNGLUNIFORM3IPROC glad_glUniform3i = …;
PFNGLUNIFORM3IVPROC glad_glUniform3iv = …;
PFNGLUNIFORM4FPROC glad_glUniform4f = …;
PFNGLUNIFORM4FVPROC glad_glUniform4fv = …;
PFNGLUNIFORM4IPROC glad_glUniform4i = …;
PFNGLUNIFORM4IVPROC glad_glUniform4iv = …;
PFNGLUNIFORMMATRIX2FVPROC glad_glUniformMatrix2fv = …;
PFNGLUNIFORMMATRIX3FVPROC glad_glUniformMatrix3fv = …;
PFNGLUNIFORMMATRIX4FVPROC glad_glUniformMatrix4fv = …;
PFNGLUNMAPBUFFEROESPROC glad_glUnmapBufferOES = …;
PFNGLUSEPROGRAMPROC glad_glUseProgram = …;
PFNGLVALIDATEPROGRAMPROC glad_glValidateProgram = …;
PFNGLVERTEXATTRIB1FPROC glad_glVertexAttrib1f = …;
PFNGLVERTEXATTRIB1FVPROC glad_glVertexAttrib1fv = …;
PFNGLVERTEXATTRIB2FPROC glad_glVertexAttrib2f = …;
PFNGLVERTEXATTRIB2FVPROC glad_glVertexAttrib2fv = …;
PFNGLVERTEXATTRIB3FPROC glad_glVertexAttrib3f = …;
PFNGLVERTEXATTRIB3FVPROC glad_glVertexAttrib3fv = …;
PFNGLVERTEXATTRIB4FPROC glad_glVertexAttrib4f = …;
PFNGLVERTEXATTRIB4FVPROC glad_glVertexAttrib4fv = …;
PFNGLVERTEXATTRIBPOINTERPROC glad_glVertexAttribPointer = …;
PFNGLVIEWPORTPROC glad_glViewport = …;
static void glad_gl_load_GL_ES_VERSION_2_0( GLADuserptrloadfunc load, void* userptr) { … }
static void glad_gl_load_GL_OES_mapbuffer( GLADuserptrloadfunc load, void* userptr) { … }
#if defined(GL_ES_VERSION_3_0) || defined(GL_VERSION_3_0)
#define GLAD_GL_IS_SOME_NEW_VERSION …
#else
#define GLAD_GL_IS_SOME_NEW_VERSION …
#endif
static int glad_gl_get_extensions( int version, const char **out_exts, unsigned int *out_num_exts_i, char ***out_exts_i) { … }
static void glad_gl_free_extensions(char **exts_i, unsigned int num_exts_i) { … }
static int glad_gl_has_extension(int version, const char *exts, unsigned int num_exts_i, char **exts_i, const char *ext) { … }
static GLADapiproc glad_gl_get_proc_from_userptr(void *userptr, const char* name) { … }
static int glad_gl_find_extensions_gles2( int version) { … }
static int glad_gl_find_core_gles2(void) { … }
int gladLoadGLES2UserPtr( GLADuserptrloadfunc load, void *userptr) { … }
int gladLoadGLES2( GLADloadfunc load) { … }
#ifdef __cplusplus
}
#endif