aboutsummaryrefslogtreecommitdiff
path: root/src/test/RenderSystemTest.cpp
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-28 10:20:23 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-28 10:20:23 +0100
commit7508f7b26e73df24e2fcb4296b31d26470fddf76 (patch)
treeabf251399b30f012713a57accd59f5e97935c635 /src/test/RenderSystemTest.cpp
parent2d623522db0677ca5e88a53e3705a10ce59ba8b6 (diff)
adjusted more it should now be finsished
Diffstat (limited to 'src/test/RenderSystemTest.cpp')
-rw-r--r--src/test/RenderSystemTest.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/RenderSystemTest.cpp b/src/test/RenderSystemTest.cpp
index 2c4f21c..138aa36 100644
--- a/src/test/RenderSystemTest.cpp
+++ b/src/test/RenderSystemTest.cpp
@@ -35,24 +35,24 @@ public:
auto s3 = Texture("asset/texture/img.png");
auto s4 = Texture("asset/texture/img.png");
auto & sprite1 = entity1.add_component<Sprite>(s1, Color(0, 0, 0, 0),
- FlipSettings{false, false}, 5, 5, 100);
+ Sprite::FlipSettings{false, false}, 5, 5, 100);
ASSERT_NE(sprite1.sprite_image.texture.get(), nullptr);
EXPECT_EQ(sprite1.order_in_layer, 5);
EXPECT_EQ(sprite1.sorting_in_layer, 5);
auto & sprite2 = entity2.add_component<Sprite>(s2, Color(0, 0, 0, 0),
- FlipSettings{false, false}, 2, 1, 100);
+ Sprite::FlipSettings{false, false}, 2, 1, 100);
ASSERT_NE(sprite2.sprite_image.texture.get(), nullptr);
EXPECT_EQ(sprite2.sorting_in_layer, 2);
EXPECT_EQ(sprite2.order_in_layer, 1);
auto & sprite3 = entity3.add_component<Sprite>(s3, Color(0, 0, 0, 0),
- FlipSettings{false, false}, 1, 2, 100);
+ Sprite::FlipSettings{false, false}, 1, 2, 100);
ASSERT_NE(sprite3.sprite_image.texture.get(), nullptr);
EXPECT_EQ(sprite3.sorting_in_layer, 1);
EXPECT_EQ(sprite3.order_in_layer, 2);
auto & sprite4 = entity4.add_component<Sprite>(s4, Color(0, 0, 0, 0),
- FlipSettings{false, false}, 1, 1, 100);
+ Sprite::FlipSettings{false, false}, 1, 1, 100);
ASSERT_NE(sprite4.sprite_image.texture.get(), nullptr);
EXPECT_EQ(sprite4.sorting_in_layer, 1);
EXPECT_EQ(sprite4.order_in_layer, 1);
@@ -66,7 +66,7 @@ TEST_F(RenderSystemTest, expected_throws) {
EXPECT_ANY_THROW({
auto test = Texture("");
entity1.add_component<Sprite>(test, Color(0, 0, 0, 0),
- FlipSettings{false, false},1,1,100);
+ Sprite::FlipSettings{false, false},1,1,100);
});
// No camera