diff options
| author | 3gg <3gg@shellblade.net> | 2025-09-04 19:19:47 -0700 |
|---|---|---|
| committer | 3gg <3gg@shellblade.net> | 2025-09-04 19:19:47 -0700 |
| commit | c8fdef3b8f9b2eaab5fdccc9f8a9888d12972cc5 (patch) | |
| tree | 937a81947e6ce76b8d0e55b156ed047d343467f4 /include | |
| parent | 5294ea7acb86de460e2426a6dac1d281979d0c3b (diff) | |
Fix the checkerboard demo, which was being rendered as an orthogonal map after the recent changes.
Diffstat (limited to 'include')
| -rw-r--r-- | include/isogfx/gfx2d.h | 16 |
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 | ||
| 40 | typedef enum MapOrientation { | ||
| 41 | MapOrthogonal, | ||
| 42 | MapIsometric, | ||
| 43 | } MapOrientation; | ||
| 44 | |||
| 40 | typedef struct MapDesc { | 45 | typedef 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 | ||
| 48 | typedef struct IsoGfxDesc { | 54 | typedef struct IsoGfxDesc { |
