Results 1 to 4 of 4

Thread: OpenGL headers: gl.h & glext.h

  1. #1
    Senior Member Frequent Contributor marcus256's Avatar
    Join Date
    Aug 2001
    Location
    Sweden
    Posts
    764

    OpenGL headers: gl.h & glext.h

    My problem:

    I use MinGW (for Windows) which has its own gl.h file with minor support for extensions (some extensions are in there, but not the function typedefs for the extensions).
    I downloaded the glext.h file form oss.sgi.com that seems to be fairly complete (only lacks some ATIX extensions, which are probably not official anyway). The problem is that my gl.h file and the glext.h file is in bad conflict, meaning that I can not use extensions at all.

    Now, I can rewrite my gl.h file and remove all the extensions from it so that it is compatible with glext.h, but what is the real solution? I want my program to compile with other people's compilers and include files aswell? Is there an official, clean, gl.h file, just as there is a glext.h file?

    /Marcus

  2. #2
    Senior Member Regular Contributor
    Join Date
    Feb 2001
    Location
    Australia
    Posts
    431

    Re: OpenGL headers: gl.h & glext.h

    Mesa's probably got a nice clean gl.h. Look for it with google - it's at sourceforce IIRC.

    Hope that helps.

  3. #3
    Senior Member Frequent Contributor marcus256's Avatar
    Join Date
    Aug 2001
    Location
    Sweden
    Posts
    764

    Re: OpenGL headers: gl.h & glext.h

    Originally posted by ffish:
    Mesa's probably got a nice clean gl.h. Look for it with google - it's at sourceforce IIRC.
    Thanks. Tried it, but it also follows the same standard:
    1) declare flags that extensions are supported
    2) define extension tokens
    3) define extension prototypes
    4) does NOT define extension function typedefs

    => conflict with glext.h

    Am I doing this the wrong way?

    As I see it, it would all work if I could include glext.h BEFORE I include gl.h (so that glext.h would have priority over gl.h), but that is not possible since glext.h needs the typedefs in gl.h.

    /Marcus

    [This message has been edited by marcus256 (edited 08-29-2001).]

  4. #4
    Senior Member Frequent Contributor marcus256's Avatar
    Join Date
    Aug 2001
    Location
    Sweden
    Posts
    764

    Re: OpenGL headers: gl.h & glext.h

    Solved!

    I used the gl.h file from the MESA distribution, and made a very small change to it (so that it treats GL_ARB_multitexture as an extension that is declared in glext.h, just as it does with all the other extensions).

    /Marcus

Similar Threads

  1. OpenGL 2.1 Headers
    By RGHP in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 09-10-2007, 08:02 PM
  2. glext.h with OpenGL 2.0 prototypes
    By Mega in forum OpenGL: GLSL
    Replies: 2
    Last Post: 10-14-2004, 03:56 AM
  3. glext for OpenGL 1.4
    By mmm in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 08-03-2002, 07:33 PM
  4. Headers/Lib for Opengl 1.3
    By Devulon in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 02-22-2002, 09:58 AM
  5. OpenGL headers are gone
    By in forum OpenGL: Linux
    Replies: 2
    Last Post: 07-31-2001, 05:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean