Skip to content

Commit

Permalink
Better CLI support, ability to export and import 'skinned' vertices, …
Browse files Browse the repository at this point in the history
…bugfixes
  • Loading branch information
Elvyria committed Oct 25, 2022
1 parent 079eefa commit 5b792e0
Show file tree
Hide file tree
Showing 2 changed files with 200 additions and 152 deletions.
12 changes: 12 additions & 0 deletions src/format.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include <fmt/format.h>

template <> struct fmt::formatter<Vector3> {
constexpr auto parse(format_parse_context& ctx) -> decltype(ctx.begin()) {
return ctx.begin();
}

template <typename FormatContext>
auto format(const Vector3& v, FormatContext& ctx) const -> decltype(ctx.out()) {
return format_to(ctx.out(), "{} {} {}", v.x, v.y, v.z);
}
};
Loading

0 comments on commit 5b792e0

Please sign in to comment.