From d3f47e042aebd5fbf86477abf7058704657e8430 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Sat, 27 Oct 2018 12:41:58 +0100 Subject: Cleanup pass --- gl.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gl.c') diff --git a/gl.c b/gl.c index cee215d..99f537e 100644 --- a/gl.c +++ b/gl.c @@ -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) { -- cgit v1.2.3-54-g00ecf