home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2213 / data.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-28  |  957 b   |  42 lines

  1.  
  2. /*
  3.  * data.c - Contains all of the data declarations.
  4.  */
  5.  
  6. #include <math.h>
  7. #include "rt.h"
  8.  
  9. int             verbose = 0;
  10. char           *my_name;
  11. char            input_file[64];
  12. char            output_file[64];
  13. int             nlights = 0;
  14. int             nobjects = 0;
  15. int             shadow = 1;
  16. int             reflect = 1;
  17. int             refract = 1;
  18. int        y_start = 0;
  19. int        y_inc = 1;
  20. int        do_image_size = 1;
  21.  
  22. VIEW_INFO       view;
  23. SURFACE        *cur_surface;
  24. BACKGROUND      bkgnd;
  25. LIGHT          *lights[MAX_LIGHTS];
  26. OBJECT         *objects[MAX_PRIMS];
  27. OBJECT         *object_stack[STACK_SIZE];
  28. OBJECT         *root;
  29. INSTANCE       *instances[MAX_INSTANCE];
  30.  
  31. int             num_instance = 0;
  32. int             stack_cnt = 0;
  33. int             sample_cnt = 1;
  34.  
  35. int             n_rays = 0;
  36. int             n_intersects = 0;
  37. int             n_shadows = 0;
  38. int             n_shadinter = 0;
  39. int             n_reflect = 0;
  40. int             n_refract = 0;
  41.  
  42.