diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-18 13:38:54 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-18 13:38:54 +0100 |
commit | d8e6773be7206994716c29e1ee8195b10f094bdf (patch) | |
tree | 055b1011f35d495d66225611ca0fdf4db29bd98b /src/example/rendering_particle.cpp | |
parent | 36f941aa1cdea5faeec20a0dc793e0538ccd6d15 (diff) |
added transform scale and rotation in the drawing text component
Diffstat (limited to 'src/example/rendering_particle.cpp')
-rw-r--r-- | src/example/rendering_particle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/example/rendering_particle.cpp b/src/example/rendering_particle.cpp index e8b3775..4430d75 100644 --- a/src/example/rendering_particle.cpp +++ b/src/example/rendering_particle.cpp @@ -40,11 +40,11 @@ public: .position_offset = {0, 0}, }); - auto & cam = game_object.add_component<Camera>(ivec2{1280, 720}, vec2{400, 400}, + auto & cam = game_object.add_component<Camera>(ivec2{1280, 720}, vec2{4000, 4000}, Camera::Data{ .bg_color = Color::WHITE, }); - game_object.add_component<Text>(vec2{400, 400}, vec2{0, 0}, "ComicSansMS", + game_object.add_component<Text>(vec2{4000, 400}, vec2{0, 0}, "ComicSansMS", Text::Data{.text_color = Color::RED}, "TEST test"); } |