ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/otspecial.h
Revision: 2.7
Committed: Tue Jun 22 13:40:54 2004 UTC (19 years, 10 months ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: rad4R2P2, rad5R0, rad5R1, rad3R7P2, rad3R7P1, rad4R2, rad4R1, rad4R0, rad3R6, rad3R6P1, rad3R8, rad3R9, rad4R2P1
Changes since 2.6: +3 -1 lines
Log Message:
Added isopaque() macro to otspecial.h

File Contents

# User Rev Content
1 greg 2.7 /* RCSid $Id: otspecial.h,v 2.6 2003/12/31 01:50:02 greg Exp $ */
2 greg 1.1 /*
3     * Special type flags for objects used in rendering.
4     * Depends on definitions in otypes.h
5 greg 2.2 */
6 schorsch 2.4 #ifndef _RAD_OTSPECIAL_H_
7     #define _RAD_OTSPECIAL_H_
8     #ifdef __cplusplus
9     extern "C" {
10     #endif
11 greg 1.1
12     /* flag for materials to ignore during irradiance comp. */
13     #define T_IRR_IGN T_SP1
14 greg 2.6
15     /* flag for completely opaque materials */
16     #define T_OPAQUE T_SP2
17 greg 1.1
18     #define irr_ignore(t) (ofun[t].flags & T_IRR_IGN)
19 schorsch 2.4
20 greg 2.7 #define isopaque(t) (ofun[t].flags & T_OPAQUE)
21    
22 schorsch 2.4
23     #ifdef __cplusplus
24     }
25     #endif
26     #endif /* _RAD_OTSPECIAL_H_ */
27