diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-10-19 07:04:21 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-10-19 07:04:21 +0200 |
commit | 3bdf82eec2c915e91ae487e29d72639f9efcad67 (patch) | |
tree | c61476e241f75e71959394d82aa3ff9c343febbb /src/gl.c | |
parent | 4a96d4a354fbde7fd614075c060aea78a3411b42 (diff) |
Use uint8_t for color instead of float
Diffstat (limited to 'src/gl.c')
-rw-r--r-- | src/gl.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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" }, |