From b34220f5df6ab917f191ee4bc0189ba85065199c Mon Sep 17 00:00:00 2001 From: iamcheeseman Date: Mon, 11 May 2026 21:24:49 -0400 Subject: allow the user to change the render target --- teensy/teensy.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'teensy/teensy.h') diff --git a/teensy/teensy.h b/teensy/teensy.h index 568430c..13216a8 100644 --- a/teensy/teensy.h +++ b/teensy/teensy.h @@ -123,6 +123,8 @@ void ty_img_set_pixel( void ty_font_add_glyph(struct ty_font *font, uint8_t c, struct ty_image img); int ty_font_width(struct ty_font *font, const char *fmt, ...); +// Pass NULL to restore the screen. +void ty_draw_set_target(const struct ty_image *img); void ty_draw_clear(struct ty_color col); void ty_draw_image(struct ty_image img, struct ty_vec2i pos); void ty_draw_image_ex( -- cgit v1.3-2-g0d8e