1.1 --- a/src/ascension/text.h Thu Jan 18 21:58:58 2024 +0100 1.2 +++ b/src/ascension/text.h Sun Jan 21 13:31:51 2024 +0100 1.3 @@ -32,7 +32,7 @@ 1.4 #include "datatypes.h" 1.5 #include <cx/buffer.h> 1.6 1.7 -typedef struct AscTextNode { 1.8 +typedef struct AscText { 1.9 char *text; 1.10 AscFont const *font; 1.11 asc_vec2i position; 1.12 @@ -44,7 +44,7 @@ 1.13 asc_vec2i dimension; 1.14 unsigned tex_id; 1.15 } internal; 1.16 -} AscTextNode; 1.17 +} AscText; 1.18 1.19 1.20 /** 1.21 @@ -61,7 +61,7 @@ 1.22 * @see asc_ink() 1.23 * @see asc_font() 1.24 */ 1.25 -AscTextNode *asc_text(int x, int y, char const* text); 1.26 +AscText *asc_text(int x, int y, char const* text); 1.27 1.28 /** 1.29 * Updates the internal state of the text node. 1.30 @@ -71,20 +71,20 @@ 1.31 * 1.32 * @param node the text node 1.33 */ 1.34 -void asc_text_update(AscTextNode *node); 1.35 +void asc_text_update(AscText *node); 1.36 1.37 /** 1.38 * Draws the text node in the current frame. 1.39 * 1.40 * @param node the text node 1.41 */ 1.42 -void asc_text_draw(AscTextNode *node); 1.43 +void asc_text_draw(AscText *node); 1.44 1.45 /** 1.46 * Releases all the memory of this node. 1.47 * 1.48 * @param node the text node 1.49 */ 1.50 -void asc_text_free(AscTextNode *node); 1.51 +void asc_text_free(AscText *node); 1.52 1.53 #endif //ASCENSION_TEXT_H