X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fsphere.h;h=96d951463d8f433382599a3211f02ce411256e08;hp=55fa7aa59735abf038ef2bab921a2113b557194b;hb=de460e831dc8578acfa8b72251ab9346c99c1f96;hpb=6b1c86cf395f59389e4ece4ea8f4bea2c332745b diff --git a/hacks/glx/sphere.h b/hacks/glx/sphere.h index 55fa7aa5..96d95146 100644 --- a/hacks/glx/sphere.h +++ b/hacks/glx/sphere.h @@ -1,4 +1,4 @@ -/* tube, Copyright (c) 2001 Jamie Zawinski +/* sphere, Copyright (c) 2001-2008 Jamie Zawinski * Utility function to create a unit sphere in GL. * * Permission to use, copy, modify, distribute, and sell this software and its @@ -13,10 +13,11 @@ #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__ */