aboutsummaryrefslogtreecommitdiff
path: root/source/App.cpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-04-09 13:29:41 -0700
committerrtk0c <[email protected]>2022-04-09 13:29:41 -0700
commita849c199d970e153580c312a24cfdfa099bc7b69 (patch)
tree1b5faa8d40953ee451103b94349bb84c738677ee /source/App.cpp
parente7ef3f208c109357538b1f68af10bcd78db95c95 (diff)
Changeset: 4 More work on editor
Diffstat (limited to 'source/App.cpp')
-rw-r--r--source/App.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/source/App.cpp b/source/App.cpp
index 3907af9..ff0a5a5 100644
--- a/source/App.cpp
+++ b/source/App.cpp
@@ -1,5 +1,4 @@
#include "App.hpp"
-#include "GLFW/glfw3.h"
#include <utility>
@@ -18,16 +17,13 @@ void App::Init() {
}
mCurrentWorld->Awaken();
- mEditor = EditorInstance_Alloc(this, mCurrentWorld.get());
+ mEditor = std::make_unique<EditorInstance>(this, mCurrentWorld.get());
}
void App::Shutdown() {
if (!mInitialized) return;
mInitialized = false;
-
- EditorInstance_Free(mEditor);
mEditor = nullptr;
-
mCurrentWorld->Resleep();
mCurrentWorld = nullptr;
mPlayers.clear();
@@ -37,7 +33,7 @@ void App::Show() {
mCurrentWorld->Draw();
if (mEditorShown) {
- EditorInstance_Show(mEditor);
+ mEditor->Show();
}
}