Mercurial > molko
comparison 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 |
comparison
equal
deleted
inserted
replaced
206:4e2bf083759b | 207:133926e08d6e |
---|---|
85 */ | 85 */ |
86 void | 86 void |
87 game_draw(void); | 87 game_draw(void); |
88 | 88 |
89 /** | 89 /** |
90 * Start a game loop that calls game_handle, game_update and game_draw until | |
91 * game_quit has been called. | |
92 */ | |
93 void | |
94 game_loop(void); | |
95 | |
96 /** | |
90 * Stop the game. | 97 * Stop the game. |
91 * | 98 * |
92 * This will effectively stop the current state but the main loop may continue | 99 * This will effectively stop the current state but the main loop may continue |
93 * until it has completed. | 100 * until it has completed. |
94 */ | 101 */ |