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