mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 23:07:42 +00:00
Submodule updates
This commit is contained in:
@@ -13,6 +13,7 @@ struct Application : boo::IApplicationCallback
|
|||||||
Specter::FontCache m_fontCache;
|
Specter::FontCache m_fontCache;
|
||||||
boo::IWindow* m_mainWindow;
|
boo::IWindow* m_mainWindow;
|
||||||
Specter::ViewSystem m_viewSystem;
|
Specter::ViewSystem m_viewSystem;
|
||||||
|
std::unique_ptr<Specter::RootView> m_rootView;
|
||||||
Retro::CVarManager m_cvarManager;
|
Retro::CVarManager m_cvarManager;
|
||||||
Zeus::CColor m_clearColor;
|
Zeus::CColor m_clearColor;
|
||||||
bool m_running = true;
|
bool m_running = true;
|
||||||
@@ -31,6 +32,7 @@ struct Application : boo::IApplicationCallback
|
|||||||
int appMain(boo::IApplication* app)
|
int appMain(boo::IApplication* app)
|
||||||
{
|
{
|
||||||
m_mainWindow = app->newWindow(_S("RUDE"));
|
m_mainWindow = app->newWindow(_S("RUDE"));
|
||||||
|
m_mainWindow->setWaitCursor(true);
|
||||||
m_cvarManager.serialize();
|
m_cvarManager.serialize();
|
||||||
Retro::CVar* tmp = m_cvarManager.findCVar("r_clearcolor");
|
Retro::CVar* tmp = m_cvarManager.findCVar("r_clearcolor");
|
||||||
Retro::CVar::ListenerFunc listen = std::bind(&Application::onCVarModified, this, std::placeholders::_1);
|
Retro::CVar::ListenerFunc listen = std::bind(&Application::onCVarModified, this, std::placeholders::_1);
|
||||||
@@ -39,17 +41,18 @@ struct Application : boo::IApplicationCallback
|
|||||||
|
|
||||||
boo::IGraphicsDataFactory* gf = m_mainWindow->getMainContextDataFactory();
|
boo::IGraphicsDataFactory* gf = m_mainWindow->getMainContextDataFactory();
|
||||||
m_viewSystem.init(gf, &m_fontCache);
|
m_viewSystem.init(gf, &m_fontCache);
|
||||||
Specter::RootView rootView(m_viewSystem, m_mainWindow);
|
m_rootView.reset(new Specter::RootView(m_viewSystem, m_mainWindow));
|
||||||
|
|
||||||
m_mainWindow->showWindow();
|
m_mainWindow->showWindow();
|
||||||
|
m_mainWindow->setWaitCursor(false);
|
||||||
boo::IGraphicsCommandQueue* gfxQ = m_mainWindow->getCommandQueue();
|
boo::IGraphicsCommandQueue* gfxQ = m_mainWindow->getCommandQueue();
|
||||||
while (m_running)
|
while (m_running)
|
||||||
{
|
{
|
||||||
if (rootView.isDestroyed())
|
if (m_rootView->isDestroyed())
|
||||||
break;
|
break;
|
||||||
m_cvarManager.update();
|
m_cvarManager.update();
|
||||||
m_mainWindow->waitForRetrace();
|
m_mainWindow->waitForRetrace();
|
||||||
rootView.draw(gfxQ);
|
m_rootView->draw(gfxQ);
|
||||||
gfxQ->flushBufferUpdates();
|
gfxQ->flushBufferUpdates();
|
||||||
gfxQ->execute();
|
gfxQ->execute();
|
||||||
}
|
}
|
||||||
|
|||||||
2
hecl
2
hecl
Submodule hecl updated: cd6f8c4f55...ec0743d4a0
Submodule libSpecter updated: ed2248a287...480f1d9586
Reference in New Issue
Block a user