mrmclovin
10-07-2009 22:28:01
Hi! I can't figure out how to use the RenderBox. What is the IViewport/OgreViewport for? When I look at the code it does'nt seem to do anything apart from altering background colour?
When I try this code, all I see is the main Viewport capturing from the main camera. (The OgreViewport is also capturing from the main camera!). MyGUI is working since I can see the mouse pointer and move it around!
Using SVN version 1-2 weeks old.
When I try this code, all I see is the main Viewport capturing from the main camera. (The OgreViewport is also capturing from the main camera!). MyGUI is working since I can see the mouse pointer and move it around!
Viewport* vp = getRenderWindow()->addViewport(mCamera);
initialiseGui(); // initialise MyGUI!
MyGUI::OgreViewport* vp2 = new MyGUI::OgreViewport(mCamera);
mRenderBox->setViewport(vp2);
mRenderBox->setBackgroundColour(MyGUI::Colour::Zero);
Using SVN version 1-2 weeks old.