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

Comparing ray/src/cv/mgflib/context.c (file contents):
Revision 1.12 by greg, Fri Jul 1 10:18:38 1994 UTC vs.
Revision 1.13 by greg, Fri Jul 1 18:06:56 1994 UTC

# Line 269 | Line 269 | register char  **av;
269                  c_cmaterial->ts_c = *c_ccolor;
270                  c_cmaterial->clock++;
271                  return(MG_OK);
272 +        case MG_E_SIDES:        /* set number of sides */
273 +                if (ac != 2)
274 +                        return(MG_EARGC);
275 +                if (!isint(av[1]))
276 +                        return(MG_ETYPE);
277 +                i = atoi(av[1]);
278 +                if (i == 1)
279 +                        c_cmaterial->sided = 1;
280 +                else if (i == 2)
281 +                        c_cmaterial->sided = 0;
282 +                else
283 +                        return(MG_EILL);
284 +                c_cmaterial->clock++;
285 +                return(MG_OK);
286          }
287          return(MG_EUNK);
288   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines