comparison tests/tools/tileset/main.cpp @ 182:3107ce017c3a

Misc: switch back to SDL Qt Quick and QML was an exciting experiment but it's definitely not enough flexible and easy to use for game development. Using SDL2 will let us focusing on our own drawing functions without any kind of overhead. While here, start massive cleanup.
author David Demelier <markand@malikania.fr>
date Fri, 19 Oct 2018 20:18:19 +0200
parents fbfc2555bda5
children eaf3cea01010
comparison
equal deleted inserted replaced
181:fbfc2555bda5 182:3107ce017c3a
41 "tileset_embedded.json", 41 "tileset_embedded.json",
42 "tileset_external.json" 42 "tileset_external.json"
43 }; 43 };
44 44
45 for (const auto& t : list) { 45 for (const auto& t : list) {
46 auto tileset = loader_.load_tileset(t); 46 const auto tileset = loader_.load_tileset(t);
47 47
48 BOOST_REQUIRE_EQUAL("worldmapchip5fo.png", tileset.image); 48 BOOST_REQUIRE_EQUAL("worldmapchip5fo.png", tileset.image);
49 BOOST_REQUIRE_EQUAL(32U, tileset.cell.width); 49 BOOST_REQUIRE_EQUAL(32U, tileset.cell.width);
50 BOOST_REQUIRE_EQUAL(32U, tileset.cell.height); 50 BOOST_REQUIRE_EQUAL(32U, tileset.cell.height);
51 BOOST_REQUIRE_EQUAL(3U, tileset.tile_properties.size()); 51 BOOST_REQUIRE_EQUAL(3U, tileset.tile_properties.size());