summaryrefslogtreecommitdiff
path: root/src/plugins/plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/plugin.h')
-rw-r--r--src/plugins/plugin.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/plugins/plugin.h b/src/plugins/plugin.h
index f7219c6..2831045 100644
--- a/src/plugins/plugin.h
+++ b/src/plugins/plugin.h
@@ -5,11 +5,6 @@
5 5
6#include "../game.h" 6#include "../game.h"
7 7
8#include <gfx/gfx.h>
9#include <gfx/scene.h>
10
11#include <stdbool.h>
12
13typedef struct State State; 8typedef struct State State;
14 9
15/// Initialize the plugin, which may optionally return a state object. 10/// Initialize the plugin, which may optionally return a state object.
@@ -44,9 +39,9 @@ void render(const Game*, const State*);
44void resize(Game*, State*, int width, int height); 39void resize(Game*, State*, int width, int height);
45 40
46// Signatures for the plugin's exposed functions. 41// Signatures for the plugin's exposed functions.
47typedef bool (*plugin_init)(Game*, State**); 42typedef bool (*PluginInit)(Game*, State**);
48typedef bool (*plugin_shutdown)(Game*, State*); 43typedef bool (*PluginShutdown)(Game*, State*);
49typedef bool (*plugin_boot)(Game*, State*); 44typedef bool (*PluginBoot)(Game*, State*);
50typedef void (*plugin_update)(Game*, State*, double t, double dt); 45typedef void (*PluginUpdate)(Game*, State*, double t, double dt);
51typedef void (*plugin_render)(const Game*, const State*); 46typedef void (*PluginRender)(const Game*, const State*);
52typedef void (*plugin_resize)(Game* game, State* state, int width, int height); 47typedef void (*PluginResize)(Game* game, State* state, int width, int height);