diff options
author | kartofen <mladenovnasko0@gmail.com> | 2023-04-09 23:36:55 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2023-04-09 23:36:55 +0300 |
commit | 80ead50951c8b0d2c60c9fd57b8a4c943634b084 (patch) | |
tree | 635d8479b7e862d3cd7b3bc69b0cb64e31c38c2e /src/sector.h | |
parent | fc027f7d214028086178a7328926c9b14ead464d (diff) |
things...
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 |