1 |
– |
/* Copyright (c) 1991 Regents of the University of California */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* |
5 |
|
* lookamb.c - program to examine ambient components. |
9 |
– |
* |
10 |
– |
* 10/8/86 |
6 |
|
*/ |
7 |
|
|
8 |
< |
#include <stdio.h> |
8 |
> |
#include "copyright.h" |
9 |
|
|
10 |
< |
#ifdef MSDOS |
16 |
< |
#include <fcntl.h> |
17 |
< |
#endif |
10 |
> |
#include "ray.h" |
11 |
|
|
19 |
– |
#include "color.h" |
20 |
– |
|
12 |
|
#include "ambient.h" |
13 |
|
|
14 |
|
|
56 |
|
if (header) { |
57 |
|
if (checkheader(fp, "ascii", stdout) < 0) |
58 |
|
goto formaterr; |
59 |
< |
} else |
59 |
> |
} else { |
60 |
> |
newheader("RADIANCE", stdout); |
61 |
|
printargs(argc, argv, stdout); |
62 |
+ |
} |
63 |
|
fputformat(AMBFMT, stdout); |
64 |
|
putchar('\n'); |
65 |
|
#ifdef MSDOS |
89 |
|
} |
90 |
|
|
91 |
|
|
92 |
+ |
void |
93 |
|
lookamb(fp) /* get ambient values from a file */ |
94 |
|
FILE *fp; |
95 |
|
{ |
125 |
|
} |
126 |
|
|
127 |
|
|
128 |
+ |
void |
129 |
|
writamb(fp) /* write binary ambient values */ |
130 |
|
FILE *fp; |
131 |
|
{ |