diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-17 13:58:52 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-17 13:58:52 +0100 |
commit | 8d3fd95ad8564740bb169f4e08bc085a232a4d83 (patch) | |
tree | 7d0334ee18d0f9278817143b73be0385516b4093 /src/example | |
parent | 31fe4b1d44a7a7114c7ef8c0c5310a6070214cb2 (diff) |
workig rending text
Diffstat (limited to 'src/example')
-rw-r--r-- | src/example/rendering_particle.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/example/rendering_particle.cpp b/src/example/rendering_particle.cpp index b261f52..aa71dd0 100644 --- a/src/example/rendering_particle.cpp +++ b/src/example/rendering_particle.cpp @@ -62,12 +62,12 @@ public: .position_offset = {0, 0}, }); - auto & cam = game_object.add_component<Camera>(ivec2{400, 400}, vec2{400, 400}, + auto & cam = game_object.add_component<Camera>(ivec2{1280, 720}, vec2{400, 400}, Camera::Data{ .bg_color = Color::WHITE, }); - game_object.add_component<Text>(vec2{200, 200}, vec2{0, 0}, "test test", "Ariel.ttf", - Text::Data{}); + game_object.add_component<Text>(vec2{400, 400}, vec2{0, 0}, "ComicSansMS", + Text::Data{.text_color = Color::RED}, "TEST test"); } string get_name() const { return "TestScene"; }; |