X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fsphere.h;h=98523775b6724b075aab14bf04b278436a06e030;hb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e;hp=55fa7aa59735abf038ef2bab921a2113b557194b;hpb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;p=xscreensaver diff --git a/hacks/glx/sphere.h b/hacks/glx/sphere.h index 55fa7aa5..98523775 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-2014 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,12 @@ #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); +extern int unit_dome (int stacks, int slices, int wire_p); #endif /* __SPHERE_H__ */