summaryrefslogtreecommitdiff
path: root/gltfview/src/game.h
blob: 53725c77e9dc6afdf4e5e9e5f1018708f3614b00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * Header file defining the game state, included by plugins.
 */
#pragma once

typedef struct PluginEngine PluginEngine;
typedef struct Plugin       Plugin;
typedef struct Gfx          Gfx;
typedef struct Scene        Scene;
typedef struct SceneCamera  SceneCamera;

/// Game state.
typedef struct {
  int           argc;
  const char**  argv;
  PluginEngine* plugin_engine;
  Plugin*       plugin;
  Gfx*          gfx;
  Scene*        scene;  // TODO: Move scene graph to plugin?
  SceneCamera*  camera; // TODO: Move too.
} Game;