This commit is contained in:
h4570
2022-08-14 19:41:44 +02:00
parent b8aa40cba8
commit a78f430a6e
8 changed files with 132 additions and 19 deletions
+12
View File
@@ -19,6 +19,18 @@ void Color::copy(Color* out, const float* in) {
}
void Color::operator=(const Color& v) { copy(this, v); }
void Color::operator*=(const float& v) {
r *= v;
g *= v;
b *= v;
a *= v;
}
void Color::operator/=(const float& v) {
r /= v;
g /= v;
b /= v;
a /= v;
}
void Color::set(const float& t_r, const float& t_g, const float& t_b,
const float& t_a) {