1 |
|
/* RCSid: $Id$ */ |
2 |
|
/* |
3 |
|
* Sample data structures for holodeck display drivers. |
4 |
+ |
* |
5 |
+ |
* Include after "standard.h" |
6 |
|
*/ |
7 |
|
#include "color.h" |
8 |
|
#include "tonemap.h" |
9 |
|
#include "rhdriver.h" |
10 |
|
#include "object.h" |
11 |
|
|
10 |
– |
#ifndef int2 |
11 |
– |
#define int2 short |
12 |
– |
#endif |
13 |
– |
#ifndef int4 |
14 |
– |
#define int4 int |
15 |
– |
#endif |
16 |
– |
|
12 |
|
#ifndef INVALID |
13 |
|
#define INVALID -1 |
14 |
|
#endif |
21 |
|
|
22 |
|
typedef struct samp { |
23 |
|
SFLOAT (*wp)[3]; /* world intersection point array */ |
24 |
< |
int4 *wd; /* world direction array */ |
24 |
> |
int32 *wd; /* world direction array */ |
25 |
|
TMbright *brt; /* encoded brightness array */ |
26 |
|
BYTE (*chr)[3]; /* encoded chrominance array */ |
27 |
|
BYTE (*rgb)[3]; /* tone-mapped color array */ |
85 |
|
|
86 |
|
extern SAMP rsL; |
87 |
|
extern double sDepthEps; /* epsilon to compare depths (z fraction) */ |
88 |
< |
extern int4 encodedir(); /* Encodes FVECT direction */ |
88 |
> |
extern int32 encodedir(); /* Encodes FVECT direction */ |
89 |
|
extern void decodedir(); /* Decodes dir-> FVECT */ |
90 |
|
extern double fdir2diff(), dir2diff(); /* Compare dir and FVECT */ |
91 |
< |
extern int4 *samp_flag; /* Per/sample flags s */ |
91 |
> |
extern int32 *samp_flag; /* Per/sample flags s */ |
92 |
|
|
93 |
|
/* These values are set by the driver, and used in the OGL call for glFrustum*/ |
94 |
|
extern double dev_zmin,dev_zmax; |