The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

110 lines
4.2KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2017 - ROLI Ltd.
  5. JUCE is an open source library subject to commercial or open-source
  6. licensing.
  7. By using JUCE, you agree to the terms of both the JUCE 5 End-User License
  8. Agreement and JUCE 5 Privacy Policy (both updated and effective as of the
  9. 27th April 2017).
  10. End User License Agreement: www.juce.com/juce-5-licence
  11. Privacy Policy: www.juce.com/juce-5-privacy-policy
  12. Or: You may also use this code under the terms of the GPL v3 (see
  13. www.gnu.org/licenses).
  14. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  15. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  16. DISCLAIMED.
  17. ==============================================================================
  18. */
  19. #ifdef JUCE_BOX2D_H_INCLUDED
  20. /* When you add this cpp file to your project, you mustn't include it in a file where you've
  21. already included any other headers - just put it inside a file on its own, possibly with your config
  22. flags preceding it, but don't include anything else. That also includes avoiding any automatic prefix
  23. header files that the compiler may be using.
  24. */
  25. #error "Incorrect use of JUCE cpp file"
  26. #endif
  27. #if defined (__clang__)
  28. #pragma clang diagnostic push
  29. #pragma clang diagnostic ignored "-Wsign-conversion"
  30. #pragma clang diagnostic ignored "-Wfloat-conversion"
  31. #elif defined (__GNUC__)
  32. #pragma GCC diagnostic push
  33. #pragma GCC diagnostic ignored "-Wunused-but-set-variable"
  34. #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
  35. #endif
  36. #include "juce_box2d.h"
  37. #include <cstdarg>
  38. using int8 = juce::int8;
  39. using int16 = juce::int16;
  40. using int32 = juce::int32;
  41. using uint8 = juce::uint8;
  42. using uint16 = juce::uint16;
  43. using uint32 = juce::uint32;
  44. #include "box2d/Collision/b2BroadPhase.cpp"
  45. #include "box2d/Collision/b2CollideCircle.cpp"
  46. #include "box2d/Collision/b2CollideEdge.cpp"
  47. #include "box2d/Collision/b2CollidePolygon.cpp"
  48. #include "box2d/Collision/b2Collision.cpp"
  49. #include "box2d/Collision/b2Distance.cpp"
  50. #include "box2d/Collision/b2DynamicTree.cpp"
  51. #include "box2d/Collision/b2TimeOfImpact.cpp"
  52. #include "box2d/Collision/Shapes/b2ChainShape.cpp"
  53. #include "box2d/Collision/Shapes/b2CircleShape.cpp"
  54. #include "box2d/Collision/Shapes/b2EdgeShape.cpp"
  55. #include "box2d/Collision/Shapes/b2PolygonShape.cpp"
  56. #include "box2d/Common/b2BlockAllocator.cpp"
  57. #include "box2d/Common/b2Draw.cpp"
  58. #include "box2d/Common/b2Math.cpp"
  59. #include "box2d/Common/b2Settings.cpp"
  60. #include "box2d/Common/b2StackAllocator.cpp"
  61. #include "box2d/Common/b2Timer.cpp"
  62. #include "box2d/Dynamics/b2Body.cpp"
  63. #include "box2d/Dynamics/b2ContactManager.cpp"
  64. #include "box2d/Dynamics/b2Fixture.cpp"
  65. #include "box2d/Dynamics/b2Island.cpp"
  66. #include "box2d/Dynamics/b2World.cpp"
  67. #include "box2d/Dynamics/b2WorldCallbacks.cpp"
  68. #include "box2d/Dynamics/Contacts/b2ChainAndCircleContact.cpp"
  69. #include "box2d/Dynamics/Contacts/b2ChainAndPolygonContact.cpp"
  70. #include "box2d/Dynamics/Contacts/b2CircleContact.cpp"
  71. #include "box2d/Dynamics/Contacts/b2Contact.cpp"
  72. #include "box2d/Dynamics/Contacts/b2ContactSolver.cpp"
  73. #include "box2d/Dynamics/Contacts/b2EdgeAndCircleContact.cpp"
  74. #include "box2d/Dynamics/Contacts/b2EdgeAndPolygonContact.cpp"
  75. #include "box2d/Dynamics/Contacts/b2PolygonAndCircleContact.cpp"
  76. #include "box2d/Dynamics/Contacts/b2PolygonContact.cpp"
  77. #include "box2d/Dynamics/Joints/b2DistanceJoint.cpp"
  78. #include "box2d/Dynamics/Joints/b2FrictionJoint.cpp"
  79. #include "box2d/Dynamics/Joints/b2GearJoint.cpp"
  80. #include "box2d/Dynamics/Joints/b2Joint.cpp"
  81. #include "box2d/Dynamics/Joints/b2MouseJoint.cpp"
  82. #include "box2d/Dynamics/Joints/b2PrismaticJoint.cpp"
  83. #include "box2d/Dynamics/Joints/b2PulleyJoint.cpp"
  84. #include "box2d/Dynamics/Joints/b2RevoluteJoint.cpp"
  85. #include "box2d/Dynamics/Joints/b2RopeJoint.cpp"
  86. #include "box2d/Dynamics/Joints/b2WeldJoint.cpp"
  87. #include "box2d/Dynamics/Joints/b2WheelJoint.cpp"
  88. #include "box2d/Rope/b2Rope.cpp"
  89. #include "utils/juce_Box2DRenderer.cpp"
  90. #if defined (__clang__)
  91. #pragma clang diagnostic pop
  92. #elif defined (__GNUC__)
  93. #pragma GCC diagnostic pop
  94. #endif