| 1 |
< |
/* Copyright (c) 1998 Silicon Graphics, Inc. */ |
| 2 |
< |
|
| 3 |
< |
/* SCCSid "$SunId$ SGI" */ |
| 4 |
< |
|
| 1 |
> |
/* RCSid: $Id$ */ |
| 2 |
|
/* |
| 3 |
|
* Header file for rholo program |
| 4 |
|
*/ |
| 5 |
+ |
#ifndef _RAD_RHOLO_H_ |
| 6 |
+ |
#define _RAD_RHOLO_H_ |
| 7 |
|
|
| 8 |
|
#include "holo.h" |
| 9 |
|
#include "vars.h" |
| 10 |
|
|
| 11 |
+ |
#ifdef __cplusplus |
| 12 |
+ |
extern "C" { |
| 13 |
+ |
#endif |
| 14 |
+ |
|
| 15 |
|
#ifndef RPACKSIZ |
| 16 |
|
#define RPACKSIZ 21 /* good packet size */ |
| 17 |
|
#endif |
| 18 |
|
|
| 19 |
|
typedef struct packet { |
| 20 |
< |
int2 hd; /* holodeck section (first) */ |
| 21 |
< |
int4 bi; /* beam index (second) */ |
| 22 |
< |
int4 nr; /* number of rays (third) */ |
| 23 |
< |
int4 nc; /* number calculated (fourth) */ |
| 20 |
> |
int16 hd; /* holodeck section (first) */ |
| 21 |
> |
int32 bi; /* beam index (second) */ |
| 22 |
> |
int32 nr; /* number of rays (third) */ |
| 23 |
> |
int32 nc; /* number calculated (fourth) */ |
| 24 |
|
RAYVAL ra[RPACKSIZ]; /* ray values (fifth) */ |
| 25 |
|
float *offset; /* offset array if !vbool(OBSTRUCTIONS) */ |
| 26 |
|
struct packet *next; /* next in packet list */ |
| 27 |
|
} PACKET; /* a beam packet */ |
| 28 |
|
|
| 29 |
|
typedef struct { |
| 30 |
< |
int2 hd; /* holodeck section (first) */ |
| 31 |
< |
int4 bi; /* beam index (second) */ |
| 32 |
< |
int4 nr; /* number of rays (third) */ |
| 33 |
< |
int4 nc; /* number calculated (fourth) */ |
| 30 |
> |
int16 hd; /* holodeck section (first) */ |
| 31 |
> |
int32 bi; /* beam index (second) */ |
| 32 |
> |
int32 nr; /* number of rays (third) */ |
| 33 |
> |
int32 nc; /* number calculated (fourth) */ |
| 34 |
|
} PACKHEAD; /* followed by ray values */ |
| 35 |
|
|
| 36 |
|
#define packsiz(nr) (sizeof(PACKHEAD)+(nr)*sizeof(RAYVAL)) |
| 119 |
|
|
| 120 |
|
extern PACKET *do_packets(), *get_packets(), *flush_queue(); |
| 121 |
|
|
| 122 |
< |
extern int2 *viewbeams(); |
| 122 |
> |
extern int16 *viewbeams(); |
| 123 |
> |
|
| 124 |
> |
|
| 125 |
> |
#ifdef __cplusplus |
| 126 |
> |
} |
| 127 |
> |
#endif |
| 128 |
> |
#endif /* _RAD_RHOLO_H_ */ |
| 129 |
> |
|