diff options
| author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-28 13:01:07 +0100 | 
|---|---|---|
| committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-28 13:01:14 +0100 | 
| commit | 63bce3dd21c82e2b4e45c07934d5a26684cdaa93 (patch) | |
| tree | a46da0cb575fa21add7b07f2784c7889e4bc2771 /src/test/ParticleTest.cpp | |
| parent | 2a2a3391ff0b449602825c3182af33c2ff52abc0 (diff) | |
| parent | 85aa57e33d493502b05984ce44db6c68f627a6f2 (diff) | |
merge `master`
Diffstat (limited to 'src/test/ParticleTest.cpp')
| -rw-r--r-- | src/test/ParticleTest.cpp | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/ParticleTest.cpp b/src/test/ParticleTest.cpp index cf43e35..4e9fa4e 100644 --- a/src/test/ParticleTest.cpp +++ b/src/test/ParticleTest.cpp @@ -5,6 +5,7 @@  #include <crepe/api/ParticleEmitter.h>  #include <crepe/api/Rigidbody.h>  #include <crepe/api/Sprite.h> +#include <crepe/api/Texture.h>  #include <crepe/api/Transform.h>  #include <crepe/system/ParticleSystem.h>  #include <gtest/gtest.h> @@ -28,9 +29,9 @@ public:  			GameObject game_object = mgr.new_object("", "", vec2{0, 0}, 0, 0);  			Color color(0, 0, 0, 0); +			auto s1 = Texture("asset/texture/img.png");  			Sprite & test_sprite = game_object.add_component<Sprite>( -				make_shared<Texture>("asset/texture/img.png"), color, -				FlipSettings{true, true}); +				s1, color, Sprite::FlipSettings{true, true}, 1, 1, 100);  			game_object.add_component<ParticleEmitter>(ParticleEmitter::Data{  				.position = {0, 0},  |