diff options
| author | iamcheeseman <[email protected]> | 2026-05-11 21:24:49 -0400 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-05-11 21:24:49 -0400 |
| commit | b34220f5df6ab917f191ee4bc0189ba85065199c (patch) | |
| tree | 7f0ef4f86608f08cc390cbee2278ec967f854c2c /teensy/teensy.h | |
| parent | f4017a52d90567c2df482c5d553076dc706ac59b (diff) | |
allow the user to change the render target
Diffstat (limited to 'teensy/teensy.h')
| -rw-r--r-- | teensy/teensy.h | 2 |
1 files changed, 2 insertions, 0 deletions
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( |
