Integrate new Jaby sprite

This commit is contained in:
Jaby
2024-04-05 19:57:02 -05:00
committed by Jaby
parent a50b43e2df
commit 9eb3423f3d
9 changed files with 52 additions and 6 deletions

View File

@@ -5,7 +5,7 @@ namespace math {
template<typename T>
struct raw_math {
constexpr T operator-() const {
return T{.raw = -(static_cast<const T&>(*this).raw)};
return T{.raw = static_cast<decltype(T::raw)>(-(static_cast<const T&>(*this).raw))};
}
constexpr T operator+(const T& obj) const {