Commit 754e6fcc authored by hybrid's avatar hybrid

Add render calls to two windows, where possible

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4608 dfc29bdd-3216-0410-991c-e03cc46cb475
parent d8c108d8
......@@ -185,6 +185,9 @@ int main()
driver->getTexture("../../media/irrlicht2_ft.jpg"),
driver->getTexture("../../media/irrlicht2_bk.jpg"));
// This shows that we can render to multiple windows within one application
device->getGUIEnvironment()->addStaticText(core::stringw("Second screen render").c_str(),core::recti(0,0,200,200));
// show and execute dialog
ShowWindow(hWnd , SW_SHOW);
......@@ -209,6 +212,12 @@ int main()
driver->beginScene(true, true, 0, videodata);
smgr->drawAll();
driver->endScene();
if (key=='b')
{
driver->beginScene(true, true, 0xbbbbbbbb);
device->getGUIEnvironment()->drawAll();
driver->endScene();
}
}
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment