home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume18 / mtvraytrace / part01 / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-03-26  |  1.3 KB  |  44 lines

  1. /***********************************************************************
  2.  * $Log:    config.h,v $
  3.  * Revision 1.2  88/09/12  13:02:06  markv
  4.  * Changed BUNCHINGFACTOR to something larger.
  5.  * Added defines for compilers which don't support void.
  6.  * Added a conditional define for SHADOW_CACHING
  7.  * 
  8.  * Revision 1.1  88/09/11  11:00:48  markv
  9.  * Initial revision
  10.  * 
  11.  ***********************************************************************/
  12.  
  13. #ifdef SYS_V
  14. #define index     strchr
  15. #define rindex     strrchr
  16. #endif /* SYS_V */
  17.  
  18. #define        NSLABS        (3)
  19. #define        BUNCHINGFACTOR    (4)
  20. #define        PQSIZE        (100)
  21.  
  22. #define        XMAX        (1024)
  23. #define        YMAX        (1024)
  24. #define        MAXLIGHTS    (10)
  25. #define        MAXPRIMS    (40000)
  26. #define        MAXLEVEL     (5)
  27.  
  28. /***********************************************************************
  29.  * If your compiler doesn't grok the void type, then define NO_VOID
  30.  * here...
  31.  ***********************************************************************/
  32.  
  33. /* #define NO_VOID */
  34. #ifdef        NO_VOID
  35. #define        void        char
  36. #endif         /* NO_VOID */
  37.  
  38. /***********************************************************************
  39.  * Shadow caching is an interesting optimization.  I'd leave it in, 
  40.  * I think it can really only help.
  41.  ***********************************************************************/
  42.  
  43. #define SHADOW_CACHING
  44.