oglbase-discuss,

First, kudoos to Jon and other contributors for the "OpenGL Application
Binary
Interface for Linux" so far.

I have one concern about <GL/glext.h>.

I'd like some heuristic for determining when <GL/glext.h> can be expected to
exist.  My
concern comes from trying to distribute a large body of OpenGL code (the
GLUT
source code distribution) that needs to compile without errors on a large
collection
of operating systems and OpenGL installation types.

My concern is that C gives an error if you try to include a file that does
not exist.
Lots of OpenGL implementations, particularly old installations, will not
have <GL/glext.h>.

Can we amend Section 4 with something like:

----------
4.8.  The <GL/gl.h> header must include the preprocessor symbol GL_HAS_GLEXT
defined to "1" indicating that a <GL/glext.h> can be expected to exist.  The
intent of the
GL_HAS_GLEXT preprocessor symbol is to avoid compile errors on old OpenGL
header installations where <GL/glext.h> may not exist.  This makes it
possible
to determine when <GL/glext.h> exists for inclusion, enabling apps to do
something like:

#include <GL/gl.h>
#ifdef GL_HAS_GLEXT
#include <GL/glext.h>
#endif
----------

- Mark

Reply via email to