Hazel
Hazel copied to clipboard
`glm` vectors, matrices and quaternions logging issue
https://github.com/TheCherno/Hazel/blob/f627b9c90923382f735350cd3060892bbd4b1e75/Hazel/src/Hazel/Core/Log.h#L30-L46
Hello, I just want to point out that, this piece of code no longer works with the latest version of spdlog
, which now requires us to explicitly specialize the template struct fmt::formatter<T>
. It seems like we need to write a formatter for the entire hierarchy of tvec, tmat, tquat
types, with some ugly template metaprogramming. But since we have glm::to_string()
anyway, this should not be an issue. In C++20 we may have a more elegant way to do this using std::format
.