|
|
@ -184,9 +184,6 @@ bool Application::onWindowClose(WindowCloseEvent& e) |
|
|
|
|
|
|
|
|
|
|
|
bool Application::onWindowResize(WindowResizeEvent& e) |
|
|
|
bool Application::onWindowResize(WindowResizeEvent& e) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Suppress unused warning
|
|
|
|
|
|
|
|
(void)e; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ruc::info("WindowResizeEvent {}x{}", e.getWidth(), e.getHeight()); |
|
|
|
ruc::info("WindowResizeEvent {}x{}", e.getWidth(), e.getHeight()); |
|
|
|
|
|
|
|
|
|
|
|
RenderCommand::setViewport(0, 0, e.getWidth(), e.getHeight()); |
|
|
|
RenderCommand::setViewport(0, 0, e.getWidth(), e.getHeight()); |
|
|
@ -196,9 +193,6 @@ bool Application::onWindowResize(WindowResizeEvent& e) |
|
|
|
|
|
|
|
|
|
|
|
bool Application::onKeyPress(KeyPressEvent& e) |
|
|
|
bool Application::onKeyPress(KeyPressEvent& e) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Suppress unused warning
|
|
|
|
|
|
|
|
(void)e; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ruc::info("KeyPressEvent {:3} {}", e.getKey(), keyName(e.getKey())); |
|
|
|
ruc::info("KeyPressEvent {:3} {}", e.getKey(), keyName(e.getKey())); |
|
|
|
|
|
|
|
|
|
|
|
// Stop the main loop on 'Escape' keypress
|
|
|
|
// Stop the main loop on 'Escape' keypress
|
|
|
|