diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-11-27 11:15:02 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-11-27 11:15:02 +0100 |
commit | 7f66cd4a9b609f6bf36d005f5e38ef2a57d1c0d3 (patch) | |
tree | dd1338bc5589d882d5c5d3b2ec56d0cb0532e891 /src/example | |
parent | 72e605528ebe8347e1457358fe9025c215afe163 (diff) |
removed shared_ptr from sprite
Diffstat (limited to 'src/example')
-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 afa064d..3589cad 100644 --- a/src/example/rendering_particle.cpp +++ b/src/example/rendering_particle.cpp @@ -31,8 +31,8 @@ int main(int argc, char * argv[]) { Color color(255, 255, 255, 255); - Sprite & test_sprite = game_object.add_component<Sprite>( - make_shared<Texture>("asset/texture/test_ap43.png"), color, + auto img = Texture("asset/texture/test_ap43.png"); + Sprite & test_sprite = game_object.add_component<Sprite>(img, color, FlipSettings{true, true}); test_sprite.order_in_layer = 5; test_sprite.height = 195; |