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
application running in background after it was closed
I did actually mean the CApplication::Run() ;-)danieLs0xFF wrote:thanks CuteAlien for advice i'll move the beginScene , endScene in statemanager->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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm