Hi,
I am looking at the current osgViewer-source and have several question
regarding an OS X implementation I want to code.
1.) How is fullscreen handled by osgViewer? One borderless window which
has the same size as the screen? On OS X there is a special
fullscreen-mode (CGL) which bypasses the window-server (which composites
all the windows in OpenGL and could slow down osg) but this has a
substantial different API than the windowing-stuff.
2.) I see a GraphicsWindowCocoa-file -- I think cocoa will not work for
implementing this stuff, because in Cocoa you give the control over the
main-loop to the system (see the osgSimpleViewerCocoa-example, main
consists of NSApplicationMain()) Next you cannot poll the os for events,
you'll get notified by the os, if new events are available, so I think
this will also make it harder to integrate osgViewer with cocoa.
3.) Is there a way to switch between different implementations at
runtime? (for example for fullscreen mode I want to use SimpleViewerCGL,
and for windowed mode I want to use SimpleViewerCarbon)
I am not a Cocoa-expert, does anybody know If I am wrong? Nevertheleess
I will start coding a Carbon-implementation of SimpleViewer the next weeks.
thanks for your feedback,
Stephan
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/