as the title says I'm trying to integrate Irrlicht in QT.
I followed this tutorial: viewtopic.php?f=5&t=44658
It works great, but now I have a problem with all the stuff thats done during runtime (sending units around, collision detection...)
I started with the Irrlichts tutorial 07.Collision and built on it so that i can send units around and test for collision detection.
All this is done in a while loop in the main.cpp:
- cpp Code: Select all
while(mainWindow.getIrrlichtWidget()->getIrrlichtDevice()->run())
if (mainWindow.getIrrlichtWidget()->getIrrlichtDevice()->isWindowActive())
{... //code to send units around and watch for collisions
But i have to
- cpp Code: Select all
return app.exec();
Well if i return inside the loop the units are shown but i cant move anything because the while loop is over.
And if i return after the loop the Game wont never end the loop and the window wont be created.
Where do i have to place the loop or the app.exec?
I hope somebody can help me
Thx in advance
Ritti
