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 MIX_PICT 45 /* mixing picture */ |
63 |
> |
#define MAT_DIRECT1 46 /* unidirecting material */ |
64 |
> |
#define MAT_DIRECT2 47 /* bidirecting material */ |
65 |
|
/* number of object types */ |
66 |
< |
#define NUMOTYPE 46 |
66 |
> |
#define NUMOTYPE 48 |
67 |
|
/* type flags */ |
68 |
|
#define T_S 01 /* surface (object) */ |
69 |
|
#define T_M 02 /* material */ |
88 |
|
#define isvolume(t) (ofun[t].flags & T_V) |
89 |
|
#define ismodifier(t) (!(ofun[t].flags & (T_S|T_V))) |
90 |
|
#define ismaterial(t) (ofun[t].flags & T_M) |
89 |
– |
#define istexture(t) (ofun[t].flags & (T_P|T_T|T_X)) |
91 |
|
#define islight(t) (ofun[t].flags & T_L) |
92 |
|
#define isvlight(t) (ofun[t].flags & T_LV) |
93 |
|
#define hasdata(t) (ofun[t].flags & (T_D|T_I)) |
94 |
|
#define hasfunc(t) (ofun[t].flags & (T_F|T_D|T_I)) |
95 |
|
#define hastext(t) (ofun[t].flags & T_E) |
96 |
+ |
#define isflat(t) ((t)==OBJ_FACE || (t)==OBJ_RING) |
97 |
|
|
98 |
|
extern int o_default(); |
99 |
|
/* type list initialization */ |
127 |
|
{ "light", T_M|T_L, o_default }, \ |
128 |
|
{ "illum", T_M|T_L, o_default }, \ |
129 |
|
{ "spotlight", T_M|T_L, o_default }, \ |
130 |
+ |
{ "mist", T_M, o_default }, \ |
131 |
|
{ "mirror", T_M|T_LV, o_default }, \ |
132 |
|
{ "transfunc", T_M|T_F, o_default }, \ |
133 |
|
{ "BRTDfunc", T_M|T_F, o_default }, \ |
142 |
|
{ "mixfunc", T_X|T_F, o_default }, \ |
143 |
|
{ "mixdata", T_X|T_D, o_default }, \ |
144 |
|
{ "mixtext", T_X|T_E, o_default }, \ |
145 |
+ |
{ "mixpict", T_X|T_I, o_default }, \ |
146 |
|
{ "prism1", T_M|T_F|T_LV, o_default }, \ |
147 |
|
{ "prism2", T_M|T_F|T_LV, o_default }, \ |
148 |
|
} |