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

Thread: glut lib vs. glx lib.

  1. #1
    Intern Newbie
    Join Date
    Mar 2002
    Location
    pittsburgh
    Posts
    42

    glut lib vs. glx lib.

    can anyone tell my why prefer one to the other?. Incus

  2. #2
    Intern Newbie
    Join Date
    Apr 2002
    Posts
    48

    Re: glut lib vs. glx lib.

    First off...this is rather unix question so I would sugest you post it on the linux forum.
    Second.
    glut is a ( dead ) helper lib - platform independant.
    GLX is a lib to integrate the ogl into the X stream protocol.
    So you can't use only GLX - need to use X-server libs too.
    But it gives 100% control over the stuff.
    GLUT is good when you want to learn the ogl.
    In my opinion - want to be serious - use native API not helper wraper libs

    and third.
    GLUT encapsulates the stuff to create windows etc on the system...so on unixes it will use GLX + X, on win32 WGL and Win32 api etc

  3. #3
    Intern Contributor
    Join Date
    Jun 2002
    Location
    Alamogordo, NM USA
    Posts
    67

    Re: glut lib vs. glx lib.

    Very, very true. Glut and other wrapper APIs are good for starting out and wanting to get some results fast, but sooner or later you NEED to learn the core system API calls of your host systems Glx on Unix, wgl on Windows. Keep your own calls to any system specific functions encapsulated on your own and when you port you only have to write those portions. And don't be afraid to steal, errr... borrow, code from the public domain.
    Japanese Proverb: "Talk about things of tomorrow and the mice in the ceiling laugh."

Posting Permissions

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