commit afc16da0d6d3fc9562e6c6f858dc140fcc4b33ea parent 9027bd21d0c0ff52d69c7168d02d0083cda5b49c Author: Michael Savage <mikejsavage@gmail.com> Date: Mon Aug 10 22:24:00 +0200 Quit on Q Diffstat:
main.cc | | | 4 | ++++ |
diff --git a/main.cc b/main.cc @@ -78,6 +78,10 @@ int main( int argc, char ** argv ) { const float current_frame_time = glfwGetTime(); const float dt = current_frame_time - last_frame_time; + if( glfwGetKey( window, GLFW_KEY_Q ) ) { + break; + } + if( ( i32 ) current_frame_time != ( i32 ) last_frame_time ) { if( should_reload_game( GAME_LIBRARY_PATH, game.lib_write_time ) ) { unload_game( &game );