From c8fdef3b8f9b2eaab5fdccc9f8a9888d12972cc5 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Thu, 4 Sep 2025 19:19:47 -0700 Subject: Fix the checkerboard demo, which was being rendered as an orthogonal map after the recent changes. --- include/isogfx/gfx2d.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/isogfx/gfx2d.h b/include/isogfx/gfx2d.h index 59566f3..a3ddbb6 100644 --- a/include/isogfx/gfx2d.h +++ b/include/isogfx/gfx2d.h @@ -37,12 +37,18 @@ typedef struct TileDesc { }; } TileDesc; +typedef enum MapOrientation { + MapOrthogonal, + MapIsometric, +} MapOrientation; + typedef struct MapDesc { - int tile_width; // Base tile width in pixels. - int tile_height; // Base tile height in pixels. - int world_width; // World width in tiles. - int world_height; // World height in tiles. - int num_tiles; // Number of tiles to allocate memory for. + int tile_width; // Base tile width in pixels. + int tile_height; // Base tile height in pixels. + int world_width; // World width in tiles. + int world_height; // World height in tiles. + int num_tiles; // Number of tiles to allocate memory for. + MapOrientation orientation; // Map orientation. } MapDesc; typedef struct IsoGfxDesc { -- cgit v1.2.3