From: Chris P. <cj...@lo...> - 2003-07-11 00:16:55
|
On Thu, Jul 10, 2003 at 01:24:54PM -0500, Stephen J Baker wrote: > Brian Paul wrote: > > >Or, how about defining new FREEGLUT_<fontname> tokens which evaluate to > >((void *) aConstant) values like the WIN32 code does now? > > Yes - I guess so. (Although I wouldn't use 'FREEGLUT' as the prefix). The > nice thing about that is that at some point in the distant future, when > GLUT-classic is (hopefully) dead and buried, we can quietly change the > header to say: > > #define GLUT_BITMAP<whatever> FREEGLUT_BITMAP<whatever> > > ...and whilst that would prevent new programs compiled with this header > from running with GLUT, it would mean they were protected from subsequent > breakage under freeglut...and we could still have the old (nasty) code > inside freeglut to maintain binary compatibility with programs compiled > under both older versions of freeglut and GLUT-classic. > > This is easy to do - there is only one freeglut function to change. Yuck! There is an easy way to get around the possible future breakage and that is to put the real definitions of glutBitmapHelvetica* and friends into "GL/glut.h". There is an advantage to the way glut did things; It made for a better static library. If you statically link against freeglut you will get all the fonts included where as with glut you only get the ones you used. -- Christopher John Purnell | I thought I'd found a reason to live http://www.lost.org.uk/ | Just like before when I was a child --------------------------| Only to find that dreams made of sand What gods do you pray to? | Would just fall apart and slip through my hands |