On Tue, 23 Nov 1999, Thomas Roell wrote:
> Now still one lingering issue. The document states that even a
> libGL.so.1.1 has to have include files that export OpenGL 1.2, GLU 1.3
> and GLX 1.3 entry points.
Yes - of course.
Just because I happen to have OpenGL 1.1 installed on my dev machine,
doesn't (or shouldn't) stop me from writing programs that can take
advantage of OpenGL 1.2 features...providing that I check for them
at run time using glGetString(GL_VERSION) and fetch their addresses
with GetProcAddress.
However, your header file needs to define GL_VERSION_1_1 and *NOT*
GL_VERSION_1_2 so that 'traditional' OpenGL programs (that don't
know about GetProcAddress) will not try to statically link to
OpenGL 1.2 functions.
> Is that really wise to do ?
Yes. It's fine (for correctly written programs at least).
I suppose leaving out the "entry points" (ie function prototypes)
would be OK because -
* Traditional programs would conditionally compile OpenGL1.2
calls - and without GL_VERSION_1_2, should turn those calls
off at compile time.
* Linux OpenGL Base programs will be using glGetString(GL_VERSION)
and GetProcAddress at runtime...so they don't need the function
prototypes anyway.
However, you absolutely must include the #defines and typedefs
from OpenGL 1.2 - so you might as well drop in the prototypes
as well. (I often 'grep' gl.h when I can't remember the exact
parameters of a function - and it would be nice to have the 1.2's
present).
If you don't do that then software developers (who will presumably
want to target Mesa...an OpenGL 1.2 clone) won't be able to use
your OpenGL 1.1 for their development work.
...and besides, if that's what the document states then it's a
standard and you should adhere to it even if it's unnecessary!
> If so, is there a prototype available...
Presumably Mesa has all the 'standard' OpenGL 1.2 functions
defined in gl.h...however, the optional imaging stuff presumably
isn't there.
Steve Baker (817)619-2657 (Vox/Vox-Mail)
Raytheon Systems Inc. (817)619-2466 (Fax)
Work: [EMAIL PROTECTED] http://www.hti.com
Home: [EMAIL PROTECTED] http://web2.airmail.net/sjbaker1