--- ray/src/common/view.h 1990/01/08 14:45:51 1.4 +++ ray/src/common/view.h 1992/10/02 15:56:31 2.2 @@ -11,6 +11,8 @@ /* view types */ #define VT_PER 'v' /* perspective */ #define VT_PAR 'l' /* parallel */ +#define VT_ANG 'a' /* angular fisheye */ +#define VT_HEM 'h' /* hemispherical fisheye */ typedef struct { int type; /* view type */ @@ -31,12 +33,9 @@ extern VIEW stdview; extern char *setview(); -extern double sqrt(); - #define viewaspect(v) sqrt((v)->vn2/(v)->hn2) -#define copyview(d,s) bcopy((char *)(s),(char *)(d),sizeof(VIEW)) - #define STDVIEW {VT_PER,0.,0.,0.,0.,1.,0.,0.,0.,1.,45.,45.,0.,0.} #define VIEWSTR "VIEW=" +#define VIEWSTRL 5