From f04e0a86210aef19d646e3561798347649661d0b Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Mon, 25 Dec 2023 21:30:31 +0100 Subject: editor work --- include/math_helper.h | 1 + include/objects.h | 2 ++ 2 files changed, 3 insertions(+) (limited to 'include') 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); -- cgit v1.2.3-70-g09d2