34 |
|
#define packra(p) ((RAYVAL *)((p)+1)) |
35 |
|
|
36 |
|
typedef struct { |
37 |
+ |
int nb; /* number of beams in list */ |
38 |
+ |
PACKHEAD *bl; /* allocated beam list */ |
39 |
+ |
} BEAMLIST; /* a list of beam requests */ |
40 |
+ |
|
41 |
+ |
typedef struct { |
42 |
|
FVECT vpt; /* view (eye point) position */ |
43 |
|
double rng; /* desired mean radius for sample rays */ |
44 |
|
} VIEWPOINT; /* target eye position */ |
83 |
|
#define BS_ADD 2 /* add to current set */ |
84 |
|
#define BS_ADJ 3 /* adjust current set quantities */ |
85 |
|
#define BS_DEL 4 /* delete from current set */ |
86 |
+ |
#define BS_MAX 5 /* set to max of old and new */ |
87 |
|
|
88 |
|
extern char *progname; /* our program name */ |
89 |
|
extern char *hdkfile; /* holodeck file name */ |
115 |
|
extern char *rtargv[]; |
116 |
|
|
117 |
|
extern PACKET *do_packets(), *get_packets(), *flush_queue(); |
118 |
+ |
|
119 |
+ |
extern int2 *viewbeams(); |