summaryrefslogtreecommitdiff
path: root/src/plugins.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins.hpp')
-rw-r--r--src/plugins.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/plugins.hpp b/src/plugins.hpp
new file mode 100644
index 0000000..2f34c12
--- /dev/null
+++ b/src/plugins.hpp
@@ -0,0 +1,16 @@
+#ifndef PKE_PLUGINS_HPP
+#define PKE_PLUGINS_HPP
+
+struct PKEPluginInterface {
+ void (*OnInit)() = nullptr;
+ void (*OnTick)(double delta) = nullptr;
+ void (*OnTeardown)() = nullptr;
+ void (*OnImGuiRender)() = nullptr;
+};
+
+extern PKEPluginInterface pkePlugin;
+
+void Pke_LoadPlugin(const char *path);
+void Pke_UnloadPlugin();
+
+#endif /* PKE_PLUGINS_HPP */