Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 07-12-2004, 05:12 PM   #1
Registered: Aug 2002
Distribution: Debian
Posts: 540

Rep: Reputation: 32
Why do you use GLUT?

I am just curious why so many people use GLUT? I see SO many problems with it not only on this board, but all over the net. Not to mention all the problems I have had with it.

Is it just because people don't know about SDL? SDL is easier to use, or just as easy. So why then do so many people use GLUT when it is crap? Please post here the resons you have/are using GLUT in your programs so that my curiosity can be satisfied.

Thanks in advance for your juicy replys!

Last edited by The_Nerd; 07-12-2004 at 05:14 PM.
Old 07-12-2004, 05:47 PM   #2
Senior Member
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
this is one reason why Commercial Gaming in Linux is headed Nowhere.
some games need glut, some need SDL......
and in some games you have to install "openal" if you want sound.......
and I looked into the racing game "torcs" requires this "plib" crap........blah........we need to find a standard and stick with it, and NOT
have all this extra nonsense!!
Meanwhile in Windows, you pop in the CD, install and play, no having to search the WEB for a bunch of extra garbage........
Old 07-13-2004, 08:30 AM   #3
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 32
Glut is used in the examples in the RedBook, which I think is part of the reason it is so wide-spread. While,I agree that Glut isn't the most flexible of cross-platform windowing systems for OpenGL, it is good for putting together quick little apps for the purpose of testing OpenGL specific code.

There is another cross-platform windowing system called GLFW that is developed by one of the people over at the OpenGL boards. I've only looked at it briefly, but it seems to be a pretty decent API. Likewise, I've only looked at SDL a little too, and it didn't really impress me that much. I haven't looked at either enough to really make an objective opinion, though.

For my own apps, I tend to either use Glut if I'm going to just make a quick little demo that I want to run on Windows or Linux, or I'll use OS specific calls like wgl* and glx*. The last little app I was writing, I actually used OpenGL with Xt widgets, because I wanted to learn a bit more about programming stuff in X w/o a high-level abstraction library.

I use Glut for the quick little demos because it's something I know already, and since I just want to write a quick little demo, I don't take the time to learn SDL or GLFW better. I guess I might be kind of unique, in that I like understanding the lower level APIs, though, and I'm not so interested in learning a bunch of abstraction layers.

I've thought a bit about writing my own cross-platform Windowing library, not so much because we need another, but because then I could have a cross-platform library that would be my own, and it would be a good learning experience.

Last edited by deiussum; 07-13-2004 at 08:31 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
GLUT yogotie Programming 4 05-05-2005 08:17 AM
how to install GLUT 6u4nYu Linux - General 11 12-16-2004 10:23 PM
glut BrandonTurner Linux - Software 5 08-21-2004 03:46 AM
Glut 3.7 login365 Linux - Software 7 11-01-2003 04:56 AM
Glut???? FXRS Linux - Software 5 07-23-2003 07:18 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:44 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration