aboutsummaryrefslogtreecommitdiff
path: root/teensy/teensy.h
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-05-09 11:28:23 -0400
committeriamcheeseman <[email protected]>2026-05-09 11:28:23 -0400
commit4b8734a94857e59fbfa0e3a160736b3578d254f1 (patch)
tree150c10f21119a4ba02fcaf90e072e8c1517ede39 /teensy/teensy.h
parent6274f8e0ba89c392b84cf6d3597d518098bc1d39 (diff)
add img -> recti convenience macro
Diffstat (limited to 'teensy/teensy.h')
-rw-r--r--teensy/teensy.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/teensy/teensy.h b/teensy/teensy.h
index c8b8e9d..fe3b973 100644
--- a/teensy/teensy.h
+++ b/teensy/teensy.h
@@ -7,6 +7,7 @@
#define ty_vec2(x, y) ((struct ty_vec2){x, y})
#define ty_vec2i(x, y) ((struct ty_vec2i){x, y})
#define ty_color(R, G, B) ((struct ty_color){R, G, B})
+#define ty_img_full(img) ((struct ty_recti){0, 0, (img).width, (img).height})
#define TY_COLOR_BLACK ty_color(0, 0, 0 )
#define TY_COLOR_RED ty_color(255, 0, 0 )