Exting Irrlicht

Irrlicht.Net is no longer developed or supported, Irrlicht.Net Cross Platform is a much more complete wrapper. Please ask your C# related questions on their forums first.
Locked
Cerasti
Posts: 1
Joined: Sun Jun 11, 2006 4:33 pm
Location: Sweden
Contact:

Exting Irrlicht

Post by Cerasti »

Hi!

I wonder how to close Irrlicht without using the while( device.Run() ) method, because if I use device.CloseDevice() the window disappears but the process remains. Here is the code I'm using:

Code: Select all

case KeyCode.KEY_ESCAPE:
	VideoManager.GetSingleton().Device.CloseDevice();
        GameEngine.GetSingleton().Running=false;
        GC.Collect();
My main loop is while(GameEngine.GetSingleton().Running) {...} so I don't see why the program won't exit when I set Running to false. Any help is appreciated!

- Martin
There are 10 kinds of people, those who understand binary and those who don't
TOP-Proto
Posts: 14
Joined: Sun Jun 25, 2006 8:41 pm

Post by TOP-Proto »

change from OpenGL to directX. Bug in OGL keeps the driver open on exit.
Locked