286 |
|
|
287 |
|
extern void |
288 |
|
dev_section( /* add octree for geometry rendering */ |
289 |
< |
char *ofn |
289 |
> |
char *gfn, |
290 |
> |
char *pfn |
291 |
|
) |
292 |
|
{ |
293 |
|
/* unimplemented */ |
344 |
|
|
345 |
|
extern void |
346 |
|
dev_cone( /* render a cone in view coordinates */ |
347 |
< |
BYTE rgb[3], |
347 |
> |
uby8 rgb[3], |
348 |
|
FVECT ip, |
349 |
|
double rad |
350 |
|
) |
484 |
|
static void |
485 |
|
draw_grids(void) /* draw holodeck section grids */ |
486 |
|
{ |
487 |
< |
static BYTE gridrgba[4] = {0x0, 0xff, 0xff, 0x00}; |
487 |
> |
static uby8 gridrgba[4] = {0x0, 0xff, 0xff, 0x00}; |
488 |
|
double xmin, xmax, ymin, ymax, zmin, zmax; |
489 |
|
double d; |
490 |
|
/* can we even do it? */ |
556 |
|
VSUM(nv.vp, qtL.wp[li], odir, -1.); |
557 |
|
spinvector(nv.vdir, nv.vdir, nv.vup, d); |
558 |
|
} else if (orb) { /* orbit up/down */ |
559 |
< |
fcross(v1, odir, nv.vup); |
560 |
< |
if (normalize(v1) == 0.) |
559 |
> |
if (geodesic(odir, odir, nv.vup, |
560 |
> |
d=MOVDEG*PI/180.*orb, GEOD_RAD) == 0.0) |
561 |
|
return(0); |
561 |
– |
spinvector(odir, odir, v1, d=MOVDEG*PI/180.*orb); |
562 |
|
VSUM(nv.vp, qtL.wp[li], odir, -1.); |
563 |
< |
spinvector(nv.vdir, nv.vdir, v1, d); |
563 |
> |
geodesic(nv.vdir, nv.vdir, nv.vup, d, GEOD_RAD); |
564 |
|
} else if (mov) { /* move forward/backward */ |
565 |
|
d = MOVPCT/100. * mov; |
566 |
|
VSUM(nv.vp, nv.vp, odir, d); |