diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-10-10 12:56:55 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-10-10 13:18:12 +0200 |
commit | 3b2fceed064c06d55e1cd33d51e855e909c81f75 (patch) | |
tree | 962611955ddac906d906af1b44076d7cfae2bb64 /include/mgl/gl.h | |
parent | e57daa001cc74682cdb905d8e0c6c8c3a2c29372 (diff) |
add event and test graphics
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 */ |