From 5424a1d5434e3ddd911a504719918c2df027e2fd Mon Sep 17 00:00:00 2001 From: rtk0c Date: Sun, 17 Apr 2022 20:08:57 -0700 Subject: Changeset: 8 Initial work on sprites and texture system --- source/EditorCore.hpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'source/EditorCore.hpp') 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 @@ -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 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(); }; -- cgit v1.2.3-70-g09d2