home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / raytrace / pxm_ray / pxm_ray.lha / pxm-ray / host_main.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-12-09  |  395 b   |  32 lines

  1.  
  2. /*
  3.  * main subroutine call for the ray-tracer
  4.  *    Use:  % ray scenename resolution
  5.  */
  6.  
  7. /*
  8.  *    (c) 1988 by George Kyriazis
  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 != 3) {
  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.     initialize();
  28.     readfile(argv[1]);
  29.     raytrace();
  30. }
  31.  
  32.