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 4 of 4

Thread: Version of opengl32.lib

  1. #1
    Intern Contributor
    Join Date
    May 2002
    Location
    AUSTRIA
    Posts
    83

    Version of opengl32.lib

    Hi!
    I want to use glDrawRangeElements in my program. I am using winXP and MS Dev. I am linking the opengl.lib from the MS Dev installation, but this version doesn't know glDrawRangeElements. Where can i get a newer version of the opengl-lib??
    Thanks
    Juergen

  2. #2
    Senior Member OpenGL Guru knackered's Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    3,032

    Re: Version of opengl32.lib

    You should be linking to opengl32.lib for a start.
    I've never used drawrangeelements, but I think it's a 1.2 extension (MS stopped updating win32 opengl at 1.1, I believe) - could be wrong. You need to use wglGetProcAddress to get a pointer to the function.
    Knackered

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

    Re: Version of opengl32.lib

    That is a 1.2 function. glDrawElements was in 1.1

    glext.h is needed (developer.nvidia.com and http://www.ati.com/developer)

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

  4. #4
    Intern Newbie
    Join Date
    Apr 2002
    Location
    Split, Croatia
    Posts
    43

    Re: Version of opengl32.lib

    Get glext.h, wglext.h and others headers from official OpenGL extension registry at http://oss.sgi.com/projects/ogl-sample/registry/ .
    All extensions declarations are in this file.


    [This message has been edited by mproso (edited 06-02-2002).]

Posting Permissions

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