--- ray/src/hd/holo.h 1998/01/06 15:08:50 3.13 +++ ray/src/hd/holo.h 1998/08/12 17:54:15 3.15 @@ -1,4 +1,4 @@ -/* Copyright (c) 1997 Silicon Graphics, Inc. */ +/* Copyright (c) 1998 Silicon Graphics, Inc. */ /* SCCSid "$SunId$ SGI" */ @@ -14,21 +14,15 @@ #ifndef HDMAX #define HDMAX 128 /* maximum active holodeck sections */ #endif -#ifndef int2 -#define int2 short -#endif -#ifndef int4 -#define int4 int -#endif #define DCINF (unsigned)((1L<<16)-1) /* special value for infinity */ #define DCLIN (unsigned)(1L<<11) /* linear depth limit */ typedef struct { BYTE r[2][2]; /* ray direction index */ - COLR v; /* value */ - unsigned int2 d; /* depth code */ -} RAYVAL; /* ray value (from second wall) */ + COLR v; /* color value */ + unsigned int2 d; /* depth code (from entry wall) */ +} RAYVAL; /* ray value */ /* * Walls are ordered: X0 X1 X2 WN @@ -86,7 +80,7 @@ typedef struct { int b; /* beam index */ } HDBEAMI; /* holodeck beam index */ -#define nbeams(hp) (2*((hp)->wi[5]-1)) +#define nbeams(hp) (((hp)->wi[5]-1)<<1) #define biglob(hp) ((hp)->bi) #define blglob(hp) (*(hp)->bl) @@ -102,6 +96,7 @@ extern unsigned hdmemuse(); extern long hdfiluse(), hdfilen(), hdallocfrag(); extern double hdray(), hdinter(); extern unsigned hdcode(); +extern int hdfilord(); extern unsigned hdcachesize; /* target cache size (bytes) */ extern unsigned long hdclock; /* holodeck system clock */