From 81a9284fbda7bfefa417a408346ddb2abd26a1e2 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 23 Oct 2022 08:53:30 +0200 Subject: autodetect tile atlas extensions --- test/json.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/json.cpp b/test/json.cpp index f0a32c1e..6684f404 100644 --- a/test/json.cpp +++ b/test/json.cpp @@ -13,9 +13,9 @@ namespace floormat { static chunk make_test_chunk() { - auto metal1 = loader.tile_atlas("metal1.tga", {2, 2}), - metal2 = loader.tile_atlas("metal2.tga", {2, 2}), - tiles = loader.tile_atlas("tiles.tga", {8, 5}); + auto metal1 = loader.tile_atlas("metal1", {2, 2}), + metal2 = loader.tile_atlas("metal2", {2, 2}), + tiles = loader.tile_atlas("tiles", {8, 5}); constexpr auto N = TILE_MAX_DIM; chunk c; for (auto& [x, k, pt] : c) { @@ -33,7 +33,7 @@ bool app::test_json() // NOLINT(readability-convert-member-functions-to-static) { const std::filesystem::path output_dir = "../test/."; { - auto atlas = loader.tile_atlas("metal1.tga", {2, 2}); + auto atlas = loader.tile_atlas("metal1", {2, 2}); json_helper::to_json(atlas, output_dir/"atlas.json"); } { -- cgit v1.2.3