diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-12-07 23:43:20 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-12-07 23:43:20 +0100 |
| commit | 0c44af8f6c45e5bb957f38cc3e9784ca69524261 (patch) | |
| tree | 49d01710686e5818532552e1346129d7beda616b /include/objects.h | |
work
Diffstat (limited to 'include/objects.h')
| -rw-r--r-- | include/objects.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/include/objects.h b/include/objects.h new file mode 100644 index 0000000..c4bb689 --- /dev/null +++ b/include/objects.h @@ -0,0 +1,38 @@ +#ifndef INCLUDE_OBJECT +#define INCLUDE_OBJECT + +#include <projectbase/project_base.h> + +#include "map.h" + +typedef struct t_vec3f { + float x,y,z; +} vec3f; + +typedef struct t_object { + bool active; + vec2f position; + vec3f size; + float h; +} object; + +typedef struct t_box { + vec2f tl_b; + vec2f tr_b; + vec2f bl_b; + vec2f br_b; + + vec2f tl_u; + vec2f tr_u; + vec2f bl_u; + vec2f br_u; +} box; + +object objects[50]; +int max_objects = 50; + +void create_objects(); +void draw_objects_at_row(platform_window* window, int row); +box get_box_of_object(platform_window* window, object o); + +#endif
\ No newline at end of file |
