| 1 |
< |
/* Copyright (c) 1998 Silicon Graphics, Inc. */ |
| 2 |
< |
|
| 3 |
< |
/* SCCSid "$SunId$ SGI" */ |
| 4 |
< |
|
| 1 |
> |
/* RCSid: $Id$ */ |
| 2 |
|
/* |
| 3 |
|
* Header file for rholo program |
| 4 |
|
*/ |
| 11 |
|
#endif |
| 12 |
|
|
| 13 |
|
typedef struct packet { |
| 14 |
< |
int2 hd; /* holodeck section (first) */ |
| 15 |
< |
int4 bi; /* beam index (second) */ |
| 16 |
< |
int4 nr; /* number of rays (third) */ |
| 17 |
< |
int4 nc; /* number calculated (fourth) */ |
| 14 |
> |
int16 hd; /* holodeck section (first) */ |
| 15 |
> |
int32 bi; /* beam index (second) */ |
| 16 |
> |
int32 nr; /* number of rays (third) */ |
| 17 |
> |
int32 nc; /* number calculated (fourth) */ |
| 18 |
|
RAYVAL ra[RPACKSIZ]; /* ray values (fifth) */ |
| 19 |
|
float *offset; /* offset array if !vbool(OBSTRUCTIONS) */ |
| 20 |
|
struct packet *next; /* next in packet list */ |
| 21 |
|
} PACKET; /* a beam packet */ |
| 22 |
|
|
| 23 |
|
typedef struct { |
| 24 |
< |
int2 hd; /* holodeck section (first) */ |
| 25 |
< |
int4 bi; /* beam index (second) */ |
| 26 |
< |
int4 nr; /* number of rays (third) */ |
| 27 |
< |
int4 nc; /* number calculated (fourth) */ |
| 24 |
> |
int16 hd; /* holodeck section (first) */ |
| 25 |
> |
int32 bi; /* beam index (second) */ |
| 26 |
> |
int32 nr; /* number of rays (third) */ |
| 27 |
> |
int32 nc; /* number calculated (fourth) */ |
| 28 |
|
} PACKHEAD; /* followed by ray values */ |
| 29 |
|
|
| 30 |
|
#define packsiz(nr) (sizeof(PACKHEAD)+(nr)*sizeof(RAYVAL)) |
| 113 |
|
|
| 114 |
|
extern PACKET *do_packets(), *get_packets(), *flush_queue(); |
| 115 |
|
|
| 116 |
< |
extern int2 *viewbeams(); |
| 116 |
> |
extern int16 *viewbeams(); |