GL_ARB_multitexture on Solaris/Sparc OpenGL

Tim Angus tim at ngus.net
Fri Oct 28 10:45:47 EDT 2005


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.

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

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);





More information about the quake3 mailing list