4 |
|
* Header file for rcontrib modules |
5 |
|
*/ |
6 |
|
|
7 |
+ |
#include "platform.h" |
8 |
+ |
#include "paths.h" |
9 |
+ |
#include "rtprocess.h" |
10 |
|
#include "ray.h" |
11 |
|
#include "func.h" |
12 |
|
#include "lookup.h" |
39 |
|
extern RNUMBER raysleft; /* number of rays left to trace */ |
40 |
|
extern long waitflush; /* how long until next flush */ |
41 |
|
|
42 |
< |
extern int lastray; /* last ray number sent */ |
43 |
< |
extern int lastdone; /* last ray processed */ |
42 |
> |
extern RNUMBER lastray; /* last ray number sent */ |
43 |
> |
extern RNUMBER lastdone; /* last ray processed */ |
44 |
|
|
45 |
|
typedef double DCOLOR[3]; /* double-precision color */ |
46 |
|
|
88 |
|
#ifndef MAXMODLIST |
89 |
|
#define MAXMODLIST 2048 /* maximum modifiers we'll track */ |
90 |
|
#endif |
88 |
– |
#ifndef MAXTSET |
89 |
– |
#define MAXTSET 16383 /* maximum number in trace set */ |
90 |
– |
#endif |
91 |
|
|
92 |
|
extern const char *modname[MAXMODLIST]; /* ordered modifier name list */ |
93 |
|
extern int nmods; /* number of modifiers */ |
94 |
|
|
95 |
|
extern char RCCONTEXT[]; /* special evaluation context */ |
96 |
|
|
97 |
– |
extern void tranotify(OBJECT obj); /* new trace modifier */ |
98 |
– |
|
97 |
|
extern char *formstr(int f); /* return format identifier */ |
98 |
|
|
99 |
|
extern void process_rcontrib(void); /* trace ray contributions */ |
115 |
|
extern int getvec(FVECT vec); |
116 |
|
|
117 |
|
extern int in_rchild(void); |
118 |
< |
extern void end_children(void); |
118 |
> |
extern void end_children(int immed); |
119 |
|
|
120 |
|
extern void put_zero_record(int ndx); |
123 |
– |
extern void queue_modifiers(void); |
121 |
|
|
122 |
|
extern void parental_loop(void); /* controlling process */ |
123 |
|
|