diff options
author | 3gg <3gg@shellblade.net> | 2025-08-22 07:59:47 -0700 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2025-08-22 07:59:47 -0700 |
commit | 4b340ab0db3898b36a7e975690359eef3747284d (patch) | |
tree | 943f31cd133b9c815992bef7af072bdc90af7bb7 /src/plugins/plugin.h | |
parent | a82c2bbf3f80697b38706d288deecd100ef95a61 (diff) |
Diffstat (limited to 'src/plugins/plugin.h')
-rw-r--r-- | src/plugins/plugin.h | 17 |
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 | |||
13 | typedef struct State State; | 8 | typedef 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*); | |||
44 | void resize(Game*, State*, int width, int height); | 39 | void 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. |
47 | typedef bool (*plugin_init)(Game*, State**); | 42 | typedef bool (*PluginInit)(Game*, State**); |
48 | typedef bool (*plugin_shutdown)(Game*, State*); | 43 | typedef bool (*PluginShutdown)(Game*, State*); |
49 | typedef bool (*plugin_boot)(Game*, State*); | 44 | typedef bool (*PluginBoot)(Game*, State*); |
50 | typedef void (*plugin_update)(Game*, State*, double t, double dt); | 45 | typedef void (*PluginUpdate)(Game*, State*, double t, double dt); |
51 | typedef void (*plugin_render)(const Game*, const State*); | 46 | typedef void (*PluginRender)(const Game*, const State*); |
52 | typedef void (*plugin_resize)(Game* game, State* state, int width, int height); | 47 | typedef void (*PluginResize)(Game* game, State* state, int width, int height); |