55 |
|
static void sigdie(int signo, char *msg); |
56 |
|
static void printdefaults(void); |
57 |
|
|
58 |
– |
|
59 |
– |
int |
58 |
|
main(int argc, char *argv[]) |
59 |
|
{ |
60 |
|
#define check(ol,al) if (argv[i][ol] || \ |
228 |
|
|
229 |
|
ray_init(octnm); /* also calls ray_init_pmap() */ |
230 |
|
|
231 |
+ |
/* temporary shortcut, until winrview is refactored into a "device" */ |
232 |
+ |
#ifndef WIN_RVIEW |
233 |
|
rview(); /* run interactive viewer */ |
234 |
|
|
235 |
+ |
|
236 |
|
devclose(); /* close output device */ |
237 |
+ |
#endif |
238 |
|
|
239 |
|
/* PMAP: free photon maps */ |
240 |
|
ray_done_pmap(); |
241 |
|
|
242 |
+ |
#ifdef WIN_RVIEW |
243 |
+ |
return 1; |
244 |
+ |
#endif |
245 |
|
quit(0); |
246 |
|
|
247 |
|
badopt: |