--- ray/src/hd/rhpict2.c 2003/06/20 00:25:49 3.11 +++ ray/src/hd/rhpict2.c 2003/07/07 17:21:51 3.13 @@ -1,10 +1,12 @@ #ifndef lint -static const char RCSid[] = "$Id: rhpict2.c,v 3.11 2003/06/20 00:25:49 greg Exp $"; +static const char RCSid[] = "$Id: rhpict2.c,v 3.13 2003/07/07 17:21:51 greg Exp $"; #endif /* * Rendering routines for rhpict. */ +#include + #include "holo.h" #include "view.h" #include "random.h" @@ -35,7 +37,7 @@ static const char RCSid[] = "$Id: rhpict2.c,v 3.11 200 #define CLR4(f,i) FL4OP(f,i,&=~) #define TGL4(f,i) FL4OP(f,i,^=) #define FL4NELS(n) (((n)+0x1f)>>5) -#define CLR4ALL(f,n) bzero((char *)(f),FL4NELS(n)*sizeof(int32)) +#define CLR4ALL(f,n) memset((char *)(f),'\0',FL4NELS(n)*sizeof(int32)) #endif static int32 *pixFlags; /* pixel occupancy flags */ @@ -51,6 +53,7 @@ extern float *mydepth; /* depth values (visibility cul extern int hres, vres; /* current horizontal and vertical res. */ +void pixBeam(bp, hb) /* render a particular beam */ BEAM *bp; register HDBEAMI *hb;