diff libcore/core/game.h @ 207:133926e08d6e

examples: use game_loop for all
author David Demelier <markand@malikania.fr>
date Wed, 11 Nov 2020 16:09:43 +0100
parents eb0a7ab71023
children
line wrap: on
line diff
--- a/libcore/core/game.h	Tue Nov 10 17:32:12 2020 +0100
+++ b/libcore/core/game.h	Wed Nov 11 16:09:43 2020 +0100
@@ -87,6 +87,13 @@
 game_draw(void);
 
 /**
+ * Start a game loop that calls game_handle, game_update and game_draw until
+ * game_quit has been called.
+ */
+void
+game_loop(void);
+
+/**
  * Stop the game.
  *
  * This will effectively stop the current state but the main loop may continue