aboutsummaryrefslogtreecommitdiff
path: root/src/draw.odin
diff options
context:
space:
mode:
authoriamcheeseman <[hidden email]>2026-01-15 13:51:07 -0500
committeriamcheeseman <[hidden email]>2026-01-15 13:51:07 -0500
commit4563dfa077e029fbefd192f087338d186155ebfc (patch)
tree4af1101f408081e74fc12cb372824b7e2d3e70d4 /src/draw.odin
parent3c640e0d8244f87fec9518a60c7e5e95713d7f78 (diff)
Debug mode; displays collision shapes
Diffstat (limited to 'src/draw.odin')
-rw-r--r--src/draw.odin12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/draw.odin b/src/draw.odin
index 2aa1257..e51e0ae 100644
--- a/src/draw.odin
+++ b/src/draw.odin
@@ -76,6 +76,18 @@ draw_rect :: proc(rect: Rect) {
)
}
+draw_linerect :: proc(rect: Rect) {
+ assert(rect.size.x > 0 && rect.size.y > 0)
+
+ rl.DrawRectangleLines(
+ c.int(rect.start.x),
+ c.int(rect.start.y),
+ c.int(rect.size.x),
+ c.int(rect.size.y),
+ _color_to_rl(renderer.tint),
+ )
+}
+
draw_texture :: proc {
draw_texture_full,
draw_texture_quad,