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

Comparing ray/src/hd/rhdobj.c (file contents):
Revision 3.9 by gwlarson, Thu Dec 31 12:57:06 1998 UTC vs.
Revision 3.10 by gwlarson, Fri Jan 29 15:33:36 1999 UTC

# Line 55 | Line 55 | typedef struct dobject {
55          FVECT   center;                 /* orig. object center */
56          FLOAT   radius;                 /* orig. object radius */
57          int     listid;                 /* GL display list identifier */
58 +        int     nlists;                 /* number of lists allocated */
59          int     rtp[3];                 /* associated rtrace process */
60          DLIGHTS *ol;                    /* object lights */
61          FULLXF  xfb;                    /* coordinate transform */
# Line 119 | Line 120 | register DOBJECT       *op;
120          }
121          dobjects = ohead.next;
122          if (!foundlink) {
123 <                glDeleteLists(op->listid, 1);
123 >                glDeleteLists(op->listid, op->nlists);
124                  close_process(op->rtp);
125          }
126          while (op->xfac)
# Line 577 | Line 578 | char   *oct, *nam;
578                                          /* load octree into display list */
579          dolights = 0;
580          domats = 1;
581 <        op->listid = rgl_octlist(fpath, op->center, &op->radius);
581 >        op->listid = rgl_octlist(fpath, op->center, &op->radius, &op->nlists);
582                                          /* start rtrace */
583          rtargv[RTARGC-1] = fpath;
584          rtargv[RTARGC] = NULL;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines