Hi Eric, On Thu, Jun 26, 2008 at 3:01 PM, Eric Sokolowsky <[EMAIL PROTECTED]> wrote: > Okay. I haven't looked under the covers at osgViewer (having just moved to > osg 2.4 a month or so ago from osg 1.2), so it's good to know that those are > two pieces that need to be re-implemented. Are there any other pieces that > need to be looked at?
What you'll probably need to do is create the headers: include/osgViewer/api/Cocoa/GraphicsWindowCocoa include/osgViewer/api/Cocoa/PixelBufferCocoa And source files: src/osgViewer/GraphicsWindowCocoa.cpp src/osgViewer/PixelBufferCocoa.cpp Then add the Cocoa option into the Cmake build system. You'll also need to implement a WindowSystemInterface and register this with osg::GraphicsContext via a proxy. Have a look at the GraphicsWindowCarbon/X11.cpp for guidance on this. This interface class acts as the factory that creates the actual windows/pixelbuffers, and is implemented in the .cpp. All your platform specific stuff will be in the headers and associated .cpp's and won't propagate any further than this so its as self contained as it code be, and the build system - hopefully CMake will be malluable enough to handle the Objective C compilation. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

