2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-08-05 05:35:35 +00:00
metaforce/Editor/ViewManager.hpp
2015-12-07 18:27:35 -10:00

41 lines
927 B
C++

#ifndef RUDE_VIEW_MANAGER_HPP
#define RUDE_VIEW_MANAGER_HPP
#include <Specter/Specter.hpp>
#include <HECL/CVarManager.hpp>
namespace RUDE
{
class ViewManager : Specter::IViewManager
{
HECL::CVarManager& m_cvarManager;
Specter::FontCache m_fontCache;
Specter::ViewResources m_viewResources;
std::unique_ptr<boo::IWindow> m_mainWindow;
std::unique_ptr<Specter::RootView> m_rootView;
Specter::Space* m_space1;
Specter::Space* m_space2;
HECL::CVar* m_cvPixelFactor;
HECL::CVar* m_test1;
HECL::CVar* m_test2;
void SetupRootView();
public:
ViewManager(HECL::Runtime::FileStoreManager& fileMgr, HECL::CVarManager& cvarMgr)
: m_cvarManager(cvarMgr), m_fontCache(fileMgr) {}
Specter::RootView& rootView() const {return *m_rootView;}
void ResetResources();
void init(boo::IApplication* app);
bool proc();
void stop();
};
}
#endif // RUDE_VIEW_MANAGER_HPP