Replacing std::format with fmt::format

This commit is contained in:
Dynamitos
2024-01-16 19:24:49 +01:00
parent c0da7d77a1
commit 861c146b46
55 changed files with 304 additions and 186 deletions
+1 -1
View File
@@ -9,8 +9,8 @@ using namespace Seele::Math;
Camera::Camera()
: viewMatrix(Matrix4())
, bNeedsViewBuild(false)
, cameraPos(Vector())
, bNeedsViewBuild(false)
{
yaw = -3.1415f/2;
pitch = 0;
+4 -4
View File
@@ -11,7 +11,7 @@ struct Dependencies<>
{
int x;
template<typename... Right>
Dependencies<Right...> operator|(const Dependencies<Right...>& other)
Dependencies<Right...> operator|(const Dependencies<Right...>&)
{
return Dependencies<Right...>();
}
@@ -20,7 +20,7 @@ template<typename This, typename... Rest>
struct Dependencies<This, Rest...> : public Dependencies<Rest...>
{
template<typename... Right>
Dependencies<This, Rest..., Right...> operator|(const Dependencies<Right...>& other)
Dependencies<This, Rest..., Right...> operator|(const Dependencies<Right...>&)
{
return Dependencies<This, Rest..., Right...>();
}
@@ -38,8 +38,8 @@ concept has_dependencies = requires(Comp) { Comp::dependencies; };
#define REQUIRE_COMPONENT(x) \
private: \
x& get##x() { return getComponent<##x>(); } \
const x& get##x() const { return getComponent<##x>(); } \
x& get##x() { return getComponent<x>(); } \
const x& get##x() const { return getComponent<x>(); } \
public: \
constexpr static Dependencies<x> dependencies = {};