aboutsummaryrefslogtreecommitdiff
path: root/src/gl.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-10-19 07:04:21 +0200
committerdec05eba <dec05eba@protonmail.com>2021-10-19 07:04:21 +0200
commit3bdf82eec2c915e91ae487e29d72639f9efcad67 (patch)
treec61476e241f75e71959394d82aa3ff9c343febbb /src/gl.c
parent4a96d4a354fbde7fd614075c060aea78a3411b42 (diff)
Use uint8_t for color instead of float
Diffstat (limited to 'src/gl.c')
-rw-r--r--src/gl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gl.c b/src/gl.c
index a06f75a..45280f1 100644
--- a/src/gl.c
+++ b/src/gl.c
@@ -1,6 +1,6 @@
#include "../include/mgl/gl.h"
#include <dlfcn.h>
-/*#include <GL/gl.h>*/
+#include <GL/gl.h>
#include <stdio.h>
typedef struct {
@@ -48,9 +48,8 @@ int mgl_gl_load(mgl_gl *self) {
{ &self->glHint, "glHint" },
{ &self->glBegin, "glBegin" },
{ &self->glEnd, "glEnd" },
- { &self->glColor3f, "glColor3f" },
{ &self->glVertex3f, "glVertex3f" },
- { &self->glColor4f, "glColor4f" },
+ { &self->glColor4ub, "glColor4ub" },
{ &self->glTexCoord2f, "glTexCoord2f" },
{ &self->glOrtho, "glOrtho" },
{ &self->glMatrixMode, "glMatrixMode" },