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

Comparing ray/src/rt/rview.c (file contents):
Revision 2.12 by greg, Tue Sep 7 16:11:12 1993 UTC vs.
Revision 2.14 by greg, Wed Dec 21 09:52:07 1994 UTC

# Line 41 | Line 41 | double srcsizerat = 0.;                /* maximum ratio source size/
41   double  specthresh = .3;                /* specular sampling threshold */
42   double  specjitter = 1.;                /* specular sampling jitter */
43  
44 + int  backvis = 1;                       /* back face visibility */
45 +
46   int  maxdepth = 4;                      /* maximum recursion depth */
47   double  minweight = 1e-2;               /* minimum ray weight */
48  
# Line 226 | Line 228 | again:
228                  getexposure(args);
229                  break;
230          case 's':                               /* set a parameter */
231 <                if (badcom("set"))
231 >                if (badcom("set")) {
232 > #ifdef  SIGTSTP
233 >                        if (!badcom("stop"))
234 >                                goto dostop;
235 > #endif
236                          goto commerr;
237 +                }
238                  setparam(args);
239                  break;
240          case 'n':                               /* new picture */
# Line 261 | Line 268 | again:
268                  break;
269          case 'r':                               /* rotate/repaint */
270                  if (badcom("rotate")) {
271 <                        if (badcom("repaint"))
272 <                                goto commerr;
271 >                        if (badcom("repaint")) {
272 >                                if (badcom("redraw"))
273 >                                        goto commerr;
274 >                                redraw();
275 >                                break;
276 >                        }
277                          getrepaint(args);
278                          break;
279                  }
280                  getrotate(args);
281                  break;
282          case 'p':                               /* pivot view */
283 <                if (badcom("pivot"))
284 <                        goto commerr;
283 >                if (badcom("pivot")) {
284 >                        if (badcom("pause"))
285 >                                goto commerr;
286 >                        goto again;
287 >                }
288                  getpivot(args);
289                  break;
290          case CTRL('R'):                         /* redraw */
# Line 288 | Line 302 | again:
302          case CTRL('C'):                         /* interrupt */
303                  goto again;
304   #ifdef  SIGTSTP
305 <        case CTRL('Z'):                         /* stop */
305 >        case CTRL('Z'):;                        /* stop */
306 > dostop:
307                  devclose();
308                  kill(0, SIGTSTP);
309                  /* pc stops here */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines