Grid 2D display

This commit is contained in:
2024-11-11 01:05:19 +03:00
parent 2eee5efd95
commit 8381e37fbe
7 changed files with 511 additions and 128 deletions

View File

@@ -33,6 +33,7 @@ public:
void get_layout_list(List<String> *keys) const;
void create_new_layout(const String &layout_name);
flecs::entity get_layout(const String &layout_name) const;
flecs::entity get_grid_layout(const String &layout_name) const;
void get_layout_entity_children(flecs::entity layout_e,
List<flecs::entity> *keys) const;
void recalculate_size(const String &layout_name);
@@ -45,6 +46,7 @@ public:
int get_layout_count() const;
int get_children_count(flecs::entity base_e) const;
struct graph_module {
flecs::entity get_layout_grid_base();
graph_module(flecs::world &ecs);
};
};