| 1 |
greg |
1.1 |
/* Copyright (c) 1988 Regents of the University of California */
|
| 2 |
|
|
|
| 3 |
|
|
/* SCCSid "$SunId$ LBL" */
|
| 4 |
|
|
|
| 5 |
|
|
/*
|
| 6 |
|
|
* view.h - header file for image generation.
|
| 7 |
|
|
*
|
| 8 |
|
|
* 9/19/88
|
| 9 |
|
|
*/
|
| 10 |
|
|
|
| 11 |
|
|
/* view types */
|
| 12 |
|
|
#define VT_PER 'v' /* perspective */
|
| 13 |
|
|
#define VT_PAR 'l' /* parallel */
|
| 14 |
|
|
|
| 15 |
|
|
typedef struct {
|
| 16 |
|
|
int type; /* view type */
|
| 17 |
|
|
FVECT vp; /* view origin */
|
| 18 |
|
|
FVECT vdir; /* view direction */
|
| 19 |
|
|
FVECT vup; /* view up */
|
| 20 |
|
|
double horiz; /* horizontal view size */
|
| 21 |
|
|
double vert; /* vertical view size */
|
| 22 |
|
|
int hresolu; /* horizontal resolution */
|
| 23 |
|
|
int vresolu; /* vertical resolution */
|
| 24 |
|
|
FVECT vhinc; /* computed horizontal increment */
|
| 25 |
|
|
FVECT vvinc; /* computed vertical increment */
|
| 26 |
|
|
} VIEW; /* view parameters */
|
| 27 |
|
|
|
| 28 |
|
|
extern VIEW stdview;
|
| 29 |
|
|
|
| 30 |
|
|
extern char *setview();
|
| 31 |
|
|
|
| 32 |
|
|
#define STDVIEW(h) {VT_PER,0.,0.,0.,0.,1.,0.,0.,0.,1.,45.,45.,h,h}
|
| 33 |
|
|
|
| 34 |
|
|
#define VIEWSTR "VIEW="
|