| 26 | PiccoloEditor::~PiccoloEditor() {} |
| 27 | |
| 28 | void PiccoloEditor::initialize(PiccoloEngine* engine_runtime) |
| 29 | { |
| 30 | assert(engine_runtime); |
| 31 | |
| 32 | g_is_editor_mode = true; |
| 33 | m_engine_runtime = engine_runtime; |
| 34 | |
| 35 | EditorGlobalContextInitInfo init_info = {g_runtime_global_context.m_window_system.get(), |
| 36 | g_runtime_global_context.m_render_system.get(), |
| 37 | engine_runtime}; |
| 38 | g_editor_global_context.initialize(init_info); |
| 39 | g_editor_global_context.m_scene_manager->setEditorCamera( |
| 40 | g_runtime_global_context.m_render_system->getRenderCamera()); |
| 41 | g_editor_global_context.m_scene_manager->uploadAxisResource(); |
| 42 | |
| 43 | m_editor_ui = std::make_shared<EditorUI>(); |
| 44 | WindowUIInitInfo ui_init_info = {g_runtime_global_context.m_window_system, |
| 45 | g_runtime_global_context.m_render_system}; |
| 46 | m_editor_ui->initialize(ui_init_info); |
| 47 | } |
| 48 | |
| 49 | void PiccoloEditor::clear() { g_editor_global_context.clear(); } |
| 50 |
no test coverage detected