diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-12-25 21:30:31 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-12-25 21:30:31 +0100 |
| commit | f04e0a86210aef19d646e3561798347649661d0b (patch) | |
| tree | e59f2c5f0c212a80c1810c1a65dbfd1a7abe2d04 /include | |
| parent | 655ad2a85235a215dbcdf1753bdcccaa2308b529 (diff) | |
editor work
Diffstat (limited to 'include')
| -rw-r--r-- | include/math_helper.h | 1 | ||||
| -rw-r--r-- | include/objects.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/math_helper.h b/include/math_helper.h index 31e376c..f45e903 100644 --- a/include/math_helper.h +++ b/include/math_helper.h @@ -22,5 +22,6 @@ vec2f get_intersection_point(vec2f A, vec2f B, vec2f C, vec2f D); box get_render_box_of_square(platform_window* window, vec3f position, vec3f size); box get_box_of_square(vec3f position, vec3f size); vec3f get_center_of_square(vec3f position, vec3f size); +bool rect_contains_point(vec2 point, vec2 tl, vec2 br); #endif
\ No newline at end of file diff --git a/include/objects.h b/include/objects.h index 74cfcf0..2d91bab 100644 --- a/include/objects.h +++ b/include/objects.h @@ -53,6 +53,8 @@ object object_dict[OBJECT_END] = { }; object get_object_at_tile(float x, float y); +object* get_pobject_at_tile(float x, float y); +object* get_object_at_tile_from_mapfile(float x, float y); void create_objects(); void add_object(object obj); void draw_objects(platform_window* window); |
