1 |
< |
/* Copyright (c) 1991 Regents of the University of California */ |
2 |
< |
|
3 |
< |
/* SCCSid "$SunId$ LBL" */ |
4 |
< |
|
1 |
> |
/* RCSid: $Id$ */ |
2 |
|
/* |
3 |
|
* Common definitions for mkillum |
4 |
|
*/ |
5 |
+ |
#ifndef _RAD_MKILLUM_H_ |
6 |
+ |
#define _RAD_MKILLUM_H_ |
7 |
|
|
8 |
< |
#include "standard.h" |
10 |
< |
|
11 |
< |
#include "object.h" |
12 |
< |
|
8 |
> |
#include "ray.h" |
9 |
|
#include "otypes.h" |
10 |
|
|
11 |
+ |
#ifdef __cplusplus |
12 |
+ |
extern "C" { |
13 |
+ |
#endif |
14 |
|
/* illum flags */ |
15 |
|
#define IL_LIGHT 0x1 /* light rather than illum */ |
16 |
|
#define IL_COLDST 0x2 /* use color distribution */ |
25 |
|
char altmat[MAXSTR]; /* alternate material name */ |
26 |
|
int sampdens; /* point sample density */ |
27 |
|
int nsamps; /* # of samples in each direction */ |
28 |
< |
float col[3]; /* average color */ |
28 |
> |
float minbrt; /* minimum average brightness */ |
29 |
> |
COLOR col; /* computed average color */ |
30 |
|
}; /* illum options */ |
31 |
|
|
32 |
< |
struct rtproc { |
33 |
< |
int pd[3]; /* rtrace pipe descriptors */ |
34 |
< |
float *buf; /* rtrace i/o buffer */ |
35 |
< |
int bsiz; /* maximum rays for rtrace buffer */ |
36 |
< |
float **dest; /* destination for each ray result */ |
37 |
< |
int nrays; /* current length of rtrace buffer */ |
38 |
< |
}; /* rtrace process */ |
32 |
> |
extern void printobj(char *mod, register OBJREC *obj); |
33 |
> |
extern int average(register struct illum_args *il, COLORV *da, int n); |
34 |
> |
extern void flatout(struct illum_args *il, COLORV *da, int n, int m, |
35 |
> |
FVECT u, FVECT v, FVECT w); |
36 |
> |
extern void illumout(register struct illum_args *il, OBJREC *ob); |
37 |
> |
extern void roundout(struct illum_args *il, COLORV *da, int n, int m); |
38 |
> |
|
39 |
> |
extern int my_default(OBJREC *, struct illum_args *, char *); |
40 |
> |
extern int my_face(OBJREC *, struct illum_args *, char *); |
41 |
> |
extern int my_sphere(OBJREC *, struct illum_args *, char *); |
42 |
> |
extern int my_ring(OBJREC *, struct illum_args *, char *); |
43 |
> |
|
44 |
> |
extern char *progname; |
45 |
> |
|
46 |
> |
#ifdef __cplusplus |
47 |
> |
} |
48 |
> |
#endif |
49 |
> |
|
50 |
> |
#endif /* _RAD_MKILLUM_H_ */ |
51 |
> |
|