10 |
|
|
11 |
|
#include <stdio.h> |
12 |
|
|
13 |
+ |
#include <math.h> |
14 |
+ |
|
15 |
|
#include "color.h" |
16 |
|
|
17 |
|
#define PI 3.14159265358979323846 |
18 |
|
|
19 |
|
extern char *gets(), *strcpy(); |
18 |
– |
extern double atof(); |
20 |
|
extern float *matchlamp(); |
21 |
|
|
22 |
|
/* lamp parameters */ |
39 |
|
int (*check)(); |
40 |
|
char *help; |
41 |
|
} param[NPARAMS] = { |
42 |
< |
{ "lamp type", "white", typecheck, |
42 |
> |
{ "lamp type", "WHITE", typecheck, |
43 |
|
"The lamp type is a string which corresponds to one of the types registered\n\ |
44 |
< |
in the lamp table file. A value of \"white\" means an uncolored source,\n\ |
44 |
> |
in the lamp table file. A value of \"WHITE\" means an uncolored source,\n\ |
45 |
|
which may be preferable because it results in a color balanced image." }, |
46 |
|
{ "length unit", "meter", unitcheck, |
47 |
|
"Unit must be one of: \"meter\", \"centimeter\", \"foot\", or \"inch\".\n\ |