fix Color constexpr constructor

This commit is contained in:
Andrew Cassidy 2021-04-01 16:50:02 -07:00
parent fa3fab4ca0
commit 0caa4fbc4c

View File

@ -34,9 +34,9 @@ class Color {
uint8_t b;
uint8_t a;
constexpr Color() { SetRGBA(0, 0, 0, 0xFF); }
constexpr Color() : Color(0, 0, 0, 0xFF) {}
constexpr Color(uint8_t vr, uint8_t vg, uint8_t vb, uint8_t va = 0xFF) { SetRGBA(vr, vg, vb, va); }
constexpr Color(uint8_t vr, uint8_t vg, uint8_t vb, uint8_t va = 0xFF) : r(vr), g(vg), b(vb), a(va) {}
Color(Vector4Int v);