summaryrefslogtreecommitdiff
path: root/Runtime/Graphics/Color.h
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/Graphics/Color.h')
-rw-r--r--Runtime/Graphics/Color.h25
1 files changed, 18 insertions, 7 deletions
diff --git a/Runtime/Graphics/Color.h b/Runtime/Graphics/Color.h
index 461e7af..3cff7a5 100644
--- a/Runtime/Graphics/Color.h
+++ b/Runtime/Graphics/Color.h
@@ -3,20 +3,31 @@
#include "../Utilities/Type.h"
-class ColorRGBAf
+class Color
{
public:
- float r, g, b, a;
-
+ Color(float r = 0, float g = 0, float b = 0, float a = 0)
+ {
+ this->r = r;
+ this->g = g;
+ this->b = b;
+ this->a = a;
+ }
+ float r, g, b, a;
};
-class ColorRGBA32
+class Color32
{
public:
- uint8 r, g, b, a;
+ Color32(int r = 0, int g = 0, int b = 0, int a = 0)
+ {
+ this->r = r;
+ this->g = g;
+ this->b = b;
+ this->a = a;
+ }
+ int r, g, b, a;
};
-using Color = ColorRGBAf;
-
#endif \ No newline at end of file