diff options
author | hnOsmium0001 <[email protected]> | 2022-04-17 20:08:57 -0700 |
---|---|---|
committer | hnOsmium0001 <[email protected]> | 2022-04-17 20:08:57 -0700 |
commit | d43508ba4843801cbbf1f42a27af260d4eef5701 (patch) | |
tree | 39c51368cfe8ec097c08f198877cf07e9ff835ee /source/EditorCore.hpp | |
parent | 509201784d6525fc26345e55a56ab81e4a7616b3 (diff) |
Initial work on sprites and texture system
Diffstat (limited to 'source/EditorCore.hpp')
-rw-r--r-- | source/EditorCore.hpp | 12 |
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(); }; |