--- ray/src/hd/rhd_geom.c 1999/01/29 15:33:36 3.8 +++ ray/src/hd/rhd_geom.c 2003/06/30 14:59:11 3.12 @@ -1,13 +1,12 @@ -/* Copyright (c) 1999 Silicon Graphics, Inc. */ - #ifndef lint -static char SCCSid[] = "$SunId$ SGI"; +static const char RCSid[] = "$Id: rhd_geom.c,v 3.12 2003/06/30 14:59:11 schorsch Exp $"; #endif - /* * Geometry drawing operations for OpenGL driver. */ +#include + #include "radogl.h" #include "rhdriver.h" @@ -26,7 +25,7 @@ static char *newportlist[MAXPORT]; /* new portal file static struct gmEntry { char *gfile; /* geometry file name */ FVECT cent; /* centroid */ - FLOAT rad; /* radius */ + RREAL rad; /* radius */ int listid; /* display list identifier */ int nlists; /* number of lists allocated */ } gmCurrent[MAXGEO], gmNext[MAXGEO]; /* current and next list */ @@ -84,8 +83,8 @@ gmEndGeom() /* make next list current */ freestr(gmCurrent[i].gfile); } } - bcopy((char *)gmNext, (char *)gmCurrent, sizeof(gmNext)); - bzero((char *)gmNext, sizeof(gmNext)); + memcpy((void *)gmCurrent, (void *)gmNext, sizeof(gmNext)); + memset((void *)gmNext, '\0', sizeof(gmNext)); } @@ -199,7 +198,7 @@ gmEndPortal() /* close portal list and return GL lis } FORALLPORT(curportlist, n) /* free old file list */ freestr(curportlist[n]); - bcopy((char *)newportlist, (char *)curportlist, sizeof(newportlist)); - bzero((char *)newportlist, sizeof(newportlist)); + memcpy((void *)curportlist, (void *)newportlist, sizeof(newportlist)); + memset((void *)newportlist, '\0', sizeof(newportlist)); return(gmPortals); /* return GL list id */ }