mirror of https://github.com/AxioDL/metaforce.git
Integration of render target binding
This commit is contained in:
parent
c9631253a2
commit
9048ba9aa6
|
@ -145,6 +145,7 @@ public:
|
|||
IViewManager& viewManager() const {return m_viewMan;}
|
||||
ViewResources& viewRes() const {return *m_viewRes;}
|
||||
const IThemeData& themeData() const {return *m_viewRes->m_theme;}
|
||||
boo::ITextureR* renderTex() const {return m_renderTex;}
|
||||
|
||||
std::vector<View*>& accessContentViews() {return m_views;}
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ RootView::RootView(IViewManager& viewMan, ViewResources& res, boo::IWindow* wind
|
|||
{
|
||||
window->setCallback(&m_events);
|
||||
boo::SWindowRect rect = window->getWindowFrame();
|
||||
m_renderTex = res.m_factory->newRenderTexture(rect.size[0], rect.size[1]);
|
||||
m_renderTex = res.m_factory->newRenderTexture(rect.size[0], rect.size[1], true, true);
|
||||
commitResources(res);
|
||||
resized(rect, rect);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue