diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-11-20 15:16:06 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-11-20 15:16:06 +0100 |
commit | a0f39be4510665614d25d23d88fe1d0f0b5cc740 (patch) | |
tree | b5a82723490bab97c40e8774a176293fae670e6a /src/example/rendering_particle.cpp | |
parent | a01c2dc46daeffa0a5c92230d1513047a072c04d (diff) |
rendering system bug
Diffstat (limited to 'src/example/rendering_particle.cpp')
-rw-r--r-- | src/example/rendering_particle.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/example/rendering_particle.cpp b/src/example/rendering_particle.cpp index bcf95b8..062f11f 100644 --- a/src/example/rendering_particle.cpp +++ b/src/example/rendering_particle.cpp @@ -27,12 +27,12 @@ int main(int argc, char * argv[]) { ParticleSystem psys{mgr}; Color color(255, 255, 255, 255); - game_object.add_component<Sprite>(make_shared<Texture>("../asset/texture/img.png"), color, FlipSettings{false,false}); + //game_object.add_component<Sprite>(make_shared<Texture>("../asset/texture/img.png"), color, FlipSettings{false,false}); Sprite test_sprite = game_object.add_component<Sprite>( make_shared<Texture>("../asset/texture/img.png"), color, FlipSettings{false, false}); game_object.add_component<ParticleEmitter>(ParticleEmitter::Data{ - .position = {100, 0}, + .position = {0, 0}, .max_particles = 10, .emission_rate = 0.1, .min_speed = 6, @@ -49,8 +49,8 @@ int main(int argc, char * argv[]) { .reset_on_exit = false, }, .sprite = test_sprite, - }).active = false; - game_object.add_component<Camera>(Color::get_white()); + }); + game_object.add_component<Camera>(Color::WHITE); auto start = std::chrono::steady_clock::now(); |