-/* tube, Copyright (c) 2001 Jamie Zawinski <jwz@jwz.org>
+/* sphere, Copyright (c) 2001-2008 Jamie Zawinski <jwz@jwz.org>
* Utility function to create a unit sphere in GL.
*
* Permission to use, copy, modify, distribute, and sell this software and its
#ifndef __SPHERE_H__
#define __SPHERE_H__
-/* Creates a diamteter 1 sphere at 0, 0, 0.
+/* Creates a diameter 1 sphere at 0, 0, 0.
stacks = number of north/south divisions (latitude)
slices = number of clockwise/counterclockwise divisions (longitude)
+ Returns number of polygons used.
*/
-extern void unit_sphere (int stacks, int slices, Bool wire);
+extern int unit_sphere (int stacks, int slices, int wire_p);
#endif /* __SPHERE_H__ */