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