1 /* sphere, Copyright (c) 2001-2008 Jamie Zawinski <jwz@jwz.org>
2 * Utility function to create a unit sphere in GL.
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
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.
21 extern int unit_sphere (int stacks, int slices, int wire_p);
23 #endif /* __SPHERE_H__ */