4 |
|
*/ |
5 |
|
#ifndef _RAD_RAY_H_ |
6 |
|
#define _RAD_RAY_H_ |
7 |
– |
#ifdef __cplusplus |
8 |
– |
extern "C" { |
9 |
– |
#endif |
7 |
|
|
11 |
– |
|
12 |
– |
#include "copyright.h" |
13 |
– |
|
8 |
|
#include "standard.h" |
15 |
– |
|
9 |
|
#include "octree.h" |
17 |
– |
|
10 |
|
#include "object.h" |
19 |
– |
|
11 |
|
#include "color.h" |
12 |
|
|
13 |
+ |
#ifdef __cplusplus |
14 |
+ |
extern "C" { |
15 |
+ |
#endif |
16 |
+ |
|
17 |
|
#define MAXDIM 32 /* maximum number of dimensions */ |
18 |
|
|
19 |
|
/* ray type flags */ |
50 |
|
FVECT ron; /* intersection surface normal */ |
51 |
|
double rod; /* -DOT(rdir, ron) */ |
52 |
|
FULLXF *rox; /* object transformation */ |
53 |
< |
FLOAT uv[2]; /* local coordinates */ |
53 |
> |
RREAL uv[2]; /* local coordinates */ |
54 |
|
FVECT pert; /* surface normal perturbation */ |
55 |
|
COLOR pcol; /* pattern color */ |
56 |
|
COLOR rcol; /* returned ray value */ |