Re: [Plib-users] Building Plib on Mac OSX (Darwin)
Brought to you by:
sjbaker
From: Sebastian U. <ud...@ha...> - 2001-12-28 16:51:31
|
On Fri, 28 Dec 2001, re...@ze... (Reed Hedges) wrote: > Date: Fri, 28 Dec 2001 10:06:16 -0500 > To: pli...@li... > From: re...@ze... (Reed Hedges) > Subject: [Plib-users] Building Plib on Mac OSX (Darwin) > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > > Hi, I'm trying to build Plib on Mac OSX (Darwin). Has anyone else done > this? I am trying to use the standard Apple "OpenGL" framework, but it > is missing glx.h, which seems to be required. I have also had to do some > minor modification to Makefile and source. > If anyone has any info on Plib for Mac OSX, that woudl be great. Hmm ... well, we need glx.h on Unix / X11-Systems in order to determine whether there is a valid OpenGL rendering context. These are the appropiate lines which can be found in pu/pu.cxx, ssg/ssg.cxx and fnt/fntTXF.cxx: #ifndef WIN32 # ifndef macintosh # include <GL/glx.h> # else # include <agl.h> # endif #endif /* [...] */ static bool glIsValidContext () { #if defined(CONSOLE) return true ; #elif defined(WIN32) return ( wglGetCurrentContext () != NULL ) ; #elif defined(macintosh) return ( aglGetCurrentContext() != NULL ) ; #else return ( glXGetCurrentContext() != NULL ) ; #endif } I guess this has to be modified for Mac OS X ? - Sebastian |