diff options
Diffstat (limited to 'include/mgl/gl.h')
-rw-r--r-- | include/mgl/gl.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/mgl/gl.h b/include/mgl/gl.h new file mode 100644 index 0000000..1791059 --- /dev/null +++ b/include/mgl/gl.h @@ -0,0 +1,14 @@ +#ifndef MGL_GL_H +#define MGL_GL_H + +typedef struct { + void *handle; + void (*glViewport)(int x, int y, int width, int height); + void (*glClearColor)(float red, float green, float blue, float alpha); + void (*glClear)(unsigned int mask); +} mgl_gl; + +int mgl_gl_load(mgl_gl *self); +void mgl_gl_unload(mgl_gl *self); + +#endif /* MGL_GL_H */ |