From 3bdf82eec2c915e91ae487e29d72639f9efcad67 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 19 Oct 2021 07:04:21 +0200 Subject: Use uint8_t for color instead of float --- src/gl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/gl.c') 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 -/*#include */ +#include #include 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" }, -- cgit v1.2.3