7 |
|
|
8 |
|
#include "copyright.h" |
9 |
|
|
10 |
< |
#include "standard.h" |
10 |
> |
#include "ray.h" |
11 |
|
#include "otypes.h" |
12 |
|
#include "rtotypes.h" |
13 |
|
#include "otspecial.h" |
16 |
|
FUN ofun[NUMOTYPE] = INIT_OTYPE; |
17 |
|
|
18 |
|
|
19 |
< |
extern void |
19 |
> |
void |
20 |
|
initotypes(void) /* initialize ofun array */ |
21 |
|
{ |
22 |
|
ofun[OBJ_SPHERE].funp = |
48 |
|
ofun[MAT_PLASTIC2].flags |= T_OPAQUE; |
49 |
|
ofun[MAT_METAL2].flags |= T_OPAQUE; |
50 |
|
ofun[MAT_TRANS2].flags |= T_IRR_IGN; |
51 |
+ |
ofun[MAT_ASHIKHMIN].funp = m_ashikhmin; |
52 |
+ |
ofun[MAT_ASHIKHMIN].flags |= T_OPAQUE; |
53 |
|
ofun[MAT_DIELECTRIC].funp = |
54 |
|
ofun[MAT_INTERFACE].funp = m_dielectric; |
55 |
|
ofun[MAT_DIELECTRIC].flags |= T_IRR_IGN; |
63 |
|
ofun[MAT_DIRECT2].funp = m_direct; |
64 |
|
ofun[MAT_CLIP].funp = m_clip; |
65 |
|
ofun[MAT_BRTDF].funp = m_brdf; |
66 |
+ |
ofun[MAT_BSDF].funp = m_bsdf; |
67 |
|
ofun[MAT_PFUNC].funp = |
68 |
|
ofun[MAT_MFUNC].funp = |
69 |
|
ofun[MAT_PDATA].funp = |
90 |
|
} |
91 |
|
|
92 |
|
|
93 |
< |
extern int |
93 |
> |
int |
94 |
|
o_default(OBJREC *o, RAY *r) /* default action is error */ |
95 |
|
{ |
96 |
< |
error(CONSISTENCY, "unexpected object call"); |
97 |
< |
/* call to pull in freeobjmem.o */ /* XXX ? */ |
96 |
> |
objerror(o, CONSISTENCY, "unexpected object call"); |
97 |
> |
/* unused call to load freeobjmem.o */ |
98 |
|
free_objs(0, 0); |
99 |
+ |
return(0); |
100 |
|
} |