43 void Show(
float deltaTime);
97 void ShowMainMenuBar(
bool& play);
98 void ShowGridSettings();
99 void CreateGrid(
int size);
100 void ControlEditorCamera(
float deltaTime);
103 void PaintBrush(
Entity* entity);
104 void WidgetGizmo(
Entity* entity);
108 void NewHymnClosed(
const std::string& hymn);
110 void OpenHymnClosed(
const std::string& hymn);
111 void LoadActiveScene();
113 struct GridSettings {
132 bool savePromptAnswered;
133 bool showGridSettings;
134 Entity* parentEntity =
nullptr;
135 Json::Value sceneState;
142 int nrOfVertices = 0;
145 float lastIntersect = INFINITY;
150 float paintTimer = 0.0f;
151 float paintSpawnRate[1] = {0.5f};
152 float paintObjScale[1] = {1.0f};
153 int paintScaleRandomness[1] = {1};
154 bool toolMenuPressed =
false;
155 bool spreadRand =
false;
156 std::string paintScene;
158 GLFWcursor* cursors[5];
160 ImGuizmo::MODE imguizmoMode = ImGuizmo::MODE::WORLD;
Handles the main editor.
Definition: Editor.hpp:24
bool ReadyToClose() const
Is the editor ready to be closed, have we saved everything?
Definition: Editor.cpp:344
Editor(Utility::Window *window, Video::LowLevelRenderer *lowLevelRenderer)
Create new editor.
Definition: Editor.cpp:40
void LoadSceneState()
Loads the save editor state.
Definition: Editor.cpp:793
bool HasMadeChanges() const
Show the editor.
Definition: Editor.cpp:276
void SetVisible(bool visible)
Set whether the resource list should be visible.
Definition: Editor.cpp:360
bool paintModeActive
Definition: Editor.hpp:94
void Save() const
Save the hymn being edited.
Definition: Editor.cpp:270
void RenderHymn()
Render the hymn using the editor's debug visualization settings.
Definition: Editor.cpp:123
Entity * GetCamera() const
Get the editor camera.
Definition: Editor.cpp:364
void Close()
Close the editor.
Definition: Editor.cpp:352
bool vertsLoaded
Definition: Editor.hpp:91
~Editor()
Destructor.
Definition: Editor.cpp:112
bool IsVisible() const
Get whether the resource list is visible.
Definition: Editor.cpp:356
bool IsClosing() const
Is the editor preparing for closing down?
Definition: Editor.cpp:348
void Show(float deltaTime)
Show the editor.
Definition: Editor.cpp:138
Entity containing various components.
Definition: Entity.hpp:16
Definition: LogView.hpp:8
Definition: ProfilingWindow.hpp:9
Displays all the hymn's resources.
Definition: ResourceView.hpp:21
A window that asks the user if they want to save before quitting.
Definition: SavePromptWindow.hpp:9
A window where a hymn can be selected.
Definition: SelectHymnWindow.hpp:9
Used to edit Hymn to Beauty settings.
Definition: SettingsWindow.hpp:8
The class handling intersection checks.
Definition: RayIntersection.hpp:7
Definition: Window.hpp:14
Low level renderer abstracting the underlaying graphics API (OpenGL or Vulkan).
Definition: LowLevelRenderer.hpp:27
A two-dimensional texture.
Definition: Texture2D.hpp:10
The game world containing all entities.
Definition: World.hpp:14
Definition: Editor.hpp:18