Re: [Plib-devel] OpenGL headers (was: Updated configure script in CVS)
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2002-08-30 23:33:16
|
Sebastian Ude wrote: >>can't that just be >> >>#ifdef __APPLE__ >># include <OpenGL/glu.h> >>#else >># include <GL/glu.h> >>#endif >> >>AFAIK >><GL/glu.h> #includes "gl.h" and >><GL/glut.h> #includes "glu.h" > Well, the examples from the red and the green book always #include *both* > gl.h and glu.h (in this order). Yes. > The question is if it is said anywhere that glu.h *must* include gl.h. I don't think I've seen that said anywhere - but a more significant question is "Why are we including glu.h at all?" I doubt we are using GLU functions anywhere in the core package - and it's just one more annoying dependancy we could avoid. So I think we just need: #include <GL/gl.h> ...however, some of the example programs *do* use glu.h functions - so the problem has to be resolved there. However, it *is* defined that glut.h includes both gl.h and glu.h - so since (IIRC) we include glut.h in all of the examples and demos, we should be OK there too. I think the only file that's affected is ul.h - and didn't we just remove the #include <GL/gl*> from that file? ----------------------------- Steve Baker ------------------------------- Mail : <sjb...@ai...> WorkMail: <sj...@li...> URLs : http://www.sjbaker.org http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net http://freeglut.sf.net http://toobular.sf.net http://lodestone.sf.net |