Closed rendering window detection

Problems building or running the engine, queries about how to use features etc.
User avatar
zarthrag
Greenskin
Posts: 128
Joined: Sat Jul 24, 2004 9:07 am
Location: Tulsa, Oklahoma

Closed rendering window detection

Post by zarthrag »

I was most way done with my app, when I noticed that, in windowed mode, when I use the close button, the window closes. However, I have no idea how to catch that in my custom rendering loop!

I tried monitoring the message pump for a WM_DESTROY, but that doesn't work. Does ogre fire an event when the window closes? If so, what? In ExampleApplication the framelistener handles exiting (via capturing the mouse.) I need to ensure the "X" in the corner notifes my app that the party is over.
User avatar
zarthrag
Greenskin
Posts: 128
Joined: Sat Jul 24, 2004 9:07 am
Location: Tulsa, Oklahoma

Post by zarthrag »

Doh!

Ogre::RenderWindow::isClosed ()