16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 13:59:19 +02:00

async mesh loading

This commit is contained in:
maj00r
2026-06-16 01:04:37 +02:00
parent 2f90246907
commit 9574d2051b
35 changed files with 3239 additions and 859 deletions

View File

@@ -286,7 +286,9 @@ public:
// adds provided lines to the section
void
insert( lines_node Lines );
// adds provided node to the section
// adds provided model instance to the section
void
insert( TAnimModel *Instance );
template <class Type_>
void
insert( Type_ *Node ) {
@@ -420,6 +422,8 @@ public:
// TBD, TODO: clamp coordinates to region boundaries?
return; }
section( location ).insert( Node ); }
void
insert( TAnimModel *Instance );
// inserts provided node in the region and registers its ends in lookup directory
template <class Type_>
void
@@ -452,6 +456,8 @@ public:
sections( glm::dvec3 const &Point, float const Radius );
void
create_map_geometry();
void
ensure_map_geometry();
void
update_poi_geometry();
basic_section* get_section(size_t section)
@@ -472,6 +478,7 @@ public:
gfx::geometrybank_handle m_map_geometrybank;
gfx::geometrybank_handle m_map_poipoints;
bool m_map_geometry_built { false };
// methods
// checks whether specified point is within boundaries of the region