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.4 by greg, Wed Jan 12 15:55:08 1994 UTC vs.
Revision 2.9 by greg, Tue Feb 25 02:47:21 2003 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1992 Regents of the University of California */
2 <
3 < /* SCCSid "$SunId$ LBL" */
4 <
1 > /* RCSid $Id$ */
2   /*
3   *  otypes.h - defines for object types.
7 *
8 *     1/28/86
4   */
5  
6 + #include "copyright.h"
7 +
8   typedef struct {
9          char  *funame;                  /* function name */
10          int  flags;                     /* type flags */
# Line 44 | Line 41 | typedef struct {
41   #define  MAT_LIGHT      27              /* primary light source */
42   #define  MAT_ILLUM      28              /* secondary light source */
43   #define  MAT_SPOT       29              /* spot light source */
44 < #define  MAT_MIRROR     30              /* mirror (secondary source) */
45 < #define  MAT_TFUNC      31              /* trans brdf function */
46 < #define  MAT_BRTDF      32              /* brtd function */
47 < #define  MAT_PDATA      33              /* plastic brdf data */
48 < #define  MAT_MDATA      34              /* metal brdf data */
49 < #define  MAT_TDATA      35              /* trans brdf data */
50 < #define  PAT_CFUNC      36              /* color function */
51 < #define  MAT_CLIP       37              /* clipping surface */
52 < #define  PAT_CDATA      38              /* color data */
53 < #define  PAT_CTEXT      39              /* colored text */
54 < #define  TEX_DATA       40              /* surface texture data */
55 < #define  MIX_FUNC       41              /* mixing function */
56 < #define  MIX_DATA       42              /* mixing data */
57 < #define  MIX_TEXT       43              /* mixing text */
58 < #define  MAT_DIRECT1    44              /* unidirecting material */
59 < #define  MAT_DIRECT2    45              /* bidirecting material */
44 > #define  MAT_MIST       30              /* mist medium */
45 > #define  MAT_MIRROR     31              /* mirror (secondary source) */
46 > #define  MAT_TFUNC      32              /* trans brdf function */
47 > #define  MAT_BRTDF      33              /* brtd function */
48 > #define  MAT_PDATA      34              /* plastic brdf data */
49 > #define  MAT_MDATA      35              /* metal brdf data */
50 > #define  MAT_TDATA      36              /* trans brdf data */
51 > #define  PAT_CFUNC      37              /* color function */
52 > #define  MAT_CLIP       38              /* clipping surface */
53 > #define  PAT_CDATA      39              /* color data */
54 > #define  PAT_CTEXT      40              /* colored text */
55 > #define  TEX_DATA       41              /* surface texture data */
56 > #define  MIX_FUNC       42              /* mixing function */
57 > #define  MIX_DATA       43              /* mixing data */
58 > #define  MIX_TEXT       44              /* mixing text */
59 > #define  MIX_PICT       45              /* mixing picture */
60 > #define  MAT_DIRECT1    46              /* unidirecting material */
61 > #define  MAT_DIRECT2    47              /* bidirecting material */
62                                  /* number of object types */
63 < #define  NUMOTYPE       46
63 > #define  NUMOTYPE       48
64                                  /* type flags */
65   #define  T_S            01              /* surface (object) */
66   #define  T_M            02              /* material */
# Line 91 | Line 90 | extern FUN  ofun[];                    /* our type list */
90   #define  hasdata(t)     (ofun[t].flags & (T_D|T_I))
91   #define  hasfunc(t)     (ofun[t].flags & (T_F|T_D|T_I))
92   #define  hastext(t)     (ofun[t].flags & T_E)
93 + #define  isflat(t)      ((t)==OBJ_FACE || (t)==OBJ_RING)
94  
95   extern int  o_default();
96                                          /* type list initialization */
# Line 124 | Line 124 | extern int  o_default();
124                                  { "light",      T_M|T_L,        o_default }, \
125                                  { "illum",      T_M|T_L,        o_default }, \
126                                  { "spotlight",  T_M|T_L,        o_default }, \
127 +                                { "mist",       T_M,            o_default }, \
128                                  { "mirror",     T_M|T_LV,       o_default }, \
129                                  { "transfunc",  T_M|T_F,        o_default }, \
130                                  { "BRTDfunc",   T_M|T_F,        o_default }, \
# Line 138 | Line 139 | extern int  o_default();
139                                  { "mixfunc",    T_X|T_F,        o_default }, \
140                                  { "mixdata",    T_X|T_D,        o_default }, \
141                                  { "mixtext",    T_X|T_E,        o_default }, \
142 +                                { "mixpict",    T_X|T_I,        o_default }, \
143                                  { "prism1",     T_M|T_F|T_LV,   o_default }, \
144                                  { "prism2",     T_M|T_F|T_LV,   o_default }, \
145                          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines