wiColor fix

This commit is contained in:
Turanszki Janos
2018-11-14 20:57:59 +00:00
parent 78e4a9d16b
commit d55b2e39f3
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -14,10 +14,10 @@ struct wiColor
constexpr uint8_t getB() const { return (rgba >> 16) & 0xFF; }
constexpr uint8_t getA() const { return (rgba >> 24) & 0xFF; }
constexpr void setR(uint8_t value) { wiColor(value, getG(), getB(), getA()); }
constexpr void setG(uint8_t value) { wiColor(getR(), value, getB(), getA()); }
constexpr void setB(uint8_t value) { wiColor(getR(), getG(), value, getA()); }
constexpr void setA(uint8_t value) { wiColor(getR(), getG(), getB(), value); }
constexpr void setR(uint8_t value) { *this = wiColor(value, getG(), getB(), getA()); }
constexpr void setG(uint8_t value) { *this = wiColor(getR(), value, getB(), getA()); }
constexpr void setB(uint8_t value) { *this = wiColor(getR(), getG(), value, getA()); }
constexpr void setA(uint8_t value) { *this = wiColor(getR(), getG(), getB(), value); }
constexpr XMFLOAT3 toFloat3() const
{
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wiVersion
// minor features, major updates
const int minor = 22;
// minor bug fixes, alterations, refactors, updates
const int revision = 17;
const int revision = 18;
long GetVersion()