( was sdl-config doesn't include the OpenGL library in --libs) --use-opengl

Hello !

Does SDL on Mac OS X really need OpenGL by default ?

As we are going close to the next stable Release
would it be possible to add a --use-opengl to
sdl-config ? That would make it easier for people
as the names for the OpenGL Lib is different on the
systems.

CU

As we are going close to the next stable Release would it be possible
to add a --use-opengl to sdl-config ? That would make it easier for
people as the names for the OpenGL Lib is different on the systems.

This has been discussed before. If I remember correctly, adding this
was opposed, though I can’t remember exaclty why. I believe it had
something to do with the varied GL libraries someone may have on their
system. It should be in the archives somewhere (in fact, I asked about
this a while back).

Personally, I’d like to see this kind of thing in sdl-config, but the
majority opinion seems to be that opengl should be linked in at runtime
using the SDL gl-library loading function.On Thu, May 11, 2006 at 02:21:20PM +0200, Torsten Giebl wrote:


Steaphan Greene
GPG public key: http://www.cs.binghamton.edu/~sgreene/gpg.key.txt
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20060511/67e8f0ef/attachment.pgp

Calling SDL_GL_LoadLibrary() with NULL as argument correctly loads the
system OpenGL library at run-time, in a portable way. IIRC it’s not
documented, dunno why…

OpenGL should never be linked at compile-time, because you have to
check if the appropriate OpenGL version or extensions are available
before using any function that depends on them. This is impossible to
do prior to execution. SDL provides the system-independent
SDL_GL_GetProcAddress() function to load OpenGL calls.On 5/11/06, Torsten Giebl wrote:

Hello !

Does SDL on Mac OS X really need OpenGL by default ?

As we are going close to the next stable Release
would it be possible to add a --use-opengl to
sdl-config ? That would make it easier for people
as the names for the OpenGL Lib is different on the
systems.

  • SR