| 51 |
|
#define VIEWSTR "VIEW=" |
| 52 |
|
#define VIEWSTRL 5 |
| 53 |
|
|
| 54 |
+ |
/* return values/flags for viewloc() */ |
| 55 |
+ |
#define VL_BAD 0 /* illegal position (i.e. origin) */ |
| 56 |
+ |
#define VL_GOOD 0x1 /* result is valid */ |
| 57 |
+ |
#define VL_BEHIND 0x2 /* world point is behind fore plane */ |
| 58 |
+ |
#define VL_OUTSIDE 0x4 /* world point is outside frustum */ |
| 59 |
+ |
#define VL_BEYOND 0x8 /* point is beyond aft clipping plane */ |
| 60 |
|
|
| 61 |
+ |
extern char *progname; /* global argv[0] */ |
| 62 |
+ |
extern char *fixargv0(char *arg0); |
| 63 |
|
extern char *setview(VIEW *v); |
| 64 |
+ |
extern char *cropview(VIEW *v, double x0, double y0, double x1, double y1); |
| 65 |
|
extern void normaspect(double va, double *ap, int *xp, int *yp); |
| 66 |
|
extern double viewray(FVECT orig, FVECT direc, VIEW *v, double x, double y); |
| 67 |
+ |
extern int jitteraperture(FVECT orig, FVECT direc, VIEW *v, double dia); |
| 68 |
|
extern int viewloc(FVECT ip, VIEW *v, FVECT p); |
| 69 |
|
extern void pix2loc(RREAL loc[2], RESOLU *rp, int px, int py); |
| 70 |
|
extern void loc2pix(int pp[2], RESOLU *rp, double lx, double ly); |