--- a/src/ascension/ui/text.h Sun Aug 11 16:29:09 2024 +0200 +++ b/src/ascension/ui/text.h Wed Aug 14 21:09:52 2024 +0200 @@ -30,19 +30,17 @@ #include "font.h" #include "../scene.h" -#include "../texture.h" #include "../utils.h" #include <cx/string.h> typedef struct AscText { - extend_asc_scene_node; + AscSprite base; cxmutstr text; AscFont font; asc_col4i color; unsigned short max_width; unsigned short offx; - AscTexture tex; } AscText; enum asc_text_alignment { @@ -155,11 +153,4 @@ ... ); -/** - * Releases all the memory of this node. - * - * @param node the text node - */ -void asc_text_free(AscText *node); - #endif //ASCENSION_UI_TEXT_H