Hi Robert,

Robert Osfield schrieb:
Perhaps we should add a APPLICATION_EXIT event or similar to
osgGA::GUIEventAdapter.  The GraphicsWindow could catch the events and
put them into the EventQueue and let the app decide what to do.   By
default the Viewer would set done to true in response to one of these
events.  Like this setKeySetsDone() this could be made an option to
say whether to set done to true or not.

Whether to exit should really be up to end user application though,
and event handler could catch this event and call exit() if so
required, or do whatever steps need to be taken to start the exit in motion.

I like the idea to have a special GUIEventAdapter for exiting the application, so osgViewer can be integrated nicely with different system-environments and the user has all flexibility to react to this kind of event.

just my 2 cents,

cheers,
Stephan
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to