aboutsummaryrefslogtreecommitdiff
path: root/source/EditorCore.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-04-17 20:08:57 -0700
committerrtk0c <[email protected]>2022-04-17 20:08:57 -0700
commit5424a1d5434e3ddd911a504719918c2df027e2fd (patch)
tree6275aab13140d81dcc46c8290e73ac9a8bbb5605 /source/EditorCore.hpp
parentafcac59c7d04f4337d6b04ebed8cac7e871ccc50 (diff)
Changeset: 8 Initial work on sprites and texture system
Diffstat (limited to 'source/EditorCore.hpp')
-rw-r--r--source/EditorCore.hpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/source/EditorCore.hpp b/source/EditorCore.hpp
index 3d91fa6..c604f36 100644
--- a/source/EditorCore.hpp
+++ b/source/EditorCore.hpp
@@ -3,6 +3,9 @@
#include "EditorAttachment.hpp"
#include "EditorResources.hpp"
#include "GameObject.hpp"
+#include "Ires.hpp"
+#include "RcPtr.hpp"
+#include "Sprite.hpp"
#include "World.hpp"
#include <memory>
@@ -15,16 +18,19 @@ public:
ITT_GameObject,
ITT_Shader,
ITT_Material,
+ ITT_Ires,
ITT_None,
};
private:
App* mApp;
GameWorld* mWorld;
+ // TODO store more fields for ITT
void* mSelectedItPtr = nullptr;
+ RcPtr<Sprite> mSpriteView_Instance;
EditorContentBrowser mEdContentBrowser;
InspectorTargetType mSelectedItt = ITT_None;
- bool mEdContentBrowserVisible=false;
+ bool mEdContentBrowserVisible = false;
public:
EditorInstance(App* app, GameWorld* world);
@@ -41,8 +47,12 @@ private:
void ShowInspector(Shader* shader);
void ShowInspector(Material* material);
+ void ShowInspector(const std::string& path, IresObject* ires);
void ShowInspector(GameObject* object);
void ShowGameObjecetFields(GameObject* object);
void ShowGameObjectInTree(GameObject* object);
+
+ void OpenSpriteViewer(Sprite* sprite);
+ void ShowSpriteViewer();
};