aboutsummaryrefslogtreecommitdiff
path: root/src/draw.odin
diff options
context:
space:
mode:
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,