http://packetstormsecurity.org/UNIX/admin/xscreensaver-3.31.tar.gz
[xscreensaver] / hacks / glx / sphere.h
1 /* tube, Copyright (c) 2001 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 diamteter 1 sphere at 0, 0, 0.
17    stacks = number of north/south divisions (latitude)
18    slices = number of clockwise/counterclockwise divisions (longitude)
19  */
20 extern void unit_sphere (int stacks, int slices, Bool wire);
21
22 #endif /* __SPHERE_H__ */