7 |
|
|
8 |
|
#include "ray.h" |
9 |
|
#include "otypes.h" |
10 |
+ |
#include "random.h" |
11 |
|
|
12 |
|
#ifdef __cplusplus |
13 |
|
extern "C" { |
30 |
|
COLOR col; /* computed average color */ |
31 |
|
}; /* illum options */ |
32 |
|
|
33 |
< |
extern void printobj(char *mod, register OBJREC *obj); |
34 |
< |
extern int average(register struct illum_args *il, COLORV *da, int n); |
33 |
> |
extern void printobj(char *mod, OBJREC *obj); |
34 |
> |
extern int average(struct illum_args *il, COLORV *da, int n); |
35 |
|
extern void flatout(struct illum_args *il, COLORV *da, int n, int m, |
36 |
|
FVECT u, FVECT v, FVECT w); |
37 |
< |
extern void illumout(register struct illum_args *il, OBJREC *ob); |
37 |
> |
extern void illumout(struct illum_args *il, OBJREC *ob); |
38 |
|
extern void roundout(struct illum_args *il, COLORV *da, int n, int m); |
39 |
|
|
40 |
+ |
extern void newdist(int siz); |
41 |
+ |
extern int process_ray(RAY *r, int rv); |
42 |
+ |
extern void raysamp(int ndx, FVECT org, FVECT dir); |
43 |
+ |
extern void rayclean(void); |
44 |
+ |
|
45 |
+ |
extern void flatdir(FVECT dv, double alt, double azi); |
46 |
+ |
extern int flatindex(FVECT dv, int nalt, int nazi); |
47 |
+ |
|
48 |
|
extern int my_default(OBJREC *, struct illum_args *, char *); |
49 |
|
extern int my_face(OBJREC *, struct illum_args *, char *); |
50 |
|
extern int my_sphere(OBJREC *, struct illum_args *, char *); |
51 |
|
extern int my_ring(OBJREC *, struct illum_args *, char *); |
52 |
+ |
|
53 |
+ |
extern COLORV * distarr; /* distribution array */ |
54 |
+ |
extern int distsiz; |
55 |
|
|
56 |
|
extern char *progname; |
57 |
|
|