Refactor UI code into an immediate mode style #1
@ -2,6 +2,7 @@
|
||||
#define NODES_H
|
||||
|
||||
#include "aliases/aliases.h"
|
||||
#include "ui.h"
|
||||
#include "window.h"
|
||||
|
||||
#define MAX_NODES 1024
|
||||
@ -24,6 +25,8 @@ union node_data {
|
||||
};
|
||||
|
||||
struct node {
|
||||
rect_t rect;
|
||||
ui_elem_colours_t colours;
|
||||
node_type_t type;
|
||||
node_data_t data;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user