diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-05-02 19:26:41 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-05-02 19:26:41 +0200 |
| commit | b4a0031bdb0c5317b2ee56198f02a291bdb0e224 (patch) | |
| tree | c669d9b398aa1d6d187e6f932f9a8c3cc194406f /include/map.h | |
| parent | 7dd42a4af58f795dfced9a22b31855f276beecfc (diff) | |
lighting work
Diffstat (limited to 'include/map.h')
| -rw-r--r-- | include/map.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/map.h b/include/map.h index 738d1c2..e264600 100644 --- a/include/map.h +++ b/include/map.h @@ -49,11 +49,19 @@ typedef struct t_map_data { object objects[MAX_OBJECTS]; } map_data; +typedef struct t_light_data { + float tl; + float tr; + float bl; + float br; +} light_data; + typedef struct t_extracted_map_data { int width; int height; tile heightmap[MAP_SIZE_Y][MAP_SIZE_X]; object objects[MAX_OBJECTS]; + light_data lightmap[MAP_SIZE_Y][MAP_SIZE_X]; } extracted_map_data; map_data map_to_load = {0}; |
