]> git.localhorst.tv Git - gworm.git/blob - src/graphics/Color.h
f976e1a4b36181003bb775f93e3fb59c63b77919
[gworm.git] / src / graphics / Color.h
1 #ifndef SPACE_COLOR_H_
2 #define SPACE_COLOR_H_
3
4 #include <SDL.h>
5
6
7 namespace gworm {
8
9 struct Color {
10
11         constexpr Color()
12         : Color(0, 0, 0) { }
13         constexpr Color(Uint8 r, Uint8 g, Uint8 b, Uint8 a = 0xFF)
14         : r(r), g(g), b(b), a(a) { }
15
16         Uint8 r, g, b, a;
17
18 };
19
20 }
21
22 #endif