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

platform-sensitive system init

This commit is contained in:
Jack Andersen
2015-11-25 14:24:01 -10:00
parent 10c7d6e125
commit d8921bbc5f
13 changed files with 419 additions and 88 deletions

View File

@@ -3,11 +3,10 @@
namespace Specter
{
void RootView::setWindow(boo::IWindow* window, float userScale)
RootView::RootView(ViewSystem& system, boo::IWindow* window)
: View(system), m_window(window)
{
window->setCallback(this);
m_window = window;
m_scale = window->getVirtualPixelFactor() * userScale;
}
void RootView::resized(const boo::SWindowRect& rect)
@@ -76,6 +75,7 @@ void RootView::modKeyUp(boo::EModifierKey mod)
void RootView::draw(boo::IGraphicsCommandQueue* gfxQ)
{
View::draw(gfxQ);
}
}