diff options
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 { |