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

Comparing ray/src/util/glrad.c (file contents):
Revision 3.5 by gwlarson, Thu Jun 18 17:18:27 1998 UTC vs.
Revision 3.9 by gwlarson, Wed Jul 15 17:51:13 1998 UTC

# Line 173 | Line 173 | char   *argv[];
173                                          /* all done */
174          quit(0);
175   userr:
176 <        fprintf(stderr, "Usage: %s [-w][-b][-v view] rfile [VAR=value]..\n",
176 >        fprintf(stderr,
177 >                "Usage: %s [-w][-s][-b][-S][-v view] rfile [VAR=value]..\n",
178                          argv[0]);
179          quit(1);
180   }
# Line 423 | Line 424 | char  *id;
424          glDepthFunc(GL_LESS);
425          glShadeModel(GL_SMOOTH);
426          glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
427 <        glLightModelf(GL_LIGHT_MODEL_TWO_SIDE, GL_TRUE);
427 >        glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, GL_TRUE);
428          glEnable(GL_LIGHTING);
429 +        glFrontFace(GL_CCW);
430 +        glCullFace(GL_BACK);
431          if (backvis)
432                  glDisable(GL_CULL_FACE);
433 <        else {
431 <                glFrontFace(GL_CCW);
432 <                glCullFace(GL_BACK);
433 >        else
434                  glEnable(GL_CULL_FACE);
434        }
435          glDrawBuffer(GL_BACK);
436                                          /* figure out sensible view */
437          pwidth = (double)DisplayWidthMM(ourdisplay, ourscreen) /
# Line 809 | Line 809 | int    vwnum;
809                          ;
810          else if (vwnum >= MAXVIEW || vwl[vwnum].v == NULL)
811                  vwnum = 0;
812        if (vwnum == currentview)
813                return;
812          copylastv("standard view");
813          dev_view(vwl[currentview=vwnum].v);
814   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines