Jump to content
  • Advertisement

Archived

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

Greg386

Difference between gluSphere and glutSolidSphere?

This topic is 6022 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

I am new to opengl, and want to know the difference between gluSphere and glutSolidSphere. Also, what are the differences between using glut for graphics and using glu for graphics? Thanks a lot! One other thing...I was able to get copies of the Red and Blue books as well as the opengl superbible...which one do you reccomend that I read first? Thanks again!

Share this post


Link to post
Share on other sites
Advertisement
I suppose glutSolidSphere() calls gluSphere().

GLU (GL Utility library) is a part of OpenGL.
It has functions for commonly used operations,
or that extend the functionality.

GLUT (GL Utility Toolkit library) isn''t.
It is meant to make your life easier when writing
a portable OpenGL program : do the windowing & IO & stuff.

Start with the Red Book.
The Blue Book is a function reference.
I don''t know the superbible.

Share this post


Link to post
Share on other sites
Can you use Glut and glu in the same program? Also, are programs with glut much more limited than programs that don''t use glut? Also, when glut is used, is it only easier to type the basic code (only displays a window), or does it make it easier to write all parts of the program?

thanks!

Share this post


Link to post
Share on other sites
Sure you can. GLUT itself uses GLU.

GLUT helps with the setting up of a window (drawing, resize), basic I/O (keyboard, 3-button mouse, graphics tablet, and other devices not usually available on a PC) and periodic update (''idle'' function).

It frees you from the Windows-specific code, at the cost that, well, you are mostly limited to the things implemented in GLUT; if you decide to, say, use the mouse wheel or a joystick, you''re on your own : either add the support in GLUT (source available), or use win32 (or DX) calls.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!