application running in background after it was closed

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
danieLs0xFF
Posts: 14
Joined: Wed Aug 16, 2006 6:58 pm

Post by danieLs0xFF »

I think i have found the problem.

when handling escape key in OnEvent function i need to return true after i call closeDevice() to let the engine know that the event was processed.

thanks CuteAlien for advice i'll move the beginScene , endScene in statemanager->Run()

and thank you all for help
CuteAlien
Admin
Posts: 9933
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

danieLs0xFF wrote:thanks CuteAlien for advice i'll move the beginScene , endScene in statemanager->Run()
I did actually mean the CApplication::Run() ;-)
A statemanager should not know about rendering - it's managing states. An application on the other hand needs to render.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply