Добавлен режим отладки полигонов по нажатию кнопки F
This commit is contained in:
parent
3407018cb1
commit
1c7ef19ec8
@ -97,8 +97,13 @@ void mainloop(Camera& camera) {
|
||||
if (Events::jpressed(GLFW_KEY_TAB)){
|
||||
Events::toggleCursor();
|
||||
}
|
||||
if (Events::jpressed(GLFW_KEY_F3)){
|
||||
if (Events::jpressed(GLFW_KEY_F)){
|
||||
devdata = !devdata;
|
||||
if (devdata) {
|
||||
glPolygonMode(GL_FRONT_AND_BACK,GL_LINE);
|
||||
} else {
|
||||
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
|
||||
}
|
||||
}
|
||||
|
||||
updateCameraPosition(camera, delta);
|
||||
|
Loading…
x
Reference in New Issue
Block a user