summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2025-09-04 19:19:47 -0700
committer3gg <3gg@shellblade.net>2025-09-04 19:19:47 -0700
commitc8fdef3b8f9b2eaab5fdccc9f8a9888d12972cc5 (patch)
tree937a81947e6ce76b8d0e55b156ed047d343467f4 /include
parent5294ea7acb86de460e2426a6dac1d281979d0c3b (diff)
Fix the checkerboard demo, which was being rendered as an orthogonal map after the recent changes.HEADmain
Diffstat (limited to 'include')
-rw-r--r--include/isogfx/gfx2d.h16
1 files changed, 11 insertions, 5 deletions
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 {
37 }; 37 };
38} TileDesc; 38} TileDesc;
39 39
40typedef enum MapOrientation {
41 MapOrthogonal,
42 MapIsometric,
43} MapOrientation;
44
40typedef struct MapDesc { 45typedef struct MapDesc {
41 int tile_width; // Base tile width in pixels. 46 int tile_width; // Base tile width in pixels.
42 int tile_height; // Base tile height in pixels. 47 int tile_height; // Base tile height in pixels.
43 int world_width; // World width in tiles. 48 int world_width; // World width in tiles.
44 int world_height; // World height in tiles. 49 int world_height; // World height in tiles.
45 int num_tiles; // Number of tiles to allocate memory for. 50 int num_tiles; // Number of tiles to allocate memory for.
51 MapOrientation orientation; // Map orientation.
46} MapDesc; 52} MapDesc;
47 53
48typedef struct IsoGfxDesc { 54typedef struct IsoGfxDesc {