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

higher quality map

This commit is contained in:
milek7
2019-02-19 01:19:11 +01:00
parent 81101ae7b0
commit 5b32b4e926
4 changed files with 33 additions and 3 deletions

View File

@@ -1133,8 +1133,20 @@ void TTrack::create_map_geometry(std::vector<gfx::basic_vertex> &Bank)
if (iCategoryFlag != 1)
return; // only tracks for now
for (auto &v : endpoints())
Bank.push_back(gfx::basic_vertex(glm::vec3(v), glm::vec3(0.0f), glm::vec2(0.0f)));
switch (eType)
{
case tt_Normal:
case tt_Table:
Segment->render_lines(Bank, 1.0f);
break;
case tt_Switch:
case tt_Cross:
SwitchExtension->Segments[0]->render_lines(Bank, 1.0f);
SwitchExtension->Segments[1]->render_lines(Bank, 1.0f);
break;
default:
break;
}
}
// wypełnianie tablic VBO