On Wed, May 03, 2000 at 08:25:35AM -0600, Thomas Roell wrote:
> There is a problem with the idea of including OpenGL 1.2 defines in
> glext.h. Basically the ABI requires already gl.h to have all of those
> defines regardless, of whether it's a 1.2 implementation or not.
Yes, but glext.h is also intended for use on all platforms,
including those where 1.2 drivers are available but e.g. gl.h will only
be updated when Microsoft updates OPENGL32.DLL.
> For our case (shipping a 1.1 libGL.so, we have added all of those
> defines, but do not define GL_VERSION_1_2), this leads to redefined
> defines.
If the library exports the 1.2 entry points, the header file should
define VERSION_1_2 whether or not it's supported at runtime. If the
library does not export the 1.2 entry points, it will not be ABI
compliant in any event, so why put unprotected symbols in the header?
Jon Leech
SGI