No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 

100 líneas
2.0 KiB

  1. #ifndef BT_TYPE_DEFINITIONS_H
  2. #define BT_TYPE_DEFINITIONS_H
  3. ///This file provides some platform/compiler checks for common definitions
  4. #include "LinearMath/btScalar.h"
  5. #include "LinearMath/btMinMax.h"
  6. #ifdef PFX_USE_FREE_VECTORMATH
  7. #include "physics_effects/base_level/base/pfx_vectormath_include.win32.h"
  8. typedef Vectormath::Aos::Vector3 vmVector3;
  9. typedef Vectormath::Aos::Quat vmQuat;
  10. typedef Vectormath::Aos::Matrix3 vmMatrix3;
  11. typedef Vectormath::Aos::Transform3 vmTransform3;
  12. typedef Vectormath::Aos::Point3 vmPoint3;
  13. #else
  14. #include "vectormath/vmInclude.h"
  15. #endif//PFX_USE_FREE_VECTORMATH
  16. #ifdef _WIN32
  17. typedef union
  18. {
  19. unsigned int u;
  20. void *p;
  21. } addr64;
  22. #define USE_WIN32_THREADING 1
  23. #if defined(__MINGW32__) || defined(__CYGWIN__) || (defined (_MSC_VER) && _MSC_VER < 1300)
  24. #else
  25. #endif //__MINGW32__
  26. typedef unsigned char uint8_t;
  27. #ifndef __PHYSICS_COMMON_H__
  28. #ifndef PFX_USE_FREE_VECTORMATH
  29. #ifndef __BT_SKIP_UINT64_H
  30. typedef unsigned long int uint64_t;
  31. #endif //__BT_SKIP_UINT64_H
  32. #endif //PFX_USE_FREE_VECTORMATH
  33. typedef unsigned int uint32_t;
  34. #endif //__PHYSICS_COMMON_H__
  35. typedef unsigned short uint16_t;
  36. #include <malloc.h>
  37. #define memalign(alignment, size) malloc(size);
  38. #include <string.h> //memcpy
  39. #include <stdio.h>
  40. #define spu_printf printf
  41. #else
  42. #include <stdint.h>
  43. #include <stdlib.h>
  44. #include <string.h> //for memcpy
  45. #if defined (__CELLOS_LV2__)
  46. // Playstation 3 Cell SDK
  47. #include <spu_printf.h>
  48. #else
  49. // posix system
  50. #define USE_PTHREADS (1)
  51. #ifdef USE_LIBSPE2
  52. #include <stdio.h>
  53. #define spu_printf printf
  54. #define DWORD unsigned int
  55. typedef union
  56. {
  57. unsigned long long ull;
  58. unsigned int ui[2];
  59. void *p;
  60. } addr64;
  61. #endif // USE_LIBSPE2
  62. #endif //__CELLOS_LV2__
  63. #endif
  64. #ifdef __SPU__
  65. #include <stdio.h>
  66. #define printf spu_printf
  67. #endif
  68. /* Included here because we need uint*_t typedefs */
  69. #include "PpuAddressSpace.h"
  70. #endif //BT_TYPE_DEFINITIONS_H