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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user