22 |
|
typedef struct { |
23 |
|
BYTE r[2][2]; /* ray direction index */ |
24 |
|
COLR v; /* color value */ |
25 |
< |
unsigned int2 d; /* depth code (from entry wall) */ |
25 |
> |
uint16 d; /* depth code (from entry wall) */ |
26 |
|
} RAYVAL; /* ray value */ |
27 |
|
|
28 |
|
/* |
43 |
|
} GCOORD; /* grid coordinates (two for beam) */ |
44 |
|
|
45 |
|
typedef struct { |
46 |
< |
unsigned int4 nrd; /* number of beam rays bundled on disk */ |
46 |
> |
uint32 nrd; /* number of beam rays bundled on disk */ |
47 |
|
off_t fo; /* position in file */ |
48 |
|
} BEAMI; /* beam index */ |
49 |
|
|
50 |
|
typedef struct { |
51 |
< |
unsigned int4 nrm; /* number of beam rays bundled in memory */ |
51 |
> |
uint32 nrm; /* number of beam rays bundled in memory */ |
52 |
|
unsigned long tick; /* clock tick for LRU replacement */ |
53 |
|
} BEAM; /* followed by nrm RAYVAL's */ |
54 |
|
|
58 |
|
typedef struct { |
59 |
|
FVECT orig; /* prism origin (first) */ |
60 |
|
FVECT xv[3]; /* side vectors (second) */ |
61 |
< |
int2 grid[3]; /* grid resolution (third) */ |
61 |
> |
int16 grid[3]; /* grid resolution (third) */ |
62 |
|
} HDGRID; /* holodeck section grid (must match HOLO struct) */ |
63 |
|
|
64 |
|
typedef struct holo { |
65 |
|
FVECT orig; /* prism origin (first) */ |
66 |
|
FVECT xv[3]; /* side vectors (second) */ |
67 |
< |
int2 grid[3]; /* grid resolution (third) */ |
67 |
> |
int16 grid[3]; /* grid resolution (third) */ |
68 |
|
int fd; /* file descriptor */ |
69 |
|
struct { |
70 |
|
int s, n; /* dirty section start, length */ |