diff options
Diffstat (limited to 'gl.c')
-rw-r--r-- | gl.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -9,6 +9,7 @@ #include "glfunc.h" #undef GL_FUNC +// load_func: load OpenGL function static void *load_func(const char *name, gl_loadfunc *load) { void *ret; @@ -20,6 +21,7 @@ static void *load_func(const char *name, gl_loadfunc *load) return ret; } +// gl_load: load required OpenGL functions void gl_load(gl_loadfunc *load) { #define GL_FUNC(glname, rtype, name, ...) \ @@ -28,6 +30,7 @@ void gl_load(gl_loadfunc *load) #undef GL_FUNC } +// gl_strerror: format OpenGL error code into a string const char *gl_strerror(GLenum error) { switch (error) { |