Main hub manager for the El Motor editor. Manages overall editor state, UI rendering, and transitions between different editor modes. Coordinates between the GUI layer, the core editor, and the asset/script managers.
More...
#include <HubManager.hpp>
|
| | HubManager () |
| | Constructor for HubManager.
|
| | ~HubManager () |
| | Destructor for HubManager.
|
| void | Shutdown () |
| | Initializes the editor hub including the application, GUI layer, and systems. Must be called before HubRun().
|
| void | Init () |
| | Initializes the editor hub including the application, GUI layer, and systems. Must be called before HubRun().
|
| void | HubRun () |
| | Main editor loop. Runs until the window is closed. Handles rendering, input, and state transitions.
|
| void | CreateProject () |
| | Initializes a new project in the editor.
|
| void | LoadProject () |
| | Loads an existing project into the editor.
|
| void | DrawHubUI () |
| | Renders the hub UI for project selection and creation.
|
| void | DrawEditorUI () |
| | Renders the main editor UI for scene and GameObject editing.
|
| EditorState & | GetEditorState () |
| | Gets the current editor state.
|
| void | SetEditorState (EditorState state) |
| | Sets the current editor state.
|
|
| enum | EditorState { Hub
, Editor
, Run
} |
| | Enumeration defining the different states the editor can be in. Controls which UI and functionality is displayed and active. More...
|
Main hub manager for the El Motor editor. Manages overall editor state, UI rendering, and transitions between different editor modes. Coordinates between the GUI layer, the core editor, and the asset/script managers.
◆ EditorState
Enumeration defining the different states the editor can be in. Controls which UI and functionality is displayed and active.
| Enumerator |
|---|
| Hub | Project selection and creation hub.
|
| Editor | Main editor for scene and GameObject editing.
|
| Run | Game runtime/play mode.
|
◆ HubManager()
| Editor::HubManager::HubManager |
( |
| ) |
|
◆ ~HubManager()
| Editor::HubManager::~HubManager |
( |
| ) |
|
◆ CreateProject()
| void Editor::HubManager::CreateProject |
( |
| ) |
|
Initializes a new project in the editor.
◆ DrawEditorUI()
| void Editor::HubManager::DrawEditorUI |
( |
| ) |
|
Renders the main editor UI for scene and GameObject editing.
◆ DrawHubUI()
| void Editor::HubManager::DrawHubUI |
( |
| ) |
|
Renders the hub UI for project selection and creation.
◆ GetEditorState()
Gets the current editor state.
- Returns
- Reference to the current EditorState
◆ HubRun()
| void Editor::HubManager::HubRun |
( |
| ) |
|
Main editor loop. Runs until the window is closed. Handles rendering, input, and state transitions.
◆ Init()
| void Editor::HubManager::Init |
( |
| ) |
|
Initializes the editor hub including the application, GUI layer, and systems. Must be called before HubRun().
◆ LoadProject()
| void Editor::HubManager::LoadProject |
( |
| ) |
|
Loads an existing project into the editor.
◆ SetEditorState()
| void Editor::HubManager::SetEditorState |
( |
EditorState | state | ) |
|
|
inline |
Sets the current editor state.
- Parameters
-
| state | The new editor state |
◆ Shutdown()
| void Editor::HubManager::Shutdown |
( |
| ) |
|
Initializes the editor hub including the application, GUI layer, and systems. Must be called before HubRun().
◆ app
The application instance managing window and rendering.
The documentation for this class was generated from the following file: