diff options
Diffstat (limited to 'map.h')
| -rw-r--r-- | map.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -3,10 +3,17 @@ #include "framebuffer.h" +/* Used to represent an empty tile */ +#define P_EMPTY (Pixel){C_BLACK, C_BLACK, '\0'} + /* A structure representing a map. */ typedef struct Map_s { size_t width, height; Pixel **tiles; /* used as tiles[row][col] or tiles[y][x] */ } Map; +Map map_new(size_t width, size_t height); +void map_free(Map *map); +Map map_default(void); + #endif /* MAP_H_ */ |
