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

Submodule updates

This commit is contained in:
Jack Andersen
2015-11-25 14:25:17 -10:00
parent 6c78f91fa7
commit f34d777e30
3 changed files with 11 additions and 7 deletions

View File

@@ -11,9 +11,9 @@ struct Application : boo::IApplicationCallback
{
HECL::Runtime::FileStoreManager m_fileMgr;
Specter::FontCache m_fontCache;
Specter::RootView m_rootView;
Retro::CVarManager m_cvarManager;
boo::IWindow* m_mainWindow;
Specter::ViewSystem m_viewSystem;
Retro::CVarManager m_cvarManager;
Zeus::CColor m_clearColor;
bool m_running = true;
@@ -27,13 +27,11 @@ struct Application : boo::IApplicationCallback
Application() :
m_fileMgr(_S("rude")),
m_fontCache(m_fileMgr),
m_rootView(m_fontCache),
m_cvarManager(m_fileMgr){}
int appMain(boo::IApplication* app)
{
m_mainWindow = app->newWindow(_S("RUDE"));
m_rootView.setWindow(m_mainWindow, 1.0f);
m_cvarManager.serialize();
Retro::CVar* tmp = m_cvarManager.findCVar("r_clearcolor");
Retro::CVar::ListenerFunc listen = std::bind(&Application::onCVarModified, this, std::placeholders::_1);
@@ -41,9 +39,15 @@ struct Application : boo::IApplicationCallback
tmp->addListener(listen);
boo::IGraphicsDataFactory* gf = m_mainWindow->getMainContextDataFactory();
m_fontCache.prepMainFont(gf, false, 10.0, 72);
m_viewSystem.init(gf, &m_fontCache);
Specter::FontTag mainFont = m_fontCache.prepMainFont(gf, false, 10.0, 72);
m_fontCache.closeBuiltinFonts();
Specter::RootView rootView(m_viewSystem, m_mainWindow);
Specter::TextView textView(m_viewSystem, mainFont);
textView.typesetGlyphs("Hello, World!");
while (m_running)
{
m_cvarManager.update();

2
hecl

Submodule hecl updated: e6b2da35bd...e40b5138ea