Re: Darwin's different GL naming scheme - configure?
Brian Paul <[email protected]>
| Newsgroups | gmane.comp.graphics.chromium.devel |
|---|---|
| Message-ID | <[email protected]> |
Christopher Waters wrote: > Due to the way Apple has OpenGL organized, all of the GL header files > are in different locations than on other platforms (GL/ -> OpenGL/ and > GLUT/) > > Up until now, I've been using symbolic links to point the compiler to > the right gl header files, but I'm trying to get around that. As of > right now, my best thought is to go through and encase all of the > includes with something like this: > #ifdef DARWIN > #include <OpenGL/gl.h> > #include <GLUT/glut.h> > #else > #include <GL/gl.h> > #include <GL/glut.h> > #endif > > What would be the best (portable) method of doing this without having to > add these to every single file that needs it? (cr/progs/ especially) > I'm thinking a configure script would help for this, as well as other > things, but I haven't seen any mention of one for chromium.. Ick. Every GLUT program I've seen uses #include <GL/glut.h>. If that doesn't work on Darwin, someone screwed up there. Perhaps a work-around for Chromium would be to make symlinks to Darwin's gl.h, glut.h, etc in Chromium's cr/include/GL directory. That way, #include <GL/gl.h> and <GL/glut.h> could be satisfied by Chromium's include/GL directory. Could the symlinks be automatically made during Chromium's build process? -Brian ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl