mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
Window fullscreen toggle & saving size
This commit is contained in:
parent
7cb73998dd
commit
446edff4c4
5 changed files with 77 additions and 2 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue