| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- #pragma once
- #include "BsEditorPrerequisites.h"
- #include "BsApplication.h"
- #include "BsPath.h"
- namespace BansheeEngine
- {
- class BS_ED_EXPORT EditorApplication : public Application
- {
- public:
- EditorApplication(RenderSystemPlugin renderSystemPlugin);
- virtual ~EditorApplication();
- static void startUp(RenderSystemPlugin renderSystemPlugin);
- bool isProjectLoaded() const;
- bool isGameViewFocused() const;
- bool isSceneViewFocused() const;
- const Path& getActiveProjectPath() const;
- EditorSettingsPtr getEditorSettings() const { return mEditorSettings; }
- private:
- virtual void onStartUp();
- virtual void onShutDown();
- virtual void update();
- EditorWidgetLayoutPtr loadWidgetLayout();
- void saveWidgetLayout(const EditorWidgetLayoutPtr& layout);
- static void closeModalWindow(RenderWindowPtr window, HSceneObject sceneObject);
- private:
- static const Path WIDGET_LAYOUT_PATH;
- RenderSystemPlugin mActiveRSPlugin;
- EditorSettingsPtr mEditorSettings;
- DynLib* mSBansheeEditorPlugin;
- // DEBUG ONLY
- HGpuProgram mFragProgRef;
- HGpuProgram mVertProgRef;
- HShader mTestShader;
- TechniquePtr mNewTechniqueGL;
- PassPtr mNewPassGL;
- TechniquePtr mNewTechniqueDX;
- PassPtr mNewPassDX;
- TechniquePtr mNewTechniqueDX11;
- PassPtr mNewPassDX11;
- HMaterial mTestMaterial;
- HTexture mTestTexRef;
- HMesh mDbgMeshRef;
- };
- BS_ED_EXPORT EditorApplication& gEditorApplication();
- }
|