http://www.tienza.es/crux/src/www.jwz.org/xscreensaver/xscreensaver-5.06.tar.gz
[xscreensaver] / hacks / glx / sphere.h
index 55fa7aa59735abf038ef2bab921a2113b557194b..96d951463d8f433382599a3211f02ce411256e08 100644 (file)
@@ -1,4 +1,4 @@
-/* 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, int wire_p);
+extern int unit_sphere (int stacks, int slices, int wire_p);
 
 #endif /* __SPHERE_H__ */