summaryrefslogtreecommitdiff
path: root/gltfview/src/game.h
diff options
context:
space:
mode:
Diffstat (limited to 'gltfview/src/game.h')
-rw-r--r--gltfview/src/game.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/gltfview/src/game.h b/gltfview/src/game.h
index 4aeb5ea..2a7b7ef 100644
--- a/gltfview/src/game.h
+++ b/gltfview/src/game.h
@@ -9,17 +9,21 @@
9 9
10#include <stdbool.h> 10#include <stdbool.h>
11 11
12typedef struct Plugin Plugin;
13typedef struct PluginEngine PluginEngine;
14
12/// The delta time the game should be updated with. 15/// The delta time the game should be updated with.
13static const double game_dt = 1.0 / 60.0; 16static const double game_dt = 1.0 / 60.0;
14 17
15/// Game state. 18/// Game state.
16typedef struct { 19typedef struct {
17 Gfx* gfx; 20 int argc;
18 RenderBackend* render_backend; 21 const char** argv;
19 Renderer* renderer; 22 PluginEngine* plugin_engine;
20 Scene* scene; 23 Plugin* plugin;
21 SceneCamera* camera; 24 Gfx* gfx;
22 SceneNode* root_node; 25 Scene* scene;
26 SceneCamera* camera;
23} Game; 27} Game;
24 28
25bool game_new(Game*, int argc, const char** argv); 29bool game_new(Game*, int argc, const char** argv);