#### Archived

This topic is now archived and is closed to further replies.

# How to use GLUT

This topic is 5935 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

##### Share on other sites
I''m afraid you''ve made a fool of yourself. You see, GLUT is open-source. You can download it and even modify the code slightly if you wish. So if you had bothered to find out more about GLUT, you might have known...

-----------------------------
Direct3D vs. OpenGL
The sad thing about artificial intelligence is that it lacks artifice and therefore intelligence.

Democracy is where you say what you want and do what you''re told.

##### Share on other sites
I know plenty about glut - that''s why I don''t use it ...

##### Share on other sites
quote:
Original post by Promit
I''m afraid you''ve made a fool of yourself. You see, GLUT is open-source. You can download it and even modify the code slightly if you wish. So if you had bothered to find out more about GLUT, you might have known...

Bingo.

##### Share on other sites
quote:

DON''T USE GLUT

The problem is obviously not with GLUT. GLUT is so simple that if you can''t figure out how to use it, you have no business trying to use OpenGL.

GLUT is a good tool for beginners or anyone who needs cross platform support and can live within the constraints of the GLUT implementation (or modify the code). I had a class where I needed the project to run on Solaris, but I wanted to program at home in Windows and Linux -- it would have been very painful to do without GLUT.
quote:

Part of programming is that any individual has to learn about the platform(s)

I had niether the time nor the inclination to learn Solaris programming in 1 week. The whole point of having something like glut is that you can write code without worrying about where its running. The same program compiled and ran flawlessly under linux, windows, and solaris. I assume it would work on any other platform with a GLUT implementation. True its not for programming quake 3, but it has its uses. Choose a tool that is appropriate to your task.

##### Share on other sites
GLUT is nice in that it lets you concentrate on the important parts of your game in the beginning. What''s more important, having perfect keyboard handling right off the bat, or having drawing code that works?

Once you get the drawing code up & running, you can put it into a platform dependent framework.

I find it so much easier to throw up prototype opengl stuff in glut though.
You wanna do some quick test? Glut is super easy.
Who cares about getting a pixel format descriptor and a window class and all that crap when you can''t even draw a triangle?

##### Share on other sites
As usual, it''s horses for courses. GLUT is fine when you want to concentrate on getting the job done, rather than worrying about mastering the platform. The same can be said of VB, MFC etc.
I think what Shag is getting at is people, with little or no programming experience, using these libraries to help them get started, possibly getting some impressive, if simple results, and then having unrealistic expectations about what they can actually achieve (or worse believing they are King Shit of Turd Hill,) without learning more about the underlying platform and API''s.
As with all these things sooner or later you need to, or want to, step out of the environment they provide, and thats when a sound knowledge of what goes on under the covers really counts.

Add my $0.02 to the pot. Slightly shrimpy smell == unsafe breadbin #### Share this post ##### Link to post ##### Share on other sites This argument sounds like me to a T :-), apart from i know i cant ''program quake3 but better''..... I have had no previus knowledge of open_gl or how it works but i have used libraries such as GLUT to help me achieve some pretty impressive results with ease. (impressinve for me anyway) So what, if im not learning programming the propper way, im enjoying doing what im doing, and that is the main thing...whats the harm in it. I dont think there really is a backwards step once you have started. Take this scenario... 1/I start learning ''the propper way'' with how everything works 2/I dont see many results to keep me interested. 3/I get bored and give it up For me doing it ''the propper way'', i will not learn, perhaps for others they will. Lee #### Share this post ##### Link to post ##### Share on other sites As usual there are no absolutes in life or as the old saying goes there is more than one way to skin a cat. But don''t discount everything this fellow says despite that glut is a great tool and a great way to start learning graphics. He is right there are no substitutes for the basics. I use a lot of high level libraries as well and am constantly frustrated with bugs that I do not understand because I don''t understand the way the libraries function. Understanding the framework on which opengl is built could help a lot. But let''s be realistic: The reason people like me never learn the basics is because there is no good resources out there for learning the stuff. Cash management and binary math...how many decent searches will you come up with on google with key words like that. Not many believe me I''ve tried. Perhaps we can pointlessly spend our money on books that cost 50-100$ a pop and half the time only end up with half the info we need to get the job done. further more whoever has the knowledge to write these texts are so damn brilliant that you can''t even understand what they are talking about.

Everything starts at a higher level because people want results and they want them fast.

Screw being thorough, this is America baby: land of fast-tracks and easy riches.

So is he right? I tend to agree, but what other choice do we have even if we do want to understand the ins and outs of the platform. Until someone can give me a good way to procure the basics for graphics programming I’ll stick to GLUT.

out

##### Share on other sites
my number of glut programs written in the last week
3 (latest yesterday not finished yet)
ny number of programs written in win32 in the last year
2

http://uk.geocities.com/sloppyturds/gotterdammerung.html

• 10
• 17
• 9
• 14
• 41
• ### Forum Statistics

• Total Topics
631068
• Total Posts
2997740
×