4 #include <dragonstd/array.h>
5 #include <linmath.h/linmath.h>
7 #include "client/font.h"
8 #include "client/texture.h"
26 GUIScaleType scale_type;
27 bool affect_parent_scale;
32 } GUIElementDefinition;
34 typedef struct GUIElement {
35 GUIElementDefinition def;
40 mat4x4 text_transform;
42 struct GUIElement *parent;
48 void gui_update_projection();
50 GUIElement *gui_add(GUIElement *parent, GUIElementDefinition def);
51 void gui_text(GUIElement *element, const char *text);
52 void gui_transform(GUIElement *element);