]> git.mxchange.org Git - flightgear.git/blob - Stripe_w/global.h
First working version!
[flightgear.git] / Stripe_w / global.h
1 /********************************************************************/
2 /*   STRIPE: converting a polygonal model to triangle strips    
3      Francine Evans, 1996.
4      SUNY @ Stony Brook
5      Advisors: Steven Skiena and Amitabh Varshney
6 */
7 /********************************************************************/
8
9 /*---------------------------------------------------------------------*/
10 /*   STRIPE: global.h
11 -----------------------------------------------------------------------*/
12
13 #ifndef _GLOBAL_H
14 #define _GLOBAL_H
15
16
17 #define   VRDATA                double
18 #define   STRIP_MAX            60
19         
20 #define TRUE            1
21 #define FALSE           0
22
23 #ifndef PI
24 #define   PI            3.1415926573
25 #endif
26
27 #define   ATOI(C)        (C -'0')
28 #define   X              0
29 #define   Y              1
30 #define   Z              2
31 #define   EVEN(x)       (((x) & 1) == 0)
32 #define   MAX_BAND      10000
33
34 struct vert_struct {
35         VRDATA  x, y, z;        /* point coordinates */
36 };
37
38 extern int     ids[STRIP_MAX];
39 extern int     norms[STRIP_MAX];
40 extern int     *vert_norms;
41 extern int     *vert_texture;
42
43
44 #endif _GLOBAL_H