2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 22:27:43 +00:00

Editor updates

This commit is contained in:
Jack Andersen
2015-11-21 18:35:24 -10:00
parent fd8f72c5f0
commit b4c802d598
4 changed files with 22 additions and 4 deletions

View File

@@ -7,19 +7,37 @@ namespace RUDE
struct Application : boo::IApplicationCallback
{
HECL::Runtime::FileStoreManager m_fileMgr;
Specter::FontCache m_fontCache;
Specter::RootView m_rootView;
boo::IWindow* m_mainWindow;
bool m_running = true;
Application() : m_fileMgr(_S("rude")), m_fontCache(m_fileMgr), m_rootView(m_fontCache) {}
int appMain(boo::IApplication* app)
{
m_mainWindow = app->newWindow(_S("RUDE"));
m_rootView.setWindow(m_mainWindow, 1.0f);
while (m_running)
{
m_mainWindow->waitForRetrace();
}
return 0;
}
void appQuitting(boo::IApplication*)
{
m_running = false;
}
void appFilesOpen(boo::IApplication*, const std::vector<boo::SystemString>&)
{
}
};
}