From d8e6773be7206994716c29e1ee8195b10f094bdf Mon Sep 17 00:00:00 2001 From: heavydemon21 Date: Wed, 18 Dec 2024 13:38:54 +0100 Subject: added transform scale and rotation in the drawing text component --- src/example/rendering_particle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/example') 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(ivec2{1280, 720}, vec2{400, 400}, + auto & cam = game_object.add_component(ivec2{1280, 720}, vec2{4000, 4000}, Camera::Data{ .bg_color = Color::WHITE, }); - game_object.add_component(vec2{400, 400}, vec2{0, 0}, "ComicSansMS", + game_object.add_component(vec2{4000, 400}, vec2{0, 0}, "ComicSansMS", Text::Data{.text_color = Color::RED}, "TEST test"); } -- cgit v1.2.3