diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2018-10-27 12:41:58 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2018-10-27 12:47:05 +0100 |
commit | d3f47e042aebd5fbf86477abf7058704657e8430 (patch) | |
tree | 4996f0c46f7ebf5037ee7fecceb161bbeb4e549e /gl.c | |
parent | adbc72e159d48e6b1ad091e6ac19fd1cd6d5f798 (diff) | |
download | faqe-d3f47e042aebd5fbf86477abf7058704657e8430.tar.gz faqe-d3f47e042aebd5fbf86477abf7058704657e8430.tar.xz faqe-d3f47e042aebd5fbf86477abf7058704657e8430.zip |
Cleanup pass
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) { |