| 5 |
|
* Generate renderable grids from a holodeck file |
| 6 |
|
*/ |
| 7 |
|
|
| 8 |
< |
#include "holo.h" |
| 8 |
> |
#include <stdio.h> |
| 9 |
> |
|
| 10 |
|
#include "platform.h" |
| 11 |
+ |
#include "resolu.h" |
| 12 |
+ |
#include "holo.h" |
| 13 |
|
|
| 14 |
|
char *progname; /* global argv[0] */ |
| 15 |
|
|
| 16 |
|
char *mat, *name; /* material and object id */ |
| 17 |
|
double rad; /* grid line radius */ |
| 18 |
|
|
| 19 |
+ |
static void gridsect(char *fname, int sect); |
| 20 |
+ |
static void putgrid(HOLO *hp); |
| 21 |
+ |
static void putline(FVECT wp[2]); |
| 22 |
|
|
| 23 |
< |
main(argc, argv) |
| 24 |
< |
int argc; |
| 25 |
< |
char *argv[]; |
| 23 |
> |
|
| 24 |
> |
int |
| 25 |
> |
main( |
| 26 |
> |
int argc, |
| 27 |
> |
char *argv[] |
| 28 |
> |
) |
| 29 |
|
{ |
| 30 |
|
int sect; |
| 31 |
|
|
| 47 |
|
} |
| 48 |
|
|
| 49 |
|
|
| 50 |
< |
gridsect(fname, sect) /* get specified section(s) and print grids */ |
| 51 |
< |
char *fname; |
| 52 |
< |
int sect; |
| 50 |
> |
void |
| 51 |
> |
gridsect( /* get specified section(s) and print grids */ |
| 52 |
> |
char *fname, |
| 53 |
> |
int sect |
| 54 |
> |
) |
| 55 |
|
{ |
| 56 |
|
FILE *fp; |
| 57 |
|
HOLO hdsect; |
| 83 |
|
} |
| 84 |
|
|
| 85 |
|
|
| 86 |
< |
putgrid(hp) /* run through holodeck section grid lines */ |
| 87 |
< |
register HOLO *hp; |
| 86 |
> |
void |
| 87 |
> |
putgrid( /* run through holodeck section grid lines */ |
| 88 |
> |
register HOLO *hp |
| 89 |
> |
) |
| 90 |
|
{ |
| 91 |
|
register int w, i; |
| 92 |
|
int g0, g1; |
| 133 |
|
} |
| 134 |
|
|
| 135 |
|
|
| 136 |
< |
putline(wp) /* put out a line */ |
| 137 |
< |
register FVECT wp[2]; |
| 136 |
> |
void |
| 137 |
> |
putline( /* put out a line */ |
| 138 |
> |
register FVECT wp[2] |
| 139 |
> |
) |
| 140 |
|
{ |
| 141 |
|
static int cnt = 0; |
| 142 |
|
|