On 30. Dec 2009, at 20:28, Stephen Furlani [via Software] wrote:
> I seem to be flooding the list with questions, sorry. It's the right place, no worries. > I'm having a bit of difficulty resolving all these different OpenGL APIs on > the Mac OS. The program I want to edit to put on Equalizer normally renders > to an NSOpenGLView. NSOpenGLView has a NSOpenGLContext. But the program > renders everything through a CGLContext: (I'm paraphrasing the code) > Since OpenGL is a state machine, if I set some glContext to be the > CurrentContext, it shouldn't matter what context it is. Equalizer then > handles the subsequent OpenGL calls to its RenderContext. > > Do I have it right? Yes. > Is there more refactoring that needs doing assuming I've setup my Client, > Server, Pipes, Nodes etc correctly? We are not yet supporting NSGL/Cocoa, but it should be fairly easy to implement. You need to implement the OSPipe and GLWindow interfaces with the correct code to keep Eq happy, mainly OSWindow::configInit, makeCurrent and swapBuffers should do the correct thing. The OSPipe has to set the pixel viewport on its eq::Pipe. HTH, Stefan. -- View this message in context: http://n2.nabble.com/Newbie-Question-Multiple-Mac-OpenGL-APIs-tp4233648p4249352.html Sent from the Equalizer - Parallel Rendering mailing list archive at Nabble.com.
_______________________________________________ eq-dev mailing list [email protected] http://www.equalizergraphics.com/cgi-bin/mailman/listinfo/eq-dev http://www.equalizergraphics.com

