We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c16742 commit 87fb8f4Copy full SHA for 87fb8f4
include/Util/Logger.hpp
@@ -5,6 +5,8 @@
5
6
#include <spdlog/spdlog.h>
7
8
+#include "Util/Transform.hpp"
9
+
10
namespace Util::Logger {
11
enum class Level {
12
TRACE,
@@ -28,4 +30,14 @@ Level GetLevel();
28
30
#define LOG_CRITICAL(...) spdlog::critical(__VA_ARGS__)
29
31
} // namespace Util::Logger
32
33
+template <>
34
+struct fmt::formatter<Util::Transform> : fmt::formatter<std::string> {
35
+ auto format(Util::Transform t, format_context &ctx) const
36
+ -> decltype(ctx.out()) {
37
+ return format_to(ctx.out(), "T: {} R: {} rad S: {}",
38
+ glm::to_string(t.translation), t.rotation,
39
+ glm::to_string(t.scale));
40
+ }
41
+};
42
43
#endif
0 commit comments