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

Set up editor for font cache test

This commit is contained in:
Jack Andersen
2015-11-22 22:47:57 -10:00
parent 64d62220fe
commit 63069c34ac
4 changed files with 11 additions and 4 deletions

View File

@@ -24,7 +24,11 @@ struct Application : boo::IApplicationCallback
m_clearColor = cvar->toColor();
}
Application() : m_fileMgr(_S("rude")), m_fontCache(m_fileMgr), m_rootView(m_fontCache), m_cvarManager(m_fileMgr){}
Application() :
m_fileMgr(_S("rude")),
m_fontCache(m_fileMgr),
m_rootView(m_fontCache),
m_cvarManager(m_fileMgr){}
int appMain(boo::IApplication* app)
{
@@ -36,6 +40,9 @@ struct Application : boo::IApplicationCallback
if (tmp)
tmp->addListener(listen);
boo::IGraphicsDataFactory* gf = m_mainWindow->getMainContextDataFactory();
m_fontCache.prepMainFont(gf);
while (m_running)
{
m_cvarManager.update();