From 80ead50951c8b0d2c60c9fd57b8a4c943634b084 Mon Sep 17 00:00:00 2001 From: kartofen Date: Sun, 9 Apr 2023 23:36:55 +0300 Subject: things... --- src/sector.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/sector.h') 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 -- cgit v1.2.3