]> git.localhorst.tv Git - space.git/blob - src/graphics/Color.h
move to SDL2
[space.git] / src / graphics / Color.h
1 #ifndef SPACE_COLOR_H_
2 #define SPACE_COLOR_H_
3
4 #include <SDL.h>
5
6
7 namespace space {
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