How to hide all GUI widgets?

huangyous

12-01-2010 07:28:15

I want to take a screen shot without gui in ogre,So is there a method to hide all the widgets when I call pRenderWindow->writeContentsToFile(...) ?

Altren

12-01-2010 08:15:38

EnumeratorWidgetPtr widgets = MyGUI::Gui::getInstance().getEnumerator();
while (widgets.next())
{
widgets->setVisible(false);
}
MyGUI::Gui::getInstance().setVisiblePointer(false);

huangyous

12-01-2010 08:30:00

Thanks,I'll give it a try.

my.name

12-01-2010 16:10:13

exit(0);
=)