diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-17 13:29:58 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-17 13:29:58 +0100 |
commit | bcaee968761c1d2e85c20925b237480c87da9747 (patch) | |
tree | f91ab2c2396a6365eb0696902e63975dc18b5259 /src/example/rendering_particle.cpp | |
parent | bfc07676707eae2c0161c6b86ccdd1583d96f71b (diff) |
tmp fix
Diffstat (limited to 'src/example/rendering_particle.cpp')
-rw-r--r-- | src/example/rendering_particle.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/example/rendering_particle.cpp b/src/example/rendering_particle.cpp index 21ed7fc..b261f52 100644 --- a/src/example/rendering_particle.cpp +++ b/src/example/rendering_particle.cpp @@ -1,3 +1,5 @@ + + #include "api/Asset.h" #include "api/Text.h" #include <crepe/Component.h> @@ -14,7 +16,6 @@ #include <crepe/manager/ComponentManager.h> #include <crepe/manager/Mediator.h> #include <crepe/types.h> -#include <iostream> using namespace crepe; using namespace std; @@ -65,8 +66,8 @@ public: Camera::Data{ .bg_color = Color::WHITE, }); - - game_object.add_component<Text>(vec2{200,200}, vec2{0,0}, "test test", "", Text::Data{}); + game_object.add_component<Text>(vec2{200, 200}, vec2{0, 0}, "test test", "Ariel.ttf", + Text::Data{}); } string get_name() const { return "TestScene"; }; |