summaryrefslogtreecommitdiff
path: root/include/math_helper.h
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2022-12-15 12:59:19 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2022-12-15 12:59:19 +0100
commit7b956089e6ba5162fb0b667f1c0a60f6ece90c38 (patch)
tree82de31240ad1f1ae77874f07b288fcc39b8948f4 /include/math_helper.h
parent23d2cc231e5b4c015a8471d3035dc07802de23d5 (diff)
added drops
Diffstat (limited to 'include/math_helper.h')
-rw-r--r--include/math_helper.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/math_helper.h b/include/math_helper.h
index b3a6cfe..ca27e14 100644
--- a/include/math_helper.h
+++ b/include/math_helper.h
@@ -8,6 +8,8 @@
#include "map.h"
#define MAP_RENDER_DEPTH renderer->set_render_depth(1);
+
+#define DROP_RENDER_DEPTH(_h) renderer->set_render_depth(4 + ceil(_h));
#define BULLET_RENDER_DEPTH(_h) renderer->set_render_depth(5 + ceil(_h));
#define OBJECT_RENDER_DEPTH(_h) renderer->set_render_depth(5 + ceil(_h));
#define OVERLAY_RENDER_DEPTH() renderer->set_render_depth(100);
@@ -17,6 +19,6 @@ int orientation(vec2f p, vec2f q, vec2f r);
bool lines_intersect(vec2f p1, vec2f q1, vec2f p2, vec2f q2);
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(platform_window* window, vec3f position, vec3f size);
+box get_box_of_square(vec3f position, vec3f size);
#endif \ No newline at end of file