Archived

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

Pure Krome

[Newbie] OpenGL or Glut?

Recommended Posts

Hello All. -- PLEASE DO NOT START A FLAME WAR -- Researching various tutes and code snippets, I found various people using either one or the other. Is there any reason why you would use EITEHR GLUT or OPENGL? Can they be used together? What are the differences? And why would people use one over the other? Thank you again folks =) -PK-

Share this post


Link to post
Share on other sites
you did not resarch enough

your question must be

opengl with or without glut...

glut are a set of function which makes opengl programming easier, but hides some programming aspects.

and i dont think glut is avaialbe on all platforms ??

Share this post


Link to post
Share on other sites
What platforms are GLUT not available for? Part of the reason to use GLUT is to make your apps easy to port across platforms. GLUT is available for Linux, BeOS, MacOS, and Windows, and probably more.

Morgan

Share this post


Link to post
Share on other sites
So this would mean it would be a wise move to program with GLUT in your 3D programs, so portability would be easier later on and the code, in general, also easier to program ?



-PK-

Share this post


Link to post
Share on other sites
Another thought I just had....

Why hasn''t NeHe chosen to use GLUT in his tutorials. I have only gone upto tute 8 or so, but so far there are no references to GLUT in the code.....



-PK-

Share this post


Link to post
Share on other sites
Because some people believe that glut sucks. I personaly have no problem with it since none of my games (yet) require a whole lot of optimizations. None the less, I use OpenGL under a Win32 skeleton.

JoeMont001@aol.com

Share this post


Link to post
Share on other sites
Usually people who develop only under Windows or only under MacOS don''t like GLUT because they don''t have as much control over what is going on and they can''t optimize it. Although I like to code specifically for MacOS or Windows when I have the time, I do still enjoy GLUT because a simple recompile on either platform will wield the same results with no alteration of the source (well, except for paths for files, but that''s just because of simple differences in the way the OS''s work). And, yes, it is much easier to use and learn for most people.

Morgan

Share this post


Link to post
Share on other sites