Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: glut / glaux / glu ?

Hybrid View

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

    glut / glaux / glu ?

    what exactly is the difference between these include files? i've been using just glut.h as my only GL header, but i noticed NEHE and others use glu.h, gluax.h, etc instead. what's the benefit/difference?

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,797

    Re: glut / glaux / glu ?

    Nehe uses the Win32 API rather than Glut for the window creation for most of their tutorials. glut.h will include gl.h and glu.h for you. It doesn't use glaux.h, though. Nehe tends to only use glaux.h for the texture loading functions, which glut doesn't have.

    Glut is nice for easy window creation that is portable to other OSes. Using the Win32 isn't portable, but it gives you more control of the window.
    Deiussum
    Software Engineer and OpenGL enthusiast

  3. #3
    Junior Member Regular Contributor
    Join Date
    Mar 2000
    Location
    Aurora, Illinois, USA
    Posts
    217

    Re: glut / glaux / glu ?

    yup! to wrap it up

    gl.h - your main file that has all the functions that start with gl*

    glu.h - utility library that's supposed to help you when coding GL. (i.e. draw objects and setup perspective stuff, etc)

    glut.h - utility toolkit originally started by Mark ...? (forgot last name). help you write gui stuff

    glaux.h - old stuff, I wouldn't touch... not very well supported... write your own texture loading stuff, you'll be better off. I promise! + You can custimize them to fit your needs! and you'll learn too... that always helps.
    Navreet Gill [img]/forum/images/%%GRAEMLIN_URL%%/smile.gif[/img]

  4. #4
    Junior Member Regular Contributor
    Join Date
    Dec 2000
    Location
    Slovak Republic( Slovakia )
    Posts
    116

    Re: glut / glaux / glu ?

    Go to hell with GLUT.
    Better is glaux.
    Also it is originaly with OpenGL
    SDK.

  5. #5
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,797

    Re: glut / glaux / glu ?

    GLaux is windows only. The only thing I'd consider using it for is texture stuff, but as ngill said, you're better off using your own texture loading routines.

    If you had to write apps that compiled for both Linux and Win32, you'd probably change your mind about Glut, FoxDie.

    [This message has been edited by Deiussum (edited 02-12-2001).]
    Deiussum
    Software Engineer and OpenGL enthusiast

  6. #6
    Junior Member Regular Contributor
    Join Date
    Dec 2000
    Location
    Slovak Republic( Slovakia )
    Posts
    116

    Re: glut / glaux / glu ?

    I'm affraid it's not possible,because
    I don't like Linux.I have at one time
    Linux installed ,but it was
    my new nightmare.

  7. #7
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,797

    Re: glut / glaux / glu ?

    Just because you don't like Linux doesn't change the fact that glut is portable and glaux isn't. I don't care much for linux myself, but there have been times when I have needed to use it for school. It's pretty neive to discount the benefits of glut just because YOU don't like linux.
    Deiussum
    Software Engineer and OpenGL enthusiast

  8. #8
    Intern Contributor
    Join Date
    Oct 2000
    Location
    london, england
    Posts
    79

    Re: glut / glaux / glu ?

    Dont dis linux it is the greatest operating system i have ever used.

    LINUX a.k.a a programmers heven

    has features that MS can only dream of. Given its hard to learn to use it but it a crap load more powerfull and stable than any MS OS

    Zee
    Later

    Zee

  9. #9
    Intern Contributor
    Join Date
    Oct 2000
    Location
    london, england
    Posts
    79

    Re: glut / glaux / glu ?

    P.S.

    A lot of features in MS DOS/WINDOWS was stolen from LINUX/UNIX and others.
    Later

    Zee

  10. #10
    Junior Member Newbie
    Join Date
    Feb 2001
    Location
    Kettering, OH, USA
    Posts
    1

    Re: glut / glaux / glu ?

    Actually, DOS came out many years for Linux ever did and MS-Dos came out a few years before Linux. If you are referring to Unix as the source from which DOS branches, than you're correct, DOS uses a Command Line Interface. Aside from that I see no major similarities that DOS "stole". Sorry, I just thought I'd put in my 2 cents.

Posting Permissions

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