I am now trying to integrate my Irrlicht scene to a wxWidgets
application, thanks to the great wxIrrlicht class, I got most of
the things done.
However there are serveral issues I want to know.
1. wxTimer
Since wxWidgets has its own event loop mechanism, timer event
was used to kick the wxIrrlicht rendering loop. The problem is, if I
set high speed timer, say 10ms, to render my scene, I found the
application won's quit even I close it. The frame/window disappears,
but the process is still running (checked by Windows TaskManager).
If I slow down the rendering speed, the problem disappears.
I am new to wxIrrlicht, but is it possible that the timer event are
buffered in the event queue, which prevent the application from
quit immediately. I tried to clear the event queue before exit,
but without luck.
Any suggestion?
2. It is said that using the wxWidgets OnIdle for rendering is not
a good idea, is this true?
3. Multiple scene windows rendering
I am planing to render differnt camera views at the same time,
but If I add a second wxIrrlicht window/frame, the previous one
won's work. I believe it is maybe because the one single base
camera instance can not handle such a situation. Am I right?
Any suggestions are welcome.
Thank you for your time in advance.
wxIrrlicht issues ( wxTimer Vs Idle )
Actually, I can't even get the timer to work.
I incorporated wxIrrlicht into the the wxwidgets 'minimal' example.
The compilers I am using don't like the 'this' reference to start the wxIrrlicht class, so I am using wxGetActiveWindow instead.
I get the app to run and it shows the "FPS ",but that's it.It makes just one render pass and that's it.
Edit:well...it was working afterall.I did the 'HelloWorld' example in a wxWidgets window and it worked fine.For some reason I can only see a 20 pixel wide Gui rectangle.
I incorporated wxIrrlicht into the the wxwidgets 'minimal' example.
The compilers I am using don't like the 'this' reference to start the wxIrrlicht class, so I am using wxGetActiveWindow instead.
I get the app to run and it shows the "FPS ",but that's it.It makes just one render pass and that's it.
Edit:well...it was working afterall.I did the 'HelloWorld' example in a wxWidgets window and it worked fine.For some reason I can only see a 20 pixel wide Gui rectangle.