My question is a bit more simple (I think), I just want to rotate a window on the screen. I have tried to simply rotate a window, but it only updates the view port when I mouse over a button or otherwise generate an event.
How do I Request a Redraw?
I see:
CEGUI::System::getSingleton().isRedrawRequested();
and
CEGUI::System::getSingleton().renderGUI();
but renderGUI only works if something has changed... and rotating a window doesn't trigger it.
Here is my code:
Code: Select all
CEGUI::PushButton* pProducts = (CEGUI::PushButton *)CEGUI::WindowManager::getSingleton().getWindow("cmdProducts");
CEGUI::Vector3 menuRot;
while (CurrentState != SHUTDOWN) {
menuRot = pProducts->getRotation();
menuRot.d_z+=.1;
pProducts->setRotation(menuRot);
CEGUI::System::getSingleton().renderGUI();
Ogre::WindowEventUtilities::messagePump();
ogre->renderOneFrame();
}