11 |
|
/* view types */ |
12 |
|
#define VT_PER 'v' /* perspective */ |
13 |
|
#define VT_PAR 'l' /* parallel */ |
14 |
+ |
#define VT_ANG 'a' /* angular fisheye */ |
15 |
+ |
#define VT_HEM 'h' /* hemispherical fisheye */ |
16 |
|
|
17 |
|
typedef struct { |
18 |
|
int type; /* view type */ |
33 |
|
|
34 |
|
extern char *setview(); |
35 |
|
|
34 |
– |
extern double sqrt(); |
35 |
– |
|
36 |
|
#define viewaspect(v) sqrt((v)->vn2/(v)->hn2) |
37 |
|
|
38 |
< |
#define copyview(d,s) bcopy((char *)(s),(char *)(d),sizeof(VIEW)) |
38 |
> |
#define STDVIEW {VT_PER,{0.,0.,0.},{0.,1.,0.},{0.,0.,1.}, \ |
39 |
> |
45.,45.,0.,0.,{0.,0.,0.},{0.,0.,0.},0.,0.} |
40 |
|
|
40 |
– |
#define STDVIEW {VT_PER,0.,0.,0.,0.,1.,0.,0.,0.,1.,45.,45.,0.,0.} |
41 |
– |
|
41 |
|
#define VIEWSTR "VIEW=" |
42 |
+ |
#define VIEWSTRL 5 |