From bea8415263dddc1cb892c121446194688703bf27 Mon Sep 17 00:00:00 2001 From: iamcheeseman Date: Fri, 15 May 2026 07:23:41 -0400 Subject: allow tyui to format text --- teensy/teensy.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'teensy/teensy.h') diff --git a/teensy/teensy.h b/teensy/teensy.h index 2e172c1..b50bac7 100644 --- a/teensy/teensy.h +++ b/teensy/teensy.h @@ -123,6 +123,9 @@ double ty_get_time(void); // tic. int ty_tick(void); +char *ty_format_args(const char *fmt, va_list list); +char *ty_format(const char *fmt, ...); + bool ty_pointi_in_recti(ty_Vec2i point, ty_Recti rect); bool ty_point_in_rect(ty_Vec2 point, ty_Rect rect); @@ -160,6 +163,12 @@ void ty_draw_line( ty_Color color ); void ty_draw_text(const ty_Font *font, ty_Vec2i pos, const char *text); +void ty_draw_text_args( + const ty_Font *font, + ty_Vec2i pos, + const char *fmt, + va_list args +); void ty_draw_text_fmt( const ty_Font *font, ty_Vec2i pos, -- cgit v1.3-2-g0d8e