Initial commit of KazEngine3
[kazengine.git] / src / utilities / colour.h
blob069d36ed8a93bd3e41aa600644fa0cbddac09cf4
1 #ifndef COLOUR_H_INCLUDED
2 #define COLOUR_H_INCLUDED
4 typedef unsigned char ColourComponent;
6 struct Colour {
7 ColourComponent red;
8 ColourComponent green;
9 ColourComponent blue;
10 ColourComponent alpha;
12 explicit Colour(const ColourComponent& r,
13 const ColourComponent& g,
14 const ColourComponent& b,
15 const ColourComponent& a) {
17 red = r;
18 green = g;
19 blue = b;
20 alpha = a;
23 explicit Colour(const ColourComponent& r,
24 const ColourComponent& g,
25 const ColourComponent& b) {
27 red = r;
28 green = g;
29 blue = b;
30 alpha = 255;
33 Colour(const Colour& c) {
34 red = c.red;
35 blue = c.blue;
36 green = c.green;
37 alpha = c.alpha;
41 #endif // COLOUR_H_INCLUDED