diff options
author | chai <chaifix@163.com> | 2021-10-27 23:37:24 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-27 23:37:24 +0800 |
commit | 305ca0a09d4e750186b5190432de47f3493e806a (patch) | |
tree | d82f9ef73191abc2acbcbfdca4b184a28e6c381b /Runtime/Graphics/Color.h | |
parent | 51ced5a191078ce4ef08d57e343e91db007f556f (diff) |
*GfxDevice
Diffstat (limited to 'Runtime/Graphics/Color.h')
-rw-r--r-- | Runtime/Graphics/Color.h | 25 |
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 |