| 7 |
|
|
| 8 |
|
#include "copyright.h" |
| 9 |
|
|
| 10 |
+ |
#include <ctype.h> |
| 11 |
+ |
|
| 12 |
+ |
#include "rtprocess.h" |
| 13 |
|
#include "radogl.h" |
| 14 |
|
|
| 15 |
|
#ifndef NLIST2ALLOC |
| 37 |
|
ofun[OBJ_RING].funp = o_ring; |
| 38 |
|
ofun[OBJ_SOURCE].funp = o_source; |
| 39 |
|
ofun[OBJ_INSTANCE].funp = o_instance; |
| 40 |
+ |
ofun[OBJ_MESH].funp = o_unsupported; |
| 41 |
|
/* assign material types */ |
| 42 |
|
ofun[MAT_TRANS].funp = |
| 43 |
|
ofun[MAT_PLASTIC].funp = |
| 121 |
|
rgl_octlist(fname, cent, radp, nl) /* load scen into display list */ |
| 122 |
|
char *fname; |
| 123 |
|
FVECT cent; /* returned octree center (optional) */ |
| 124 |
< |
FLOAT *radp; /* returned octree size (optional) */ |
| 124 |
> |
RREAL *radp; /* returned octree size (optional) */ |
| 125 |
|
int *nl; /* returned number of lists (optional) */ |
| 126 |
|
{ |
| 127 |
|
double r; |
| 151 |
|
rgl_load(inpspec) /* convert scene description into OGL calls */ |
| 152 |
|
char *inpspec; |
| 153 |
|
{ |
| 150 |
– |
FILE *popen(); |
| 154 |
|
char *fgetline(); |
| 155 |
|
FILE *infp; |
| 156 |
|
char buf[1024]; |