aboutsummaryrefslogtreecommitdiff
path: root/font.h
diff options
context:
space:
mode:
authorRiley Beckett <rbeckettvt@gmail.com>2025-10-12 19:19:03 -0400
committerRiley Beckett <rbeckettvt@gmail.com>2025-10-12 19:19:03 -0400
commit458f9d0b5f1b83d3f2e11cead790cdf6ac867e11 (patch)
treeae3dd115a00695eec838d62a4181b2753dbb89b0 /font.h
parentd71f3c26c26c22ac6782944f5732274abe64f8f8 (diff)
get width of string
Diffstat (limited to 'font.h')
-rw-r--r--font.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/font.h b/font.h
index ee51443..762fe53 100644
--- a/font.h
+++ b/font.h
@@ -4,7 +4,10 @@
char* get_font(const char* font_name);
-bool init_freetype(client_state* state, const char* font);
-bool init_atlas(client_state* state);
+bool freetype_init(client_state* state, const char* font);
+void atlas_init(client_state* state);
+void atlas_create_texture(client_state* state);
+
+int atlas_get_strwidth(client_state* state, const char* str);
#endif // FONT_H_