diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-11 16:37:52 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-11 16:37:52 +0100 |
commit | d9609abd77b3d98bb8fd87c3e31e80402f5f7dcb (patch) | |
tree | b804e9a190d2fa755aa25348368a5aa66215733f /src | |
parent | 8388994da0ac08497fb57d7d4b29ef7eb00731f2 (diff) |
removed Texture from profiling
Diffstat (limited to 'src')
-rw-r--r-- | src/test/Profiling.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/Profiling.cpp b/src/test/Profiling.cpp index c753bca..84272f6 100644 --- a/src/test/Profiling.cpp +++ b/src/test/Profiling.cpp @@ -1,3 +1,4 @@ +#include "api/Asset.h" #include "manager/Mediator.h" #include "system/ParticleSystem.h" #include "system/PhysicsSystem.h" @@ -167,7 +168,7 @@ TEST_F(DISABLED_ProfilingTest, Profiling_2) { gameobject.add_component<BoxCollider>(vec2{0, 0}, vec2{1, 1}); gameobject.add_component<BehaviorScript>().set_script<TestScript>(); - auto img = Texture("asset/texture/square.png"); + auto img = Asset("asset/texture/square.png"); Sprite & test_sprite = gameobject.add_component<Sprite>( img, Sprite::Data{ .color = {0, 0, 0, 0}, @@ -205,7 +206,7 @@ TEST_F(DISABLED_ProfilingTest, Profiling_3) { }); gameobject.add_component<BoxCollider>(vec2{0, 0}, vec2{1, 1}); gameobject.add_component<BehaviorScript>().set_script<TestScript>(); - auto img = Texture("asset/texture/square.png"); + auto img = Asset("asset/texture/square.png"); Sprite & test_sprite = gameobject.add_component<Sprite>( img, Sprite::Data{ .color = {0, 0, 0, 0}, |