This is a sample app that demonstrates GLUT geometric shapes. It allows you to go through all the shapes in wireframe and solid modes and lets you interact with the shape by rotating it, resizing it and changing its color.
See the GLUT documentation for a complete explanation of the functions that draw those shapes. You can find the source code for this on my GitHub page. If you have any issues compiling or running the app, check out this blog post for details about compiling and running an OpenGL app that uses the GLUT library.