TestEntries.cpp
上传用户:gb3593
上传日期:2022-01-07
资源大小:3028k
文件大小:3k
源码类别:

游戏引擎

开发平台:

Visual C++

  1. /*
  2. * Copyright (c) 2006-2009 Erin Catto http://www.gphysics.com
  3. *
  4. * This software is provided 'as-is', without any express or implied
  5. * warranty.  In no event will the authors be held liable for any damages
  6. * arising from the use of this software.
  7. * Permission is granted to anyone to use this software for any purpose,
  8. * including commercial applications, and to alter it and redistribute it
  9. * freely, subject to the following restrictions:
  10. * 1. The origin of this software must not be misrepresented; you must not
  11. * claim that you wrote the original software. If you use this software
  12. * in a product, an acknowledgment in the product documentation would be
  13. * appreciated but is not required.
  14. * 2. Altered source versions must be plainly marked as such, and must not be
  15. * misrepresented as being the original software.
  16. * 3. This notice may not be removed or altered from any source distribution.
  17. */
  18. #include "../Framework/Test.h"
  19. #include "../Framework/Render.h"
  20. #include "../../freeglut/GL/glut.h"
  21. #include <cstring>
  22. #include "ApplyForce.h"
  23. #include "BodyTypes.h"
  24. #include "Breakable.h"
  25. #include "Bridge.h"
  26. #include "Cantilever.h"
  27. #include "ContinuousTest.h"
  28. #include "Chain.h"
  29. #include "CharacterCollision.h"
  30. #include "CollisionFiltering.h"
  31. #include "CollisionProcessing.h"
  32. #include "CompoundShapes.h"
  33. #include "Confined.h"
  34. #include "DistanceTest.h"
  35. #include "Dominos.h"
  36. #include "DynamicTreeTest.h"
  37. #include "EdgeShapes.h"
  38. #include "Gears.h"
  39. #include "LineJoint.h"
  40. #include "OneSidedPlatform.h"
  41. #include "PolyCollision.h"
  42. #include "PolyShapes.h"
  43. #include "Prismatic.h"
  44. #include "Pulleys.h"
  45. #include "Pyramid.h"
  46. #include "RayCast.h"
  47. #include "Revolute.h"
  48. #include "SensorTest.h"
  49. #include "ShapeEditing.h"
  50. #include "SliderCrank.h"
  51. #include "SphereStack.h"
  52. #include "TheoJansen.h"
  53. #include "TimeOfImpact.h"
  54. #include "VaryingFriction.h"
  55. #include "VaryingRestitution.h"
  56. #include "VerticalStack.h"
  57. #include "Web.h"
  58. TestEntry g_testEntries[] =
  59. {
  60. {"Time of Impact", TimeOfImpact::Create},
  61. {"Ray-Cast", RayCast::Create},
  62. {"One-Sided Platform", OneSidedPlatform::Create},
  63. {"Confined", Confined::Create},
  64. {"Vertical Stack", VerticalStack::Create},
  65. {"Pyramid", Pyramid::Create},
  66. {"Varying Restitution", VaryingRestitution::Create},
  67. {"Theo Jansen's Walker", TheoJansen::Create},
  68. {"Body Types", BodyTypes::Create},
  69. {"Character Collision", CharacterCollision::Create},
  70. {"Prismatic", Prismatic::Create},
  71. {"Edge Shapes", EdgeShapes::Create},
  72. {"Continuous Test", ContinuousTest::Create},
  73. {"PolyCollision", PolyCollision::Create},
  74. {"Polygon Shapes", PolyShapes::Create},
  75. {"Apply Force", ApplyForce::Create},
  76. {"Cantilever", Cantilever::Create},
  77. {"SphereStack", SphereStack::Create},
  78. {"Bridge", Bridge::Create},
  79. {"Breakable", Breakable::Create},
  80. {"Chain", Chain::Create},
  81. {"Collision Filtering", CollisionFiltering::Create},
  82. {"Collision Processing", CollisionProcessing::Create},
  83. {"Compound Shapes", CompoundShapes::Create},
  84. {"Distance Test", DistanceTest::Create},
  85. {"Dominos", Dominos::Create},
  86. {"Dynamic Tree", DynamicTreeTest::Create},
  87. {"Gears", Gears::Create},
  88. {"Line Joint", LineJoint::Create},
  89. {"Pulleys", Pulleys::Create},
  90. {"Revolute", Revolute::Create},
  91. {"Sensor Test", SensorTest::Create},
  92. {"Shape Editing", ShapeEditing::Create},
  93. {"Slider Crank", SliderCrank::Create},
  94. {"Varying Friction", VaryingFriction::Create},
  95. {"Web", Web::Create},
  96. {NULL, NULL}
  97. };