Editor UI

This commit is contained in:
2024-10-19 00:58:31 +02:00
parent 1d5b4499a4
commit fae8ea7cba
7 changed files with 134 additions and 97 deletions

View File

@@ -8,17 +8,20 @@ NETWORKING :: WITH_NETWORKING;
//#load "../editor/scene_editor.jai";
//#load "../ui/new_ui/new_ui.jai";
#load "editor/editor.jai";
editor: Editor;
}
Engine_Mode :: enum {
PLAYING;
EDITING;
}
mode: Engine_Mode;
Engine_Core :: struct {
mode: Engine_Mode;
#if EDITOR {
editor: Editor;
}
window: *Window;
renderer: *Renderer;
input : Input_State;
@@ -57,6 +60,10 @@ coven_init :: (window_title: string, window_width: u32, window_height: u32, full
init_audio_system();
init_console();
#if EDITOR {
init_editor();
}
ui_init();
}