aboutsummaryrefslogtreecommitdiffstats
path: root/gl.c
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2018-10-27 12:41:58 +0100
committerTomasz Kramkowski <tk@the-tk.com>2018-10-27 12:47:05 +0100
commitd3f47e042aebd5fbf86477abf7058704657e8430 (patch)
tree4996f0c46f7ebf5037ee7fecceb161bbeb4e549e /gl.c
parentadbc72e159d48e6b1ad091e6ac19fd1cd6d5f798 (diff)
downloadfaqe-d3f47e042aebd5fbf86477abf7058704657e8430.tar.gz
faqe-d3f47e042aebd5fbf86477abf7058704657e8430.tar.xz
faqe-d3f47e042aebd5fbf86477abf7058704657e8430.zip
Cleanup pass
Diffstat (limited to 'gl.c')
-rw-r--r--gl.c3
1 files changed, 3 insertions, 0 deletions
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) {