PL_CONF.H 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /******************************************************************************
  2. pl_conf.h
  3. PLUSH 3D VERSION 1.2 CONFIGURATION HEADER
  4. Copyright (c) 1996-2000, Justin Frankel
  5. ******************************************************************************/
  6. #ifndef _PL_CONF_H_
  7. #define _PL_CONF_H_
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. /* Maximum children per object */
  12. #define PL_MAX_CHILDREN (16)
  13. /* Maximum lights per scene -- if you exceed this, they will be ignored */
  14. #define PL_MAX_LIGHTS (32)
  15. /* Maximum number of triangles per scene -- if you exceed this, entire
  16. objects will be ignored. You can increase this if you need it. It takes
  17. approximately 8*PL_MAX_TRIANGLES bytes of memory. i.e. the default of
  18. 16384 consumes 128kbytes of memory. not really a big deal,
  19. */
  20. #define PL_MAX_TRIANGLES (16384)
  21. typedef float pl_ZBuffer; /* z-buffer type (must be float) */
  22. typedef float pl_Float; /* General floating point */
  23. typedef float pl_IEEEFloat32; /* IEEE 32 bit floating point */
  24. typedef signed long int pl_sInt32; /* signed 32 bit integer */
  25. typedef unsigned long int pl_uInt32; /* unsigned 32 bit integer */
  26. typedef signed short int pl_sInt16; /* signed 16 bit integer */
  27. typedef unsigned short int pl_uInt16; /* unsigned 16 bit integer */
  28. typedef signed int pl_sInt; /* signed optimal integer */
  29. typedef unsigned int pl_uInt; /* unsigned optimal integer */
  30. typedef int pl_Bool; /* boolean */
  31. typedef unsigned char pl_uChar; /* unsigned 8 bit integer */
  32. typedef signed char pl_sChar; /* signed 8 bit integer */
  33. #ifdef __cplusplus
  34. }
  35. #endif
  36. #endif /* !_PL_CONF_H_ */