aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Vector2.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2025-01-07 14:33:07 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2025-01-07 14:33:07 +0100
commit5d798c30af7026099344a068e91e1684018b4386 (patch)
tree923b54a2745c338478246b8707c6ce8361822fc7 /src/crepe/api/Vector2.h
parent6d69c8ef6b663bd6716b441cc7d01164c7e33dfc (diff)
parent42cbef630ccaf3e841459d364edade1a3c72a525 (diff)
merge + more WIP
Diffstat (limited to 'src/crepe/api/Vector2.h')
-rw-r--r--src/crepe/api/Vector2.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/crepe/api/Vector2.h b/src/crepe/api/Vector2.h
index 0f46964..6613641 100644
--- a/src/crepe/api/Vector2.h
+++ b/src/crepe/api/Vector2.h
@@ -1,5 +1,7 @@
#pragma once
+#include <format>
+
namespace crepe {
//! 2D vector
@@ -100,4 +102,9 @@ struct Vector2 {
} // namespace crepe
+template <typename T>
+struct std::formatter<crepe::Vector2<T>> : std::formatter<std::string> {
+ format_context::iterator format(crepe::Vector2<T> vec, format_context & ctx) const;
+};
+
#include "Vector2.hpp"