Page 1 of 1

setGUISheet(NULL), windows still rendered

Posted: Sun Sep 07, 2008 19:15
by dewyatt
After calling CEGUISystem::setGUISheet(NULL), windows are still rendered.
Usually if I move the mouse, the window will disappear as it should.
I'm using CEGUI 0.6.1 w/OpenGLGUIRenderer (in SFML).

For now, I work around this by doing something like this:

Code: Select all

CEGUISystem->setGUISheet(NULL);
RootWindow->setVisible(false);

But I feel this shouldn't be necessary.

Posted: Mon Sep 08, 2008 08:17
by scriptkid
Certain property changes (such as Visibility) trigger a redraw. Other operations (such as setting the guisheet to Null) apparently don't. Maybe this is a special case which should be covered too...

Thanks.

Posted: Mon Sep 08, 2008 13:11
by dewyatt
I figured it was some sort of optimization like that.
Thanks for clearing that up. :)