RENDER.H 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /****************************************************************************
  2. * render.h
  3. *
  4. * This module contains all defines, typedefs, and prototypes for RENDER.C.
  5. *
  6. * from Persistence of Vision(tm) Ray Tracer
  7. * Copyright 1996,1999 Persistence of Vision Team
  8. *---------------------------------------------------------------------------
  9. * NOTICE: This source code file is provided so that users may experiment
  10. * with enhancements to POV-Ray and to port the software to platforms other
  11. * than those supported by the POV-Ray Team. There are strict rules under
  12. * which you are permitted to use this file. The rules are in the file
  13. * named POVLEGAL.DOC which should be distributed with this file.
  14. * If POVLEGAL.DOC is not available or for more info please contact the POV-Ray
  15. * Team Coordinator by email to team-coord@povray.org or visit us on the web at
  16. * http://www.povray.org. The latest version of POV-Ray may be found at this site.
  17. *
  18. * This program is based on the popular DKB raytracer version 2.12.
  19. * DKBTrace was originally written by David K. Buck.
  20. * DKBTrace Ver 2.0-2.12 were written by David K. Buck & Aaron A. Collins.
  21. *
  22. *****************************************************************************/
  23. #ifndef RENDER_H
  24. #define RENDER_H
  25. /*****************************************************************************
  26. * Global preprocessor defines
  27. ******************************************************************************/
  28. /*****************************************************************************
  29. * Global typedefs
  30. ******************************************************************************/
  31. typedef enum
  32. {
  33. CSV,
  34. SYS,
  35. PPM,
  36. TARGA,
  37. PNG,
  38. NONE
  39. } Histogram_Types ;
  40. /*****************************************************************************
  41. * Global variables
  42. ******************************************************************************/
  43. extern int Trace_Level, Max_Trace_Level, Highest_Trace_Level;
  44. extern DBL ADC_Bailout;
  45. extern unsigned long *histogram_grid ;
  46. extern unsigned long max_histogram_value ;
  47. extern FILE_HANDLE *Histogram_File_Handle ;
  48. /*****************************************************************************
  49. * Global functions
  50. ******************************************************************************/
  51. void Read_Rendered_Part (char *New_Fname);
  52. void Start_Tracing_Mosaic_Smooth (int StartPixelSize, int EndPixelSize);
  53. void Start_Tracing_Mosaic_Preview (int StartPixelSize, int EndPixelSize);
  54. void Start_Adaptive_Tracing (void);
  55. void Start_Non_Adaptive_Tracing (void);
  56. void Initialize_Renderer (void);
  57. void Terminate_Renderer (void);
  58. DBL Trace (RAY *Ray, COLOUR Colour, DBL Weight);
  59. void Check_User_Abort (int Do_Stats);
  60. void write_histogram (char *filename);
  61. void destroy_histogram (void);
  62. #endif