| 85 |
|
#include <stdlib.h> |
| 86 |
|
#include <string.h> |
| 87 |
|
#include <ctype.h> |
| 88 |
+ |
#include "platform.h" |
| 89 |
|
#include "rtmath.h" |
| 90 |
|
#include "rtio.h" |
| 90 |
– |
#include "resolu.h" |
| 91 |
– |
#include "platform.h" |
| 91 |
|
#include "color.h" |
| 92 |
< |
#include "resolu.h" |
| 92 |
> |
#include "sun.h" |
| 93 |
|
|
| 94 |
|
char *progname; /* Program name */ |
| 95 |
|
char errmsg[128]; /* Error message buffer */ |
| 253 |
|
#ifndef NSUNPATCH |
| 254 |
|
#define NSUNPATCH 4 /* max. # patches to spread sun into */ |
| 255 |
|
#endif |
| 257 |
– |
|
| 258 |
– |
extern int jdate(int month, int day); |
| 259 |
– |
extern double stadj(int jd); |
| 260 |
– |
extern double sdec(int jd); |
| 261 |
– |
extern double salt(double sd, double st); |
| 262 |
– |
extern double sazi(double sd, double st); |
| 263 |
– |
/* sun calculation constants */ |
| 264 |
– |
extern double s_latitude; |
| 265 |
– |
extern double s_longitude; |
| 266 |
– |
extern double s_meridian; |
| 256 |
|
|
| 257 |
|
int nsuns = NSUNPATCH; /* number of sun patches to use */ |
| 258 |
|
double fixed_sun_sa = -1; /* fixed solid angle per sun? */ |