1 |
– |
/* Copyright (c) 1999 Silicon Graphics, Inc. */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ SGI"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* |
5 |
|
* Executive program for oconv, rpict and pfilt |
6 |
|
*/ |
10 |
|
#include "paths.h" |
11 |
|
#include "vars.h" |
12 |
|
#include <ctype.h> |
16 |
– |
#include <sys/types.h> |
13 |
|
|
14 |
|
/* variables (alphabetical by name) */ |
15 |
|
#define AMBFILE 0 /* ambient file name */ |
77 |
|
char overfile[] = "/dev/null"; |
78 |
|
#endif |
79 |
|
|
80 |
< |
extern time_t fdate(), time(); |
80 |
> |
extern time_t time(); |
81 |
|
|
82 |
|
time_t scenedate; /* date of latest scene or object file */ |
83 |
|
time_t octreedate; /* date of octree */ |
260 |
|
syserr(progname); |
261 |
|
sprintf(vval(OCTREE), "%s.oct", radname); |
262 |
|
vdef(OCTREE)++; |
263 |
+ |
} else if (vval(OCTREE)[0] == '!') { |
264 |
+ |
fprintf(stderr, "%s: illegal '%s' specification\n", |
265 |
+ |
progname, vnam(OCTREE)); |
266 |
+ |
quit(1); |
267 |
|
} |
268 |
|
octreedate = fdate(vval(OCTREE)); |
269 |
|
if (vdef(ILLUM)) { /* illum requires secondary octrees */ |
840 |
|
} |
841 |
|
switch (vscale(QUALITY)) { |
842 |
|
case MEDIUM: |
843 |
< |
po = addarg(po, "-r 1"); |
843 |
> |
po = addarg(po, "-r .6"); |
844 |
|
break; |
845 |
|
case HIGH: |
846 |
|
po = addarg(po, "-m .25"); |
1031 |
|
printview(vopts) /* print out selected view */ |
1032 |
|
register char *vopts; |
1033 |
|
{ |
1034 |
– |
extern char *strstr(), *atos(), *getenv(); |
1034 |
|
VIEW vwr; |
1035 |
|
char buf[128]; |
1036 |
|
register char *cp; |
1308 |
|
} |
1309 |
|
|
1310 |
|
|
1311 |
+ |
void |
1312 |
|
quit(ec) /* exit program */ |
1313 |
|
int ec; |
1314 |
|
{ |