1 |
< |
/* Copyright (c) 1991 Regents of the University of California */ |
2 |
< |
|
3 |
< |
/* SCCSid "$SunId$ LBL" */ |
4 |
< |
|
1 |
> |
/* RCSid $Id$ */ |
2 |
|
/* |
3 |
|
* Special type flags for objects used in rendering. |
4 |
|
* Depends on definitions in otypes.h |
5 |
|
*/ |
6 |
+ |
#ifndef _RAD_OTSPECIAL_H_ |
7 |
+ |
#define _RAD_OTSPECIAL_H_ |
8 |
|
|
9 |
< |
/* flag for materials to ignore during irradiance comp. */ |
10 |
< |
#define T_IRR_IGN T_SP1 |
9 |
> |
#ifdef __cplusplus |
10 |
> |
extern "C" { |
11 |
> |
#endif |
12 |
> |
/* test for nominally transparent materials */ |
13 |
> |
#define T_TRANSP T_SP1 |
14 |
> |
#define istransp(m) (ofun[(m)->otype].flags & T_TRANSP || \ |
15 |
> |
(((m)->otype==MAT_WGMDF) & ((m)->oargs.nsargs > 5) \ |
16 |
> |
&& strcmp((m)->oargs.sarg[5], "0"))) |
17 |
|
|
18 |
< |
#define irr_ignore(t) (ofun[t].flags & T_IRR_IGN) |
18 |
> |
/* test for completely opaque materials */ |
19 |
> |
#define T_OPAQUE T_SP2 |
20 |
> |
#define isopaque(m) (ofun[(m)->otype].flags & T_OPAQUE || \ |
21 |
> |
(((m)->otype==MAT_WGMDF) & ((m)->oargs.nsargs > 5) \ |
22 |
> |
&& !strcmp((m)->oargs.sarg[5], "0"))) |
23 |
> |
|
24 |
> |
/* test if we have a BSDF proxy surface */ |
25 |
> |
#define isBSDFproxy(m) (((m)->otype==MAT_BSDF) & ((m)->oargs.nsargs > 0) \ |
26 |
> |
&& strcmp((m)->oargs.sarg[0], "0")) |
27 |
> |
|
28 |
> |
/* defined in initotypes.c */ |
29 |
> |
extern OBJREC *findmaterial(OBJREC *o); |
30 |
> |
|
31 |
> |
#ifdef __cplusplus |
32 |
> |
} |
33 |
> |
#endif |
34 |
> |
|
35 |
> |
#endif /* _RAD_OTSPECIAL_H_ */ |