ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/preload.c
(Generate patch)

Comparing ray/src/rt/preload.c (file contents):
Revision 2.9 by greg, Thu Sep 15 18:06:23 2005 UTC vs.
Revision 2.12 by greg, Tue Aug 16 18:09:53 2011 UTC

# Line 9 | Line 9 | static const char      RCSid[] = "$Id$";
9  
10   #include "copyright.h"
11  
12 < #include "standard.h"
13 < #include "octree.h"
14 < #include "object.h"
12 > #include "ray.h"
13   #include "otypes.h"
14   #include "face.h"
15   #include "cone.h"
16   #include "instance.h"
17   #include "mesh.h"
20 #include "color.h"
18   #include "data.h"
19   #include "func.h"
20 < #include "ray.h"
20 > #include "bsdf.h"
21  
22  
23   /* KEEP THIS ROUTINE CONSISTENT WITH THE DIFFERENT OBJECT FUNCTIONS! */
# Line 102 | Line 99 | load_os(                       /* load associated data for object */
99                  return(1);
100          case MAT_BRTDF:         /* BRDTfunc material */
101                  getfunc(op, 9, 0x3f, 0);
102 +                return(1);
103 +        case MAT_BSDF:          /* BSDF material */
104 +                if (op->oargs.nsargs < 6)
105 +                        goto sargerr;
106 +                getfunc(op, 5, 0x1d, 1);
107 +                loadBSDF(op->oargs.sarg[1]);
108                  return(1);
109          case MAT_PDATA:         /* plastic BRDF data */
110          case MAT_MDATA:         /* metal BRDF data */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines