diff options
| author | iamcheeseman <[email protected]> | 2026-05-15 07:23:41 -0400 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-05-15 07:23:41 -0400 |
| commit | bea8415263dddc1cb892c121446194688703bf27 (patch) | |
| tree | 8f837d89fe4fc78a67b6fc51042f86ab5a9f2be4 /teensy/teensy.h | |
| parent | cfde830b98e235cd2b5a72dca68160c2c1ff3b68 (diff) | |
allow tyui to format text
Diffstat (limited to 'teensy/teensy.h')
| -rw-r--r-- | teensy/teensy.h | 9 |
1 files changed, 9 insertions, 0 deletions
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, |
