summaryrefslogtreecommitdiff
path: root/src/plugins.hpp
blob: 2f34c122a9afb7b932f1190ce4e32cbfa36085fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 */