Re: OpenGL in GLX Window with Performer 1.2?

New Message Reply Date view Thread view Subject view Author view

Ed Millard (millard++at++hawkeye.newport.sgi.com)
Thu, 11 May 1995 16:46:01 -0800 (PDT)


>
>
> Hello all,
>
> Is it possible to render OpenGL code into an GLX window
> from within a Performer 1.2 application. I have tried
> to hack xwin.c from ligpfutil by adding the appropriate
> (I think) calls for glXCreateContext and glXMakeCurrent
> but I keep getting the runtime error :
>
> GL: Error: can't connect to /dev/opengl
>
> I could wait for Performer 2.0, but I'd like to port as
> little code to OpenGL as possible.
>
You cant mix OpenGl and IrisGL in the same app or the same
window. There are all kinds of collisions in symbols and contexts.
So you would have to fork a different process and render to a different
window to use OpenGL with Performer 1.2. Probably better to
just wait for Performer 2.0. You can write IrisGL code
now and run it through the 4Dgifts toogl translator which translates
IrisGL source to OpenGL . This presumes your using C and that your willing
to do a little cleanup work after the translation.

If your not mixing IrisGL and OpenGL and you get this error message
it usually means you have prbolems in your /dev directory or
your trying to run OpenGL on a machine that doesn't support
OpenGL.

-- Ed


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:29 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.