Re: X11 GL vs. OpenGL Framework
Re: X11 GL vs. OpenGL Framework
- Subject: Re: X11 GL vs. OpenGL Framework
- From: Yarden Livnat <email@hidden>
- Date: Mon, 13 Jan 2003 14:25:03 -0700
>On Monday, January 13, 2003, at 12:13 PM, Yarden Livnat wrote:
>>What is the relation between the libGL in X11 and the OpenGL framework ?
>
>libGL links against OpenGL.framework. The glFoo entrypoints seen by X11 applications are those exported by the framework.
>
>>
>>for example, I have a package (OpenSceneGraph) which links against
>>the framework. I now want to use Qt (the GUI from Trolltech) which
>>is an X11 distribution (I don't have the native Qt). For now, I just
>>changed OpenSceneGraph to link against the X11 libGL. However, can
>>one use X11 with apple OpenGL framework ? and what if GLX is also
>>required ?
>
>I'm not exactly sure what you're trying to do. But if you're trying to take a native GL app and make it into an X11 GL app by linking against libGL instead of OpenGL.framework, that isn't going to work
OpenSceneGraph is a graphics library which links against libGL on unix
and against OpenGL.framework on OSX. I can modify it to link against
GL on the Mac and it will work fine.
I now want to create an application which uses OpenSceneGraph +
Qt (the X11 version of this GUI) + my own OpenGL code. Qt is cross
platform so I can compile the same code on OSX, Linux and SGI Irix.
If I use the Qt qmake utility to create the make files (and thus can use
the same tool on all of these different platforms), it will link against
the X11 GL (as it is an X11 package), in other words, my app will be links against the X11 GL and the OpenSceneGraph which itself is linked against the OpenGL framework.
the question is can an application survive this ? (both lib and framework)
As I said, in this particular case I can change the OpenSceneGraph lib
to link against X11 GL and thus the problem is not critical but I was
wondering about the general case.
if libGL is linked against OpenGL.framework then what happen it I call
a function that is defined only in the OpenGL.framework ?
Yarden
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.