mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-15 20:08:54 +03:00
Added Screen space reflections and Editor UI refactoring
This commit is contained in:
58
Editor/src/Windows/EditorInterface.h
Normal file
58
Editor/src/Windows/EditorInterface.h
Normal file
@@ -0,0 +1,58 @@
|
||||
#pragma once
|
||||
#include <src/Scene/Entities/Entity.h>
|
||||
#include "src/Vendors/imgui/imgui.h"
|
||||
#include <src/Vendors/imgui/ImGuizmo.h>
|
||||
#include "src/Core/FileSystem.h"
|
||||
|
||||
#include "../Actions/EditorSelection.h"
|
||||
#include "EditorSelectionPanel.h"
|
||||
|
||||
namespace Nuake {
|
||||
class Material;
|
||||
class FileSystemUI;
|
||||
class EditorInterface
|
||||
{
|
||||
private:
|
||||
FileSystemUI* filesystem;
|
||||
|
||||
|
||||
|
||||
bool m_DrawGrid = false;
|
||||
bool m_ShowImGuiDemo = false;
|
||||
bool m_DebugCollisions = false;
|
||||
bool m_ShowOverlay = true;
|
||||
ImGuizmo::OPERATION CurrentOperation = ImGuizmo::TRANSLATE;
|
||||
ImGuizmo::MODE CurrentMode = ImGuizmo::WORLD;
|
||||
Ref<Material> m_SelectedMaterial;
|
||||
Ref<Directory> m_CurrentDirectory;
|
||||
|
||||
bool m_IsMaterialSelected = false;
|
||||
|
||||
public:
|
||||
EditorSelection Selection;
|
||||
EditorSelectionPanel SelectionPanel;
|
||||
|
||||
EditorInterface();
|
||||
|
||||
static ImFont* bigIconFont;
|
||||
void BuildFonts();
|
||||
void Init();
|
||||
void Draw();
|
||||
void DrawViewport();
|
||||
void DrawEntityTree(Entity ent);
|
||||
void DrawSceneTree();
|
||||
void DrawEntityPropreties();
|
||||
void DrawGizmos();
|
||||
void DrawFileSystem();
|
||||
void DrawDirectoryExplorer();
|
||||
void DrawLogger();
|
||||
void DrawDirectory(Ref<Directory> directory);
|
||||
bool EntityContainsItself(Entity ent1, Entity ent2);
|
||||
void DrawFile(Ref<File> file);
|
||||
void DrawRessourceWindow();
|
||||
void DrawInit();
|
||||
void EditorInterfaceDrawFiletree(Ref<Directory> dir);
|
||||
void Overlay();
|
||||
void DrawMaterialEditor(Ref<Material> material);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user