src/ascension/ui/text.h

changeset 196
ac2ade047d5b
parent 194
7985c3b64460
--- a/src/ascension/ui/text.h	Thu Jul 10 22:19:48 2025 +0200
+++ b/src/ascension/ui/text.h	Fri Jul 11 00:48:08 2025 +0200
@@ -29,13 +29,17 @@
 #define ASCENSION_UI_TEXT_H
 
 #include "font.h"
-#include "../sprite.h"
+// TODO: clean up these messy include paths
+#include "../mesh.h"
+#include "../texture.h"
+#include "../scene_node.h"
 
 #include <cx/string.h>
 
 typedef struct asc_text_s {
-    // TODO: try to remove the explicit dependency to a sprite
-    AscSprite base;
+    AscSceneNode base;
+    AscMesh mesh;
+    AscTexture *texture;
     cxmutstr text;
     AscFont font;
     asc_col4i color;

mercurial