home *** CD-ROM | disk | FTP | other *** search
/ Altsys Virtuoso 2.0K / virtuoso_20k.iso / DemoApps / Graphics / Viewers / raytracers / rpi / Source / main.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-10-08  |  410 b   |  32 lines

  1.  
  2. /*
  3.  * (c) 1988 by George Kyriazis
  4.  */
  5.  
  6. /*
  7.  * main subroutine call for the ray-tracer
  8.  *    Use:  % ray scenename resolution outfile
  9.  */
  10.  
  11. #include    "ray.h"
  12. #include    <stdio.h>
  13.  
  14. main(argc, argv)
  15. int    argc;
  16. char    **argv;
  17. {
  18.  
  19.     if(argc != 4) {
  20.         fprintf(stderr,"Usage: %s scenename resolution outfile\n",
  21.             argv[0]);
  22.         exit(1);
  23.     }
  24.  
  25.     xres = yres = atoi(argv[2]);
  26.  
  27.     readfile(argv[1]);
  28.     initialize();
  29.     raytrace(argv[3]);
  30. }
  31.  
  32.