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
    2,978

    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

Similar Threads

  1. How to run opengl in unix?
    By karthickumar M in forum OpenGL: Linux
    Replies: 4
    Last Post: 07-12-2005, 01:36 AM
  2. Unix and OpenGL in C++
    By in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 12-19-2001, 02:08 AM
  3. OGL in unix/linux
    By in forum OpenGL: Linux
    Replies: 3
    Last Post: 12-06-2001, 12:32 PM
  4. Available for Unix?
    By Corey_M in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 10-27-2001, 05:13 AM
  5. OpenGL in Unix
    By mochi in forum OpenGL: Basic Coding
    Replies: 11
    Last Post: 07-04-2001, 06:38 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