From http://www.jwz.org/xscreensaver/xscreensaver-5.30.tar.gz
[xscreensaver] / hacks / glx / sphere.h
1 /* sphere, Copyright (c) 2001-2014 Jamie Zawinski <jwz@jwz.org>
2  * Utility function to create a unit sphere in GL.
3  *
4  * Permission to use, copy, modify, distribute, and sell this software and its
5  * documentation for any purpose is hereby granted without fee, provided that
6  * the above copyright notice appear in all copies and that both that
7  * copyright notice and this permission notice appear in supporting
8  * documentation.  No representations are made about the suitability of this
9  * software for any purpose.  It is provided "as is" without express or 
10  * implied warranty.
11  */
12
13 #ifndef __SPHERE_H__
14 #define __SPHERE_H__
15
16 /* Creates a diameter 1 sphere at 0, 0, 0.
17    stacks = number of north/south divisions (latitude)
18    slices = number of clockwise/counterclockwise divisions (longitude)
19    Returns number of polygons used.
20  */
21 extern int unit_sphere (int stacks, int slices, int wire_p);
22 extern int unit_dome (int stacks, int slices, int wire_p);
23
24 #endif /* __SPHERE_H__ */