Voltray Engine Docs
Loading...
Searching...
No Matches
Editor::EditorApp Class Reference

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::ViewportGetViewport ()
 Get the viewport component.
 
Components::SettingsGetSettings ()
 Get the settings component.
 
std::shared_ptr< WorkspaceGetCurrentWorkspace ()
 Get the current workspace.
 

Static Public Member Functions

static EditorAppGet ()
 Returns the singleton instance of the EditorApp.
 

Detailed Description

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.

Member Function Documentation

◆ Get()

EditorApp * Editor::EditorApp::Get ( )
static

Returns the singleton instance of the EditorApp.

Returns
Pointer to the EditorApp instance.

◆ GetAssetsVisible()

bool & Editor::EditorApp::GetAssetsVisible ( )
inline

◆ GetConsoleVisible()

bool & Editor::EditorApp::GetConsoleVisible ( )
inline

◆ GetCurrentWorkspace()

std::shared_ptr< Workspace > Editor::EditorApp::GetCurrentWorkspace ( )
inline

Get the current workspace.

Returns
Shared pointer to the current workspace, or nullptr if none selected

◆ GetInspectorVisible()

bool & Editor::EditorApp::GetInspectorVisible ( )
inline

◆ GetSettings()

Components::Settings * Editor::EditorApp::GetSettings ( )
inline

Get the settings component.

Returns
Pointer to the settings component

◆ GetSettingsVisible()

bool & Editor::EditorApp::GetSettingsVisible ( )
inline

◆ GetViewport()

Components::Viewport * Editor::EditorApp::GetViewport ( )
inline

Get the viewport component.

Returns
Pointer to the viewport component

◆ GetViewportVisible()

bool & Editor::EditorApp::GetViewportVisible ( )
inline

Get panel visibility flags for menu toggles.

◆ Init()

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.

Parameters
windowPointer to the GLFW window to render the editor in.

◆ RenderUI()

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.

◆ Shutdown()

void Editor::EditorApp::Shutdown ( )

Cleans up resources used by the editor.

Destroys ImGui context and releases any allocated resources.


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