summaryrefslogtreecommitdiff
path: root/Runtime/Graphics/Color.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-11-02 09:30:25 +0800
committerchai <chaifix@163.com>2021-11-02 09:30:25 +0800
commitb7511abf1a1f302b5c7ebf50faaf65b62d7bb6ed (patch)
tree7265398e248b55ede4b3550ec47660be334bf1ff /Runtime/Graphics/Color.h
parenta11097e51fcaef4488218411f2d7b3ee34550000 (diff)
* TextMesh
Diffstat (limited to 'Runtime/Graphics/Color.h')
-rw-r--r--Runtime/Graphics/Color.h14
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;