Implement StoatSpriteEngine.SP_SetDashTextSprite

This implementation creates a temporary "glyph" texture and draws it to
the sprite using gfx_draw_glyph().
This commit is contained in:
kichikuou
2024-09-21 10:35:42 +09:00
parent 964bba1823
commit 9a76d472db
3 changed files with 26 additions and 2 deletions
+1
View File
@@ -160,6 +160,7 @@ float _gfx_render_text(Texture *dst, char *msg, struct text_render_metrics *tm);
int gfx_render_text(Texture *dst, float x, int y, char *msg, struct text_style *ts, bool blend);
float gfx_render_textf(Texture *dst, float x, int y, char *msg, struct text_style *ts, bool blend);
void gfx_render_dash_text(Texture *dst, struct text_style *ts);
void gfx_draw_text_to_amap(Texture *dst, int x, int y, char *text);
void gfx_draw_text_to_pmap(Texture *dst, int x, int y, char *text);
float gfx_size_char(struct text_style *ts, const char *ch);