MooJuice
26-05-2009 09:38:42
Hey all,
I have my minimum scene set up in Ogre to test out MyGUI (GREAT library guys, it's absolutely perfect for my needs).
A quick question.. when I run it, the mouse pointer flickers (my single button I placed on the screen, does not). My minimal bit of code that get's called every frame is:
m_fDelta is initialised to "0". Outside of this call there's really not much going on:
Thanks in advance!
EDIT: One last question, the input injection methods return a bool. Is this 'true' if the GUI handled it?
I have my minimum scene set up in Ogre to test out MyGUI (GREAT library guys, it's absolutely perfect for my needs).
A quick question.. when I run it, the mouse pointer flickers (my single button I placed on the screen, does not). My minimal bit of code that get's called every frame is:
// tick
void Scene::tick()
{
float fDelta = (m_pTimer->getMilliseconds() - m_fDelta) / 1000.0f;
Application::getSingleton().getGUI().injectFrameEntered(fDelta);
Application::getSingleton().getOgreRoot().renderOneFrame();
m_fDelta = fDelta;
}; // eo tick
m_fDelta is initialised to "0". Outside of this call there's really not much going on:
while(true)
{
Ogre::WindowEventUtilities::messagePump();
captureInput();
if(m_SceneStack.top()->isValid())
m_SceneStack.top()->tick();
else // scene is marked as invalid, pop it
{
popScene();
if(m_SceneStack.size()) // there's another one
m_SceneStack.top()->wake();
}
if(!m_SceneStack.size()) // no scenes?
break;
};
Thanks in advance!
EDIT: One last question, the input injection methods return a bool. Is this 'true' if the GUI handled it?