On Wed, 15 Sep 1999, Brian Paul wrote:
> > One place where this would be of immediate and enormous use
> > would be in detecting the XMesaSetFXmode call...but that doesn't
> > obviously fall into any of the scope of this stuff.
> >
> > Could this call now be considered a GLX extension so I can
> > test for it sensibly?
> >
> > There is currently no way to check for the existance of this -
> > even at compile time!
>
> The XMesaSetFXMode() function was added in Mesa 2.6. You can
> test the XMESA_MAJOR_VERSION and XMESA_MINOR_VERSION preprocessor
> symbols at compile time to see if you have a version >= 2.6.
OK - but those are on for NON-3Dfx Mesa too - so when the
target hardware is (say) an nVidia board, the function gets compiled
into my code anyway.
The GL/gl.h file is identical on 3Dfx and nVidia equipped machines.
> Similarly, at runtime you can call XMesaGetString(XMESA_VERSION)
> to get the runtime version number.
...and I never get to runtime because the function isn't in
the library for nVidia/Mesa and the runtime linker barfs.
I can't even search for the function at runtime using the
shiney new gl{u,X,}GetProcAddressEXT stuff because it's
not a glu/glX/gl function - and even if it were, I'd
still be required to search glGetString(GL_EXTENSIONS)
to see if it was valid.
> I suppose an XMesa extension would have been better.
A GLX extension would make most sense I think.
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
_______________________________________________
Mesa-dev maillist - [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev