16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-20 20:39: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

@@ -8,6 +8,7 @@
#include "vehicle/Driver.h"
#include "model/AnimModel.h"
#include "application/application.h"
#include "scene/scenenodegroups.h"
ui::map_panel::map_panel() : ui_panel(STR_C("Map"), false)
{
@@ -99,6 +100,9 @@ float ui::map_panel::get_vehicle_rotation()
void ui::map_panel::render_map_texture(glm::mat4 transform, glm::vec2 surface_size)
{
scene::Groups.ensure_map_index();
simulation::Region->ensure_map_geometry();
m_colored_paths.switches.clear();
m_colored_paths.occupied.clear();
m_colored_paths.future.clear();