4 |
|
*/ |
5 |
|
#ifndef _RAD_RAY_H_ |
6 |
|
#define _RAD_RAY_H_ |
7 |
– |
#ifdef __cplusplus |
8 |
– |
extern "C" { |
9 |
– |
#endif |
7 |
|
|
8 |
|
#include "standard.h" |
12 |
– |
|
9 |
|
#include "octree.h" |
14 |
– |
|
10 |
|
#include "object.h" |
16 |
– |
|
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 */ |
41 |
|
int rsrc; /* source we're aiming for */ |
42 |
|
OBJECT *clipset; /* set of objects currently clipped */ |
43 |
|
OBJECT *newcset; /* next clipset, used for transmission */ |
44 |
< |
void (*revf)(); /* evaluation function for this ray */ |
45 |
< |
void (*hitf)(); /* custom hit test for this traversal */ |
44 |
> |
void (*revf)(struct ray *); /* evaluation function for this ray */ |
45 |
> |
void (*hitf)(OBJECT *, struct ray *); /* custom hit test */ |
46 |
|
OBJECT robj; /* intersected object number */ |
47 |
|
OBJREC *ro; /* intersected object (one with material) */ |
48 |
|
double rot; /* distance to object */ |