Hi Robert,
thanks for your valuable infos regarding the new osgViewer-library.
Robert Osfield schrieb:
I'd rather not have major difference for full screen mode vs windowed
mode.
Me too, the code in Producer got very complicated. For now I implement
the carbon route with "fake" fullscreen (a window which has the same
dimensions as the screen) this is simpler and cleaner. For real
fullscreen-mode we can implement a GraphicsWindowOSXCGL which implements
the CoreGraphics-way without windows and without the windowmanager.
So people can switch between the two implementations and the examples
work out of the box the carbon way.
I started implementing the GraphicsWindowOSXCarbon class, and now I have
some more questions:
* I need a way to get informed, if the window goes to "fullscreen"-mode
so I can hide the menu-bar and the dock. Or should I hide the
dock/menubar if the window is fullscreen-sized (looks complicated)?
* How to handle window-closing via the window-manager? in the
X11-implementation you set the _valid and _realized-flags to false. On
Mac OS X you can quit an app also via the menu or via socalled
AppleEvents, how should I implement them, I see no way to set a
quit-flag like in Producer. (Ok, I can inject an Esc-key into the
event-queue, but this seems rather hackish.)
thanks in advance!
Stephan
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/