--- ray/src/hd/holo.h 2010/09/03 23:52:42 3.26 +++ ray/src/hd/holo.h 2011/05/20 02:06:39 3.28 @@ -1,4 +1,4 @@ -/* RCSid: $Id: holo.h,v 3.26 2010/09/03 23:52:42 greg Exp $ */ +/* RCSid: $Id: holo.h,v 3.28 2011/05/20 02:06:39 greg Exp $ */ /* * Header file for holodeck programs * @@ -26,7 +26,7 @@ extern "C" { #define DCLIN (unsigned)(1L<<11) /* linear depth limit */ typedef struct { - BYTE r[2][2]; /* ray direction index */ + uby8 r[2][2]; /* ray direction index */ COLR v; /* color value */ uint16 d; /* depth code (from entry wall) */ } RAYVAL; /* ray value */ @@ -132,15 +132,15 @@ extern int hdwg1[6]; /* wall grid 1 index */ #define HOLOFMT "Holodeck" /* file format identifier */ #define HOLOVERS 0 /* file format version number */ -#define HOLOMAGIC (323+sizeof(BEAMI)+16*HOLOVERS) /* file magic number */ +#define HOLOMAGIC (324+sizeof(BEAMI)+16*HOLOVERS) /* file magic number */ /* * A holodeck file consists of an information header terminated by a * blank line, with "FORMAT=Holodeck" somewhere in it. * The first integer after the information header is the * above magic number, which includes the file format version number. - * The first longword after the magic number is a pointer to the pointer - * just before the SECOND holodeck section, or 0 if there is only one. + * The first longword (off_t) after the magic number is a pointer to the + * pointer just before the SECOND holodeck section, or 0 if there is only one. * This longword is immediately followed by the first holodeck * section header and directory. * Similarly, every holodeck section in the file is preceeded by @@ -165,8 +165,8 @@ extern int hdlseg(int lseg[2][3], HOLO *hp, GCOORD gc[ extern unsigned int hdcode(HOLO *hp, double d); extern void hdgrid( FVECT gp, HOLO *hp, FVECT wp); extern void hdworld(FVECT wp, HOLO *hp, FVECT gp); -extern double hdray(FVECT ro, FVECT rd, HOLO *hp, GCOORD gc[2], BYTE r[2][2]); -extern double hdinter(GCOORD gc[2], BYTE r[2][2], double *ed, HOLO *hp, +extern double hdray(FVECT ro, FVECT rd, HOLO *hp, GCOORD gc[2], uby8 r[2][2]); +extern double hdinter(GCOORD gc[2], uby8 r[2][2], double *ed, HOLO *hp, FVECT ro, FVECT rd); /* holofile.c */ extern HOLO * hdinit(int fd, HDGRID *hproto);