Window fullscreen toggle & saving size

This commit is contained in:
@clasher113
2023-11-25 20:01:43 +02:00
parent 7cb73998dd
commit 446edff4c4
5 changed files with 77 additions and 2 deletions
+3
View File
@@ -68,6 +68,9 @@ void Engine::updateHotkeys() {
png::write_image(filename.string(), image.get());
std::cout << "saved screenshot as " << filename << std::endl;
}
if (Events::jpressed(keycode::F11)) {
Window::toggleFullscreen();
}
}
void Engine::mainloop() {