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.5 by greg, Fri Sep 15 14:55:08 1995 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))
92   #define  hasfunc(t)     (ofun[t].flags & (T_F|T_D|T_I))
93   #define  hastext(t)     (ofun[t].flags & T_E)
94 + #define  isflat(t)      ((t)==OBJ_FACE || (t)==OBJ_RING)
95  
96   extern int  o_default();
97                                          /* type list initialization */
# Line 101 | Line 101 | extern int  o_default();
101                                  { "texfunc",    T_T|T_F,        o_default }, \
102                                  { "ring",       T_S,            o_default }, \
103                                  { "cylinder",   T_S,            o_default }, \
104 <                                { "instance",   T_S|T_V,        o_default }, \
104 >                                { "instance",   T_V,            o_default }, \
105                                  { "cup",        T_S,            o_default }, \
106                                  { "bubble",     T_S,            o_default }, \
107                                  { "tube",       T_S,            o_default }, \

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines