summaryrefslogtreecommitdiff
path: root/game/src/game.h
blob: 579ba3cd0af8a1596f129c00d17fbd769fe3bba4 (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;
  int           width;
  int           height;
} Game;