Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 9 of 9

Thread: gl.h 1.5

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2003
    Posts
    21

    gl.h 1.5

    Where's a good place to get a header file (and possibly a .lib) for OpenGL 1.5. I checked with my card vendor (ATI) and I downloaded this glati.h thing, but I couldn't really make heads or tails of it.

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    3,115

    Re: gl.h 1.5

    If you're talking about Windows, then the header, import library and the dynamic link library is a part of Microsofts implementation of OpenGL on Windows, and they should provide new versions of these files. However, they don't, so 1.1 is the latest version available for those files.

    This is not a problem though, as you can do the job of the import libray yourself and load every function you need.

  3. #3
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: gl.h 1.5

    For the header, look for glext.h

  4. #4
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    3,115

    Re: gl.h 1.5

    Sounds like OP is looking for new versions of the library, so maybe one should point out that glext.h is an addon to gl.h, not a replacement for it.

  5. #5
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,749

    Re: gl.h 1.5

    Originally posted by ZbuffeR:
    For the header, look for glext.h
    Well, I wonder: does glext.h is providen with all opengl development kits ? I mean, I have it for Nvidia cards under Linux. But is it true for ATI, and for Windows/Mac ?

    It's for portability issues.

  6. #6
    Junior Member Newbie
    Join Date
    Oct 2003
    Posts
    21

    Re: gl.h 1.5

    This is not a problem though, as you can do the job of the import libray yourself and load every function you need.
    How does someone go about doing this, pray tell?

  7. #7
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    3,115

    Re: gl.h 1.5

    First you setup a function pointer, and then you load the function using wglGetProcAddress. wglGetProcAddress takes the name of the function, and returns the address to it. All necessary function pointer typedefs are defined in glext.h, which you can download from here .

    An example. Say you want to load the function glActiveTexture.
    Code :
    PFNGLACTIVETEXTUREPROC glActiveTexture = 0; // define a function pointer.
     
    ...
     
    glActiveTexture = wglGetProcAddress("glActiveTexture"); // load function pointer
    Now the function can be used as any other function.

    edit: Well, that's the really manual of doing it. You can also use pre-made libraries to do it. Like Glee .

  8. #8
    Junior Member Newbie
    Join Date
    Oct 2003
    Posts
    21

    Re: gl.h 1.5

    So is that like what GLEW does?

    BTW, thanks for everybodies help. I'm consistently impressed by this community!

  9. #9
    Super Moderator OpenGL Guru
    Join Date
    Feb 2000
    Location
    Montreal, Canada
    Posts
    4,421

    Re: gl.h 1.5

    Tried the FAQ?

    http://www.opengl.org/resources/faq/...g_started.html

    Yes, that's what GLEW does. There is a link on the FAQ.
    ------------------------------
    Sig: http://glhlib.sourceforge.net
    an open source GLU replacement library. Much more modern than GLU.
    float matrix[16], inverse_matrix[16];
    glhLoadIdentityf2(matrix);
    glhTranslatef2(matrix, 0.0, 0.0, 5.0);
    glhRotateAboutXf2(matrix, angleInRadians);
    glhScalef2(matrix, 1.0, 1.0, -1.0);
    glhQuickInvertMatrixf2(matrix, inverse_matrix);
    glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
    glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •