diff options
Diffstat (limited to 'src/sector.h')
-rw-r--r-- | src/sector.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sector.h b/src/sector.h index 20050f7..8315ee6 100644 --- a/src/sector.h +++ b/src/sector.h @@ -6,8 +6,8 @@ struct sector { float floor, ceil; // floor and ceiling heights - uint *vertices; // index of each vertex (vertices[nverts]) - uint *neighbors; // index of each neighboring sector (neighbors[nverts]) + size_t *vertices; // index of each vertex (vertices[nverts]) + size_t *neighbors; // index of each neighboring sector (neighbors[nverts]) size_t nverts; // number of vertices defining the sector }; @@ -19,10 +19,12 @@ typedef struct { player_t player; // the player (should be an array in the future) } map_t; +int map_draw(map_t *map, uint SW, uint SH); int map_load(map_t *map, char *filename); void map_unload(map_t *map); void map_print(map_t *map); int map_save(map_t *map, char *filename); + #endif |