| 5 |
|
* Routines for loading and displaying Radiance objects in rholo with GLX. |
| 6 |
|
*/ |
| 7 |
|
|
| 8 |
+ |
#include <string.h> |
| 9 |
+ |
|
| 10 |
|
#include "radogl.h" |
| 11 |
|
#include "tonemap.h" |
| 12 |
|
#include "rhdisp.h" |
| 340 |
|
d = 1.0/ncells; |
| 341 |
|
scalecolor(dlightsets->lamb, d); |
| 342 |
|
done: /* clear sphere sample array */ |
| 343 |
< |
bzero((void *)ssamp, sizeof(ssamp)); |
| 343 |
> |
memset((void *)ssamp, '\0', sizeof(ssamp)); |
| 344 |
|
return(ncells); |
| 345 |
|
} |
| 346 |
|
|
| 733 |
|
return(0); |
| 734 |
|
} |
| 735 |
|
/* hold last transform */ |
| 736 |
< |
bcopy((void *)lastxfav, (void *)txfav, |
| 736 |
> |
memcpy((void *)txfav, (void *)lastxfav, |
| 737 |
|
(txfac=lastxfac)*sizeof(char *)); |
| 738 |
|
/* save this transform */ |
| 739 |
< |
bcopy((void *)curobj->xfav, (void *)lastxfav, |
| 739 |
> |
memcpy((void *)lastxfav, (void *)curobj->xfav, |
| 740 |
|
(lastxfac=curobj->xfac)*sizeof(char *)); |
| 741 |
|
/* copy back last transform */ |
| 742 |
< |
bcopy((void *)txfav, (void *)curobj->xfav, |
| 742 |
> |
memcpy((void *)curobj->xfav, (void *)txfav, |
| 743 |
|
(curobj->xfac=txfac)*sizeof(char *)); |
| 744 |
|
/* set matrices */ |
| 745 |
|
fullxf(&curobj->xfb, curobj->xfac, curobj->xfav); |