aboutsummaryrefslogtreecommitdiffstats
path: root/gl.c
diff options
context:
space:
mode:
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) {