Archived

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

include libraries???

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

If you intended to correct an error in the post then please contact us.

Recommended Posts

The tutorials here say to include.. #include <windows.h> #include <gl\gl.h> #include <gl\glu.h> #include <gl\glaux.h> but a few other place and opengl superbible say to just include #include <windows.h> #include <gl\glut.h> Doesnt look like there is any difference in function calls. Glut is newer than gl aux I know, but what changed?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
GLUT is sort of a wrapper of OpenGL, its the GL Utility Toolkit. I dont really know why it exists except it is suppose to make setting up OpenGL faster, but ummm, its already fast enough. Well thats all I know, I''m sure someone else knows the whole story. Oh and many of the functions are different, mainly you will just see glutDoSomething instead of glDoSomething.

Share this post


Link to post
Share on other sites
a) Those aren''t libraries, they''re headers.
b) GLaux should never be used, much less included .
c) GLUT is a utility kit for setting up the a ''window'' in a cross platform manner. It does not override any of the functionality of OpenGL. The GLUT header probably includes the GL and GLU headers.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
quote:
b) GLaux should never be used, much less included


Could you expound on this? I thought it was quite handy for loading bitmaps in, that is all i have used it for. Is it junk?

Share this post


Link to post
Share on other sites
quote:
Original post by Anonymous Poster
Could you expound on this? I thought it was quite handy for loading bitmaps in, that is all i have used it for. Is it junk?

b) It''s pretty platform specific, which kills half the point of OpenGL .
b) It''s buggy; It leaks memory.
c) It''s no longer supported (see b).
d) It''s creators said to stop using it (see b and c).
I''m in the mood for doing answers in list form .

Share this post


Link to post
Share on other sites
Dominus, Glut is an add-on to OpenGL. Its main function is to allow you to focus on OpenGL without worrying too much about platform-specific calls for window creation and management. For example, you can create a window and set up an opengl context in just 6 lines of code using glut, instead of the 60 or so you need when doing windows programming.

Btw, glut.h includes calls to gl.h and glu.h so no need to include these when using glut.

Share this post


Link to post
Share on other sites