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: How to create a 2.1 context?

  1. #1
    Intern Contributor
    Join Date
    Jan 2001
    Posts
    84

    How to create a 2.1 context?

    I've pretty familiar with OGL 1.1, but I'd like to learn 2.1. I've seen some code floating around somewhere quite a while back, but I can no longer find it. Most of the tutorials I can find are still using 1.1. Can someone point me in the right direction?

  2. #2
    Junior Member Regular Contributor Mars_999's Avatar
    Join Date
    Mar 2001
    Location
    Sioux Falls, SD, USA
    Posts
    244

    Re: How to create a 2.1 context?

    ah 2.1 is the same context as 1.1 you need to use extensions to use GL2.1 features and a graphics card that has support e.g. Nvidia GF 8series and newer....

    Now GL3.1 and GL3.0 yeah you need a new context to play with the new version of GL... I am guessing you meant that?

  3. #3
    Intern Contributor
    Join Date
    Jan 2001
    Posts
    84

    Re: How to create a 2.1 context?

    Possibly. I thought I remember seeing something that was vastly different than a 1.1 context. Maybe it was a 3.0 context.

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

    Re: How to create a 2.1 context?

    You would have to create a GL 1.1 just like you have already been doing. Did you read Getting Started in the Wiki?
    http://www.opengl.org/wiki

    GL 3.0 is a different story
    http://www.opengl.org/wiki/OpenGL_3....ting_a_context
    ------------------------------
    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
  •