36 |
|
* as simple as we can. Global variables and their defaults |
37 |
|
* are defined below, and including "ray.h" declares these |
38 |
|
* along with all the routines you are likely to need. First, |
39 |
< |
* assign the global variable progname to your argv[0], then |
40 |
< |
* change the rendering parameters as you like. If you have a set |
41 |
< |
* of option arguments you are working from, the getrenderopt(ac,av) |
39 |
> |
* assign the global variable progname by calling fixargv0(argv[0]), |
40 |
> |
* then change the rendering parameters as you like. If you have a |
41 |
> |
* set of option arguments you are working from, the getrenderopt() |
42 |
|
* call should be very useful. Before tracing any rays, you |
43 |
|
* must read in the octree with a call to ray_init(oct). |
44 |
|
* Passing NULL for the file name causes ray_init() to read |
102 |
|
#include "data.h" |
103 |
|
#include "font.h" |
104 |
|
#include "pmapray.h" |
105 |
– |
|
106 |
– |
char *progname = "unknown_app"; /* caller sets to argv[0] */ |
105 |
|
|
106 |
|
char *octname; /* octree name we are given */ |
107 |
|
|