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

fix wireframe

This commit is contained in:
milek7
2018-07-18 14:08:30 +02:00
parent 78b23b80aa
commit a1d11cb03b
2 changed files with 9 additions and 13 deletions

View File

@@ -356,15 +356,8 @@ void TWorld::OnKeyDown(int cKey) {
// shift + f7 is currently unused
}
else {
// f7: wireframe toggle
// TODO: pass this to renderer instead of making direct calls
// TODO: pass this to renderer instead of poking in globals
Global.bWireFrame = !Global.bWireFrame;
if( true == Global.bWireFrame ) {
glPolygonMode( GL_FRONT_AND_BACK, GL_LINE );
}
else {
glPolygonMode( GL_FRONT_AND_BACK, GL_FILL );
}
}
}
break;