diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-23 08:53:30 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-23 08:53:30 +0200 |
commit | 81a9284fbda7bfefa417a408346ddb2abd26a1e2 (patch) | |
tree | b97fbba0f264d0ffb840671e82ab04a0ac62e620 /test | |
parent | 8cad01303ff97c929e8b9d25de5a7a5b264e8bb9 (diff) |
autodetect tile atlas extensions
Diffstat (limited to 'test')
-rw-r--r-- | test/json.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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"); } { |