summaryrefslogtreecommitdiff
path: root/game/src
diff options
context:
space:
mode:
Diffstat (limited to 'game/src')
-rw-r--r--game/src/game.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/game/src/game.c b/game/src/game.c
index 425119f..10c69aa 100644
--- a/game/src/game.c
+++ b/game/src/game.c
@@ -115,9 +115,9 @@ static void resize_plugin(Game* game, int width, int height) {
115 } 115 }
116} 116}
117 117
118void app_end(Game* game); 118static void Shutdown(Game* game);
119 119
120bool app_init(Game* game, int argc, const char** argv) { 120static bool Init(Game* game, int argc, const char** argv) {
121 assert(game); 121 assert(game);
122 122
123 if (argc <= 1) { 123 if (argc <= 1) {
@@ -170,11 +170,11 @@ bool app_init(Game* game, int argc, const char** argv) {
170 170
171cleanup: 171cleanup:
172 LOGE("Gfx error: %s", get_error()); 172 LOGE("Gfx error: %s", get_error());
173 app_end(game); 173 Shutdown(game);
174 return false; 174 return false;
175} 175}
176 176
177void app_end(Game* game) { 177static void Shutdown(Game* game) {
178 assert(game); 178 assert(game);
179 shutdown_plugin(game); 179 shutdown_plugin(game);
180 if (game->gfx) { 180 if (game->gfx) {
@@ -188,7 +188,7 @@ void app_end(Game* game) {
188 } 188 }
189} 189}
190 190
191void app_update(Game* game, double t, double dt) { 191static void Update(Game* game, double t, double dt) {
192 plugin_engine_update(game->plugin_engine); 192 plugin_engine_update(game->plugin_engine);
193 if (plugin_reloaded(game->plugin)) { 193 if (plugin_reloaded(game->plugin)) {
194 shutdown_plugin(game); 194 shutdown_plugin(game);
@@ -203,14 +203,14 @@ void app_update(Game* game, double t, double dt) {
203 update_plugin(game, t, dt); 203 update_plugin(game, t, dt);
204} 204}
205 205
206void app_render(const Game* game) { 206static void Render(const Game* game) {
207 GfxCore* gfxcore = gfx_get_core(game->gfx); 207 GfxCore* gfxcore = gfx_get_core(game->gfx);
208 gfx_start_frame(gfxcore); 208 gfx_start_frame(gfxcore);
209 render_plugin(game); 209 render_plugin(game);
210 gfx_end_frame(gfxcore); 210 gfx_end_frame(gfxcore);
211} 211}
212 212
213void app_resize(Game* game, int width, int height) { 213static void Resize(Game* game, int width, int height) {
214 game->width = width; 214 game->width = width;
215 game->height = height; 215 game->height = height;
216 216