POVPROTO.H 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /****************************************************************************
  2. * povproto.h
  3. *
  4. * This module defines the prototypes for all system-independent functions.
  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 POVPROTO_H
  24. #define POVPROTO_H
  25. /*****************************************************************************
  26. * Global preprocessor defines
  27. ******************************************************************************/
  28. /*****************************************************************************
  29. * Global typedefs
  30. ******************************************************************************/
  31. /*****************************************************************************
  32. * Global variables
  33. ******************************************************************************/
  34. /*****************************************************************************
  35. * Global functions
  36. ******************************************************************************/
  37. /* Prototypes for machine specific functions defined in "computer".c (ibm.c amiga.c unix.c etc.)*/
  38. void display_finished (void);
  39. void display_init (int width, int height);
  40. void display_close (void);
  41. void display_plot (int x, int y, unsigned char Red, unsigned char Green, unsigned char Blue, unsigned char Alpha);
  42. void display_plot_rect (int x1, int x2, int y1, int y2,
  43. unsigned char Red, unsigned char Green, unsigned char Blue, unsigned char Alpha);
  44. /* Prototypes for functions defined in mem.c */
  45. #include "mem.h"
  46. /* Prototypes for functions defined in userio.c */
  47. int CDECL Banner (char *format,...);
  48. int CDECL Warning (DBL level, char *format,...);
  49. int CDECL Render_Info (char *format,...);
  50. int CDECL Status_Info (char *format,...);
  51. int CDECL Statistics (char *format,...);
  52. int CDECL Error_Line (char *format,...);
  53. int CDECL Error (char *format,...);
  54. int CDECL Debug_Info (char *format, ...);
  55. void Terminate_POV (int i);
  56. #endif