My Project
Loading...
Searching...
No Matches
Editor::HubManager Class Reference

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>

Public Member Functions

 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.
EditorStateGetEditorState ()
 Gets the current editor state.
void SetEditorState (EditorState state)
 Sets the current editor state.

Protected Types

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...

Protected Attributes

Engine::Application app
 The application instance managing window and rendering.

Detailed Description

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.

Member Enumeration Documentation

◆ 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.

Constructor & Destructor Documentation

◆ HubManager()

Editor::HubManager::HubManager ( )

Constructor for HubManager.

◆ ~HubManager()

Editor::HubManager::~HubManager ( )

Destructor for HubManager.

Member Function Documentation

◆ 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()

EditorState & Editor::HubManager::GetEditorState ( )
inline

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
stateThe new editor state

◆ Shutdown()

void Editor::HubManager::Shutdown ( )

Initializes the editor hub including the application, GUI layer, and systems. Must be called before HubRun().

Member Data Documentation

◆ app

Engine::Application Editor::HubManager::app
protected

The application instance managing window and rendering.


The documentation for this class was generated from the following file: