diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/isogfx/asset.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/isogfx/asset.h b/include/isogfx/asset.h index 6050500..361ffcd 100644 --- a/include/isogfx/asset.h +++ b/include/isogfx/asset.h | |||
| @@ -43,6 +43,16 @@ typedef struct Ts_TileSet { | |||
| 43 | // Tile map (TM) file format. | 43 | // Tile map (TM) file format. |
| 44 | // ----------------------------------------------------------------------------- | 44 | // ----------------------------------------------------------------------------- |
| 45 | 45 | ||
| 46 | typedef enum Tm_Orientation { | ||
| 47 | Tm_Orthogonal = 0, | ||
| 48 | Tm_Isometric = 1, | ||
| 49 | } Tm_Orientation; | ||
| 50 | |||
| 51 | typedef struct Tm_Flags { | ||
| 52 | Tm_Orientation orientation : 1; | ||
| 53 | int unused : 15; | ||
| 54 | } Tm_Flags; | ||
| 55 | |||
| 46 | typedef struct Tm_Layer { | 56 | typedef struct Tm_Layer { |
| 47 | Tile tiles[1]; // Count: world_width * world_height. | 57 | Tile tiles[1]; // Count: world_width * world_height. |
| 48 | } Tm_Layer; | 58 | } Tm_Layer; |
| @@ -54,6 +64,7 @@ typedef struct Tm_Map { | |||
| 54 | uint16_t base_tile_width; | 64 | uint16_t base_tile_width; |
| 55 | uint16_t base_tile_height; | 65 | uint16_t base_tile_height; |
| 56 | uint16_t num_layers; | 66 | uint16_t num_layers; |
| 67 | uint16_t flags; // Tm_flagsFlags | ||
| 57 | Tm_Layer layers[]; // Count: num_layers. | 68 | Tm_Layer layers[]; // Count: num_layers. |
| 58 | } Tm_Map; | 69 | } Tm_Map; |
| 59 | 70 | ||
