Drawing simple shapes with perspective

Bryson R. Payne, M.Ed.

Screen shot of simple.c wire sphereDiscussion:

The first example in this set of tutorials is a program to draw a simple wireframe sphere. We will take this first step and go further in the tutorials that follow, but this serves as a simple test bed for us to try displaying any object or figure. Simply change the line that draws the glutWireSphere with the line(s) for your object to easily test your coding for errors. 

Sample code:

Click here to see the sample code: simple.c

Executable example:

Click here for a running demo: simple.exe


Back to Main Tutorial Page

Last modified December 11, 2000, Bryson R. Payne, bpayne@ngcsu.edu