--- ray/src/rt/lookamb.c 1993/11/18 09:43:02 2.5 +++ ray/src/rt/lookamb.c 2003/02/25 02:47:22 2.8 @@ -1,23 +1,14 @@ -/* Copyright (c) 1991 Regents of the University of California */ - #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: lookamb.c,v 2.8 2003/02/25 02:47:22 greg Exp $"; #endif - /* * lookamb.c - program to examine ambient components. - * - * 10/8/86 */ -#include +#include "copyright.h" -#ifdef MSDOS -#include -#endif +#include "ray.h" -#include "color.h" - #include "ambient.h" @@ -65,8 +56,10 @@ char *argv[]; if (header) { if (checkheader(fp, "ascii", stdout) < 0) goto formaterr; - } else + } else { + newheader("RADIANCE", stdout); printargs(argc, argv, stdout); + } fputformat(AMBFMT, stdout); putchar('\n'); #ifdef MSDOS @@ -96,6 +89,7 @@ formaterr: } +void lookamb(fp) /* get ambient values from a file */ FILE *fp; { @@ -131,6 +125,7 @@ FILE *fp; } +void writamb(fp) /* write binary ambient values */ FILE *fp; {