From 4b340ab0db3898b36a7e975690359eef3747284d Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Fri, 22 Aug 2025 07:59:47 -0700 Subject: Fix issue with global GfxApp instance across plugins --- src/plugins/plugin.h | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'src/plugins/plugin.h') 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 @@ #include "../game.h" -#include -#include - -#include - typedef struct State State; /// Initialize the plugin, which may optionally return a state object. @@ -44,9 +39,9 @@ void render(const Game*, const State*); void resize(Game*, State*, int width, int height); // Signatures for the plugin's exposed functions. -typedef bool (*plugin_init)(Game*, State**); -typedef bool (*plugin_shutdown)(Game*, State*); -typedef bool (*plugin_boot)(Game*, State*); -typedef void (*plugin_update)(Game*, State*, double t, double dt); -typedef void (*plugin_render)(const Game*, const State*); -typedef void (*plugin_resize)(Game* game, State* state, int width, int height); +typedef bool (*PluginInit)(Game*, State**); +typedef bool (*PluginShutdown)(Game*, State*); +typedef bool (*PluginBoot)(Game*, State*); +typedef void (*PluginUpdate)(Game*, State*, double t, double dt); +typedef void (*PluginRender)(const Game*, const State*); +typedef void (*PluginResize)(Game* game, State* state, int width, int height); -- cgit v1.2.3