mirror of
https://github.com/drewcassidy/quicktex.git
synced 2024-09-13 06:37:34 +00:00
fix Color constexpr constructor
This commit is contained in:
parent
fa3fab4ca0
commit
0caa4fbc4c
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user