Entry point and main controller for the Voltray Editor application. More...
#include <EditorApp.h>
Public Member Functions | |
void | Init (GLFWwindow *window) |
Initializes the editor application with the given GLFW window. | |
void | RenderUI () |
Renders all editor UI components. | |
void | Shutdown () |
Cleans up resources used by the editor. | |
bool & | GetViewportVisible () |
Get panel visibility flags for menu toggles. | |
bool & | GetInspectorVisible () |
bool & | GetAssetsVisible () |
bool & | GetConsoleVisible () |
bool & | GetSettingsVisible () |
Components::Viewport * | GetViewport () |
Get the viewport component. | |
Components::Settings * | GetSettings () |
Get the settings component. | |
std::shared_ptr< Workspace > | GetCurrentWorkspace () |
Get the current workspace. | |
Static Public Member Functions | |
static EditorApp * | Get () |
Returns the singleton instance of the EditorApp. | |
Entry point and main controller for the Voltray Editor application.
This class manages the lifecycle of the editor application and coordinates all editor components. It follows a singleton pattern to ensure only one instance exists throughout the application.
|
static |
|
inline |
|
inline |
|
inline |
Get the current workspace.
|
inline |
|
inline |
Get the settings component.
|
inline |
|
inline |
Get the viewport component.
|
inline |
Get panel visibility flags for menu toggles.
void Editor::EditorApp::Init | ( | GLFWwindow * | window | ) |
Initializes the editor application with the given GLFW window.
Sets up ImGui context, styles, and creates all UI components.
window | Pointer to the GLFW window to render the editor in. |
void Editor::EditorApp::RenderUI | ( | ) |
Renders all editor UI components.
Called every frame to render the editor interface including toolbar, viewport, inspector, assets panel, and console.
void Editor::EditorApp::Shutdown | ( | ) |
Cleans up resources used by the editor.
Destroys ImGui context and releases any allocated resources.