summaryrefslogtreecommitdiff
path: root/editor/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/main.cpp')
-rw-r--r--editor/main.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/editor/main.cpp b/editor/main.cpp
index 7400583..54c7607 100644
--- a/editor/main.cpp
+++ b/editor/main.cpp
@@ -11,20 +11,19 @@ void signal_handler(int signal_num) {
pkeSettings.isGameRunning = false;
}
-PKEWindowProperties windowProps{};
-
int main() {
signal(SIGTERM, signal_handler);
fprintf(stdout, "PKE_EDITOR ENTERING\n");
// setup
{
pkeSettings.isShowingEditor = true;
- Event_RegisterCallback<EventHandler>("GAME_INIT", PkeEditor_Init);
-
- Event_RegisterCallback<EventHandler>("GAME_TEARDOWN", PkeEditor_Teardown);
+ pkeGameCallbacks.OnInit = PkeEditor_Init;
+ pkeGameCallbacks.OnTick = PkeEditor_Tick;
+ pkeGameCallbacks.OnTeardown = PkeEditor_Teardown;
+ pkeGameCallbacks.OnImGuiRender = PkeEditor_RecordImGui;
}
// run
- Game_Main(&windowProps);
+ Game_Main({});
fprintf(stdout, "PKE_EDITOR EXITING\n");
return 0;
}