From 960e346159dbf152d9847f0998e1e717fb7dbfef Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 5 Dec 2022 06:30:59 +0100 Subject: src: add pass_mode field to tile_atlas --- test/json.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/json.cpp') diff --git a/test/json.cpp b/test/json.cpp index 1ef6feb8..60e464f6 100644 --- a/test/json.cpp +++ b/test/json.cpp @@ -16,9 +16,9 @@ namespace floormat { [[maybe_unused]] static chunk make_test_chunk() { - auto metal1 = loader.tile_atlas("metal1", {2, 2}), - metal2 = loader.tile_atlas("metal2", {2, 2}), - tiles = loader.tile_atlas("tiles", {8, 5}); + auto metal1 = loader.tile_atlas("metal1", {2, 2}, pass_mode::pass), + metal2 = loader.tile_atlas("metal2", {2, 2}, pass_mode::blocked), + tiles = loader.tile_atlas("tiles", {8, 5}, pass_mode::pass); constexpr auto N = TILE_MAX_DIM; chunk c; for (auto [x, k, pt] : c) { @@ -37,7 +37,7 @@ void test_app::test_json() // NOLINT(readability-convert-member-functions-to-sta fm_assert(Path::exists("../CMakeCache.txt")); constexpr auto output_dir = "../test/."_s; { - auto atlas = loader.tile_atlas("metal1", {2, 2}); + auto atlas = loader.tile_atlas("metal1", {2, 2}, pass_mode::pass); json_helper::to_json(atlas, Path::join(output_dir, "atlas.json")); } { -- cgit v1.2.3