diff options
author | chai <chaifix@163.com> | 2021-10-28 11:09:59 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-28 11:09:59 +0800 |
commit | 92dd401d75e19281dc7a01492ab3c0996de330fc (patch) | |
tree | 489abcea143fc269e77a0553c6f12ec821bf2feb /Runtime/Graphics/Color.h | |
parent | f6327c0948d666a4b61358c7aefed36eb070198d (diff) |
*misc
Diffstat (limited to 'Runtime/Graphics/Color.h')
-rw-r--r-- | Runtime/Graphics/Color.h | 54 |
1 files changed, 28 insertions, 26 deletions
diff --git a/Runtime/Graphics/Color.h b/Runtime/Graphics/Color.h index 3cff7a5..abc0724 100644 --- a/Runtime/Graphics/Color.h +++ b/Runtime/Graphics/Color.h @@ -1,33 +1,35 @@ -#ifndef COLOR_H -#define COLOR_H +#pragma once #include "../Utilities/Type.h" -class Color +namespace Internal { -public: - 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 Color32 -{ -public: - 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; + class Color + { + public: + 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 Color32 + { + public: + 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; -}; + }; -#endif
\ No newline at end of file +} |