OPC_Settings.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  2. /*
  3. * OPCODE - Optimized Collision Detection
  4. * Copyright (C) 2001 Pierre Terdiman
  5. * Homepage: http://www.codercorner.com/Opcode.htm
  6. */
  7. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  8. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  9. /**
  10. * Contains compilation flags.
  11. * \file OPC_Settings.h
  12. * \author Pierre Terdiman
  13. * \date May, 12, 2001
  14. */
  15. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  16. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  17. // Include Guard
  18. #ifndef __OPC_SETTINGS_H__
  19. #define __OPC_SETTINGS_H__
  20. //! Use CPU comparisons (comment that line to use standard FPU compares)
  21. #define OPC_CPU_COMPARE
  22. //! Use FCOMI / FCMOV on Pentium-Pro based processors (comment that line to use plain C++)
  23. #define OPC_USE_FCOMI
  24. //! Use epsilon value in tri-tri overlap test
  25. #define OPC_TRITRI_EPSILON_TEST
  26. //! Use tree-coherence or not [not implemented yet]
  27. // #define OPC_USE_TREE_COHERENCE
  28. //! Use callbacks or direct pointers. Using callbacks might be a bit slower (but probably not much)
  29. // #define OPC_USE_CALLBACKS
  30. //! Support triangle and vertex strides or not. Using strides might be a bit slower (but probably not much)
  31. // #define OPC_USE_STRIDE
  32. //! Discard negative pointer in vanilla trees
  33. #define OPC_NO_NEG_VANILLA_TREE
  34. //! Use a callback in the ray collider
  35. // #define OPC_RAYHIT_CALLBACK
  36. // NB: no compilation flag to enable/disable stats since they're actually needed in the box/box overlap test
  37. #endif //__OPC_SETTINGS_H__