diff options
Diffstat (limited to 'Runtime/Graphics/Color.h')
-rw-r--r-- | Runtime/Graphics/Color.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Runtime/Graphics/Color.h b/Runtime/Graphics/Color.h index abc0724..af8d3ba 100644 --- a/Runtime/Graphics/Color.h +++ b/Runtime/Graphics/Color.h @@ -5,9 +5,8 @@ namespace Internal { - class Color + struct Color { - public: Color(float r = 0, float g = 0, float b = 0, float a = 0) { this->r = r; @@ -18,18 +17,19 @@ namespace Internal float r, g, b, a; }; - class Color32 + struct Color32 { - public: - Color32(int r = 0, int g = 0, int b = 0, int a = 0) + Color32(unsigned char r = 0, unsigned char g = 0, unsigned char b = 0, unsigned char a = 0) { this->r = r; this->g = g; this->b = b; this->a = a; } - int r, g, b, a; - + unsigned char r, g, b, a; }; } + +typedef Internal::Color Color; +typedef Internal::Color32 Color32; |