MMF2SDK and Irrlicht Engine GUI
Hi Everyone!
I've got a quite complex problem (afaik):
I'm trying to create an extension that takes use of GUI of the Irrlicht Engine.
I've got the child window, and render working so far, but i've got a pretty wierd problem:
Render and everything works good, no problem, but the GUI buttons does not seems to be pressable, only if i rappidly click on the button.
In the code i have:
HandleRunObject() :
Code:
if(rdPtr->device->run())
return REFLAG_DISPLAY;
else
return 0;
.. and in DisplayRunObject(), which gets called if i return REFLAG_DISPLAY in HandleRunObject() :
Code:
rdPtr->driver->beginScene(true,true,SColor(0,128,0,0));
rdPtr->gui->drawAll();
rdPtr->driver->endScene(reinterpret_cast<irr::s32>(rdPtr->irrWind));
--
The wierdest thing is, if i set a while statement instead of an if statement, everything works fine, except from that it will end with an infinite loop.
--
Some more info:
The irrlicht device is pasted into a Win32 Button Window, if you want to see the code for setup that, just tell me.
-Thanks!
Re: MMF2SDK and Irrlicht Engine GUI
Quote:
if(rdPtr->device->run())
rdPtr->driver->beginScene(true,true,SColor(0,128,0,0));
rdPtr->gui->drawAll();
rdPtr->driver->endScene(reinterpret_cast<irr::s32>(rdPtr->irrWind));
Err, are you sure you don't need braces around that? :crazy:
Re: MMF2SDK and Irrlicht Engine GUI
Oh, wrong coded, sry about that.
Re: MMF2SDK and Irrlicht Engine GUI
Should I move this then?
EDIT: You mean that didn't fix it?
Re: MMF2SDK and Irrlicht Engine GUI
No, i meant, that the code i posted was wrong.
The problem is not solved.