http://packetstormsecurity.org/UNIX/admin/xscreensaver-3.31.tar.gz
[xscreensaver] / hacks / glx / tube.h
1 /* tube, Copyright (c) 2001 Jamie Zawinski <jwz@jwz.org>
2  * Utility functions to create tubes and cones 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 __TUBE_H__
14 #define __TUBE_H__
15
16 extern void tube (GLfloat x1, GLfloat y1, GLfloat z1,
17                   GLfloat x2, GLfloat y2, GLfloat z2,
18                   GLfloat diameter, GLfloat cap_size,
19                   int faces, Bool smooth, Bool wire);
20
21 extern void cone (GLfloat x1, GLfloat y1, GLfloat z1,
22                   GLfloat x2, GLfloat y2, GLfloat z2,
23                   GLfloat diameter, GLfloat cap_size,
24                   int faces, Bool smooth, Bool wire);
25
26 #endif /* __TUBE_H__ */