[quake3] Re: GL_ARB_multitexture on Solaris/Sparc OpenGL

vincent at cojot.name vincent at cojot.name
Fri Oct 28 11:06:18 EDT 2005


On Fri, 28 Oct 2005, Tim Angus wrote:

> On Fri, 28 Oct 2005 16:06:00 +0200 (CEST) vincent at cojot.name wrote:
>> 1) "#ifdef __sun" some stuff in linux_glimp.c
>> 2) #define PFNGLMULTITEXCOORD2FARBPROC et al for Solaris in qgl.h
>> (ugly).
>> 3) Create a solaris_glimp.c and work from there...
>
> I think 3) is a bad idea in general unless there is a lot of stuff that
> needs to be rewritten. I actually prefer 2) over 1) because you only
> need to do it in one place and it doesn't uglify the code where the
> extensions are loaded.

*Nod*. 3) has created a maintenance nightmare for us/me on ioq2 where the 
Linux people would patch and commit to CVS without backporting the diffs 
to the Solaris files, thereby breaking the port.. I'll go with 2) as per 
your recommendation and remove the solaris_glimp file I just created.. :)

> I'm slightly suprised Solaris GL headers don't have the definitions --
> AFAIK they should be in GL 1.2 and up.

Solaris OpenGL has the GL_ARB_multitexture definitions (lots of 
glMultiTexCoord*) but these things "PFNGLM" do not appear anywhere..

> If it helps here are the relevant lines from my (nvidia) GL headers:
> typedef void (APIENTRYP PFNGLMULTITEXCOORD2FARBPROC) (GLenum target,
> GLfloat s, GLfloat t);
> typedef void (APIENTRYP PFNGLACTIVETEXTUREARBPROC) (GLenum texture);
> typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum
> texture);

Do you want me to post the Sun OpenGL headers somewhere so we can examine 
them and maybe devise some more portable way to do this?

-- 
,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,
Vincent S. Cojot, Computer Engineering. STEP project. _.,-*~'`^`'~*-,._.,-*~
Ecole Polytechnique de Montreal, Comite Micro-Informatique. _.,-*~'`^`'~*-,.
Linux Xview/OpenLook resources page _.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'
http://step.polymtl.ca/~coyote  _.,-*~'`^`'~*-,._ coyote at NOSPAM4cojot.name

They cannot scare me with their empty spaces
Between stars - on stars where no human race is
I have it in me so much nearer home
To scare myself with my own desert places.       - Robert Frost





More information about the quake3 mailing list