297 |
|
|
298 |
|
typedef RREAL MAT4[4][4]; |
299 |
|
|
300 |
– |
#ifdef BSD |
301 |
– |
#define copymat4(m4a,m4b) bcopy((char *)m4b,(char *)m4a,sizeof(MAT4)) |
302 |
– |
#else |
300 |
|
#define copymat4(m4a,m4b) (void)memcpy((char *)m4a,(char *)m4b,sizeof(MAT4)) |
304 |
– |
#endif |
301 |
|
|
302 |
|
#define MAT4IDENT { {1.,0.,0.,0.}, {0.,1.,0.,0.}, \ |
303 |
|
{0.,0.,1.,0.}, {0.,0.,0.,1.} } |
373 |
|
extern void multv3(FVECT, FVECT, MAT4); /* v3a = v3b X m4 (vectors) */ |
374 |
|
extern void multp3(FVECT, FVECT, MAT4); /* p3a = p3b X m4 (points) */ |
375 |
|
extern int xf(XF *, int, char **); /* interpret transform spec. */ |
376 |
+ |
|
377 |
+ |
/* cvrgb.c */ |
378 |
+ |
extern void mgf2rgb(C_COLOR *cin, double intensity, float cout[3]); |
379 |
|
|
380 |
|
|
381 |
|
/************************************************************************ |