aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mglpp/graphics/Color.hpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/mglpp/graphics/Color.hpp b/include/mglpp/graphics/Color.hpp
index d1c1745..0d0ac15 100644
--- a/include/mglpp/graphics/Color.hpp
+++ b/include/mglpp/graphics/Color.hpp
@@ -1,12 +1,15 @@
#ifndef MGLPP_COLOR_HPP
#define MGLPP_COLOR_HPP
+#include <stdint.h>
+
namespace mgl {
struct Color {
- float r = 1.0f;
- float g = 1.0f;
- float b = 1.0f;
- float a = 1.0f;
+ Color(uint8_t r = 255, uint8_t g = 255, uint8_t b = 255, uint8_t a = 255) : r(r), g(g), b(b), a(a) {
+
+ }
+
+ uint8_t r, g, b, a;
};
}