aboutsummaryrefslogtreecommitdiff
path: root/include/mgl/graphics/color.h
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 /include/mgl/graphics/color.h
parent4a96d4a354fbde7fd614075c060aea78a3411b42 (diff)
Use uint8_t for color instead of float
Diffstat (limited to 'include/mgl/graphics/color.h')
-rw-r--r--include/mgl/graphics/color.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/mgl/graphics/color.h b/include/mgl/graphics/color.h
index 62ded72..68cc0c1 100644
--- a/include/mgl/graphics/color.h
+++ b/include/mgl/graphics/color.h
@@ -1,8 +1,10 @@
#ifndef MGL_COLOR_H
#define MGL_COLOR_H
+#include <stdint.h>
+
typedef struct {
- float r, g, b, a;
+ uint8_t r, g, b, a;
} mgl_color;
#endif /* MGL_COLOR_H */