mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-17 23:39:18 +02:00
move vertex user data to a separate array
update vao creation to support optional vertex data
update mesh serialization to account for new user data location
change t3d spec: userdata:{float|uint|int} to userdata:bool
This commit is contained in:
@@ -621,7 +621,8 @@ void ui::obstacle_insert_window::render_content()
|
||||
|
||||
std::vector<gfx::basic_vertex> vertices;
|
||||
vertices.emplace_back(std::move(obstacle->vertex()));
|
||||
GfxRenderer->Append(vertices, simulation::Region->get_map_poi_geometry(), GL_POINTS);
|
||||
gfx::userdata_array userdata{};
|
||||
GfxRenderer->Append(vertices, userdata, simulation::Region->get_map_poi_geometry(), GL_POINTS);
|
||||
|
||||
map::Objects.entries.push_back(std::move(obstacle));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user