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.6 by greg, Fri Dec 8 18:16:13 1995 UTC

# Line 44 | Line 44 | typedef struct {
44   #define  MAT_LIGHT      27              /* primary light source */
45   #define  MAT_ILLUM      28              /* secondary light source */
46   #define  MAT_SPOT       29              /* spot light source */
47 < #define  MAT_MIRROR     30              /* mirror (secondary source) */
48 < #define  MAT_TFUNC      31              /* trans brdf function */
49 < #define  MAT_BRTDF      32              /* brtd function */
50 < #define  MAT_PDATA      33              /* plastic brdf data */
51 < #define  MAT_MDATA      34              /* metal brdf data */
52 < #define  MAT_TDATA      35              /* trans brdf data */
53 < #define  PAT_CFUNC      36              /* color function */
54 < #define  MAT_CLIP       37              /* clipping surface */
55 < #define  PAT_CDATA      38              /* color data */
56 < #define  PAT_CTEXT      39              /* colored text */
57 < #define  TEX_DATA       40              /* surface texture data */
58 < #define  MIX_FUNC       41              /* mixing function */
59 < #define  MIX_DATA       42              /* mixing data */
60 < #define  MIX_TEXT       43              /* mixing text */
61 < #define  MAT_DIRECT1    44              /* unidirecting material */
62 < #define  MAT_DIRECT2    45              /* bidirecting material */
47 > #define  MAT_MIST       30              /* mist medium */
48 > #define  MAT_MIRROR     31              /* mirror (secondary source) */
49 > #define  MAT_TFUNC      32              /* trans brdf function */
50 > #define  MAT_BRTDF      33              /* brtd function */
51 > #define  MAT_PDATA      34              /* plastic brdf data */
52 > #define  MAT_MDATA      35              /* metal brdf data */
53 > #define  MAT_TDATA      36              /* trans brdf data */
54 > #define  PAT_CFUNC      37              /* color function */
55 > #define  MAT_CLIP       38              /* clipping surface */
56 > #define  PAT_CDATA      39              /* color data */
57 > #define  PAT_CTEXT      40              /* colored text */
58 > #define  TEX_DATA       41              /* surface texture data */
59 > #define  MIX_FUNC       42              /* mixing function */
60 > #define  MIX_DATA       43              /* mixing data */
61 > #define  MIX_TEXT       44              /* mixing text */
62 > #define  MAT_DIRECT1    45              /* unidirecting material */
63 > #define  MAT_DIRECT2    46              /* bidirecting material */
64                                  /* number of object types */
65 < #define  NUMOTYPE       46
65 > #define  NUMOTYPE       47
66                                  /* type flags */
67   #define  T_S            01              /* surface (object) */
68   #define  T_M            02              /* material */
# Line 84 | Line 85 | extern FUN  ofun[];                    /* our type list */
85  
86   #define  issurface(t)   (ofun[t].flags & T_S)
87   #define  isvolume(t)    (ofun[t].flags & T_V)
88 < #define  ismodifier(t)  (!issurface(t))
88 > #define  ismodifier(t)  (!(ofun[t].flags & (T_S|T_V)))
89   #define  ismaterial(t)  (ofun[t].flags & T_M)
89 #define  istexture(t)   (ofun[t].flags & (T_P|T_T|T_X))
90   #define  islight(t)     (ofun[t].flags & T_L)
91   #define  isvlight(t)    (ofun[t].flags & T_LV)
92   #define  hasdata(t)     (ofun[t].flags & (T_D|T_I))
93   #define  hasfunc(t)     (ofun[t].flags & (T_F|T_D|T_I))
94   #define  hastext(t)     (ofun[t].flags & T_E)
95 + #define  isflat(t)      ((t)==OBJ_FACE || (t)==OBJ_RING)
96  
97   extern int  o_default();
98                                          /* type list initialization */
# Line 101 | Line 102 | extern int  o_default();
102                                  { "texfunc",    T_T|T_F,        o_default }, \
103                                  { "ring",       T_S,            o_default }, \
104                                  { "cylinder",   T_S,            o_default }, \
105 <                                { "instance",   T_S|T_V,        o_default }, \
105 >                                { "instance",   T_V,            o_default }, \
106                                  { "cup",        T_S,            o_default }, \
107                                  { "bubble",     T_S,            o_default }, \
108                                  { "tube",       T_S,            o_default }, \
# Line 125 | Line 126 | extern int  o_default();
126                                  { "light",      T_M|T_L,        o_default }, \
127                                  { "illum",      T_M|T_L,        o_default }, \
128                                  { "spotlight",  T_M|T_L,        o_default }, \
129 +                                { "mist",       T_M,            o_default }, \
130                                  { "mirror",     T_M|T_LV,       o_default }, \
131                                  { "transfunc",  T_M|T_F,        o_default }, \
132                                  { "BRTDfunc",   T_M|T_F,        o_default }, \

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines