Overload  1.1
Game engine with editor
Public Member Functions | List of all members
OvEditor::Core::Editor Class Reference

#include <Editor.h>

Public Member Functions

 Editor (Context &p_context)
 
 ~Editor ()
 
void SetupUI ()
 
void PreUpdate ()
 
void Update (float p_deltaTime)
 
void UpdateCurrentEditorMode (float p_deltaTime)
 
void UpdatePlayMode (float p_deltaTime)
 
void UpdateEditMode (float p_deltaTime)
 
void UpdateEditorPanels (float p_deltaTime)
 
void PrepareRendering (float p_deltaTime)
 
void RenderViews (float p_deltaTime)
 
void RenderEditorUI (float p_deltaTime)
 
void PostUpdate ()
 

Detailed Description

Handle the editor logic

Constructor & Destructor Documentation

◆ Editor()

OvEditor::Core::Editor::Editor ( Context p_context)

Constructor of the editor

Parameters
p_context

◆ ~Editor()

OvEditor::Core::Editor::~Editor ( )

Destructor of the editor

Member Function Documentation

◆ PostUpdate()

void OvEditor::Core::Editor::PostUpdate ( )

Actually render the scene (Buffer swapping) and clear input events

◆ PrepareRendering()

void OvEditor::Core::Editor::PrepareRendering ( float  p_deltaTime)

Prepare the rendering of the views by parsing lights and sending them to the GPU and filling Engine UBO with elapsed time

Parameters
p_deltaTime

◆ PreUpdate()

void OvEditor::Core::Editor::PreUpdate ( )

Prepare the frame (Inputs update, screen clearing)

◆ RenderEditorUI()

void OvEditor::Core::Editor::RenderEditorUI ( float  p_deltaTime)

Render the editor UI using ImGui

Parameters
p_deltaTime

◆ RenderViews()

void OvEditor::Core::Editor::RenderViews ( float  p_deltaTime)

Render every views (Scene View, Game View, Asset View)

Parameters
p_deltaTime

◆ SetupUI()

void OvEditor::Core::Editor::SetupUI ( )

Handle panels creation and canvas binding

◆ Update()

void OvEditor::Core::Editor::Update ( float  p_deltaTime)

Editor main loop. Render the scene, update panels...

Parameters
p_deltaTime

◆ UpdateCurrentEditorMode()

void OvEditor::Core::Editor::UpdateCurrentEditorMode ( float  p_deltaTime)

Update the current editor mode

Parameters
p_deltaTime

◆ UpdateEditMode()

void OvEditor::Core::Editor::UpdateEditMode ( float  p_deltaTime)

Apply the edit mode logic

Parameters
p_deltaTime

◆ UpdateEditorPanels()

void OvEditor::Core::Editor::UpdateEditorPanels ( float  p_deltaTime)

Update editor panels

Parameters
p_deltaTime

◆ UpdatePlayMode()

void OvEditor::Core::Editor::UpdatePlayMode ( float  p_deltaTime)

Apply the play mode logic

Parameters
p_deltaTime

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