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

Thread: Getting started on Unix

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2000
    Location
    Los Alamos, NM, USA
    Posts
    1

    Getting started on Unix

    I am attempting to add OpenGL to an existing program. However, when I call glXMakeCurrent(), I get a return of 0 (= error) and sure enough nothing is drawn by ogl. I have previously gotten a valid Display, Window and GLXContext (the args to glXMakeCurrent). I have successfully called
    glXQueryExtension()
    glXChooseVisual()
    glXCreateContext()
    Any help greatly appreciated. Oh yes, the same code runs successfully on NT using wgl* where I'm using glX* on Unix.

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

    Re: Getting started on Unix

    Hello

    I suggest you use (IF you can/want to) GLUT to handle windows. The code works on all platforms with no/minor modifications.

    You can find GLUT at http://reality.sgi.com/opengl/glut3/glut3.html

    GLUT is extremely wasy to use...

    Bob

Posting Permissions

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