ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/otypes.h
(Generate patch)

Comparing ray/src/common/otypes.h (file contents):
Revision 2.2 by greg, Sat Jan 4 19:51:21 1992 UTC vs.
Revision 2.4 by greg, Wed Jan 12 15:55:08 1994 UTC

# Line 84 | Line 84 | extern FUN  ofun[];                    /* our type list */
84  
85   #define  issurface(t)   (ofun[t].flags & T_S)
86   #define  isvolume(t)    (ofun[t].flags & T_V)
87 < #define  ismodifier(t)  (!issurface(t))
87 > #define  ismodifier(t)  (!(ofun[t].flags & (T_S|T_V)))
88   #define  ismaterial(t)  (ofun[t].flags & T_M)
89 #define  istexture(t)   (ofun[t].flags & (T_P|T_T|T_X))
89   #define  islight(t)     (ofun[t].flags & T_L)
90   #define  isvlight(t)    (ofun[t].flags & T_LV)
91   #define  hasdata(t)     (ofun[t].flags & (T_D|T_I))
# Line 101 | Line 100 | extern int  o_default();
100                                  { "texfunc",    T_T|T_F,        o_default }, \
101                                  { "ring",       T_S,            o_default }, \
102                                  { "cylinder",   T_S,            o_default }, \
103 <                                { "instance",   T_S|T_V,        o_default }, \
103 >                                { "instance",   T_V,            o_default }, \
104                                  { "cup",        T_S,            o_default }, \
105                                  { "bubble",     T_S,            o_default }, \
106                                  { "tube",       T_S,            o_default }, \

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines