mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
F3 add
This commit is contained in:
parent
58ef13e402
commit
8cc5bdf0b1
2 changed files with 14 additions and 6 deletions
|
|
@ -296,6 +296,7 @@ int main() {
|
|||
long frame = 0;
|
||||
|
||||
bool occlusion = false;
|
||||
bool devdata = false;
|
||||
|
||||
glfwSwapInterval(1);
|
||||
|
||||
|
|
@ -311,6 +312,9 @@ int main() {
|
|||
if (Events::jpressed(GLFW_KEY_O)){
|
||||
occlusion = !occlusion;
|
||||
}
|
||||
if (Events::jpressed(GLFW_KEY_F3)){
|
||||
devdata = !devdata;
|
||||
}
|
||||
|
||||
update_controls(&physics, chunks, player, delta);
|
||||
update_interaction(chunks, &physics, player, &lighting);
|
||||
|
|
@ -322,7 +326,7 @@ int main() {
|
|||
for (int i = 0; i < freeLoaders; i++)
|
||||
chunksController.loadVisible(wfile);
|
||||
|
||||
draw_world(camera, assets, chunks, occlusion);
|
||||
draw_world(camera, assets, chunks, occlusion, devdata);
|
||||
|
||||
Window::swapBuffers();
|
||||
Events::pullEvents();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue