diff options
author | chai <chaifix@163.com> | 2021-11-02 19:44:01 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-11-02 19:44:01 +0800 |
commit | 72812a7b47f90f9460e54e8149ba9199a7841244 (patch) | |
tree | 9ebdb4b65d7cbbc0a3d7c436a9b45d4eff351b62 /Runtime/Graphics/Color.h | |
parent | b7511abf1a1f302b5c7ebf50faaf65b62d7bb6ed (diff) |
! Text mesh done
Diffstat (limited to 'Runtime/Graphics/Color.h')
-rw-r--r-- | Runtime/Graphics/Color.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Runtime/Graphics/Color.h b/Runtime/Graphics/Color.h index af8d3ba..ebccafe 100644 --- a/Runtime/Graphics/Color.h +++ b/Runtime/Graphics/Color.h @@ -14,6 +14,13 @@ namespace Internal this->b = b; this->a = a; } + void Set(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; }; @@ -26,6 +33,13 @@ namespace Internal this->b = b; this->a = a; } + void Set(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; + } unsigned char r, g, b, a; }; |