Urho2D.cpp 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. // Copyright (c) 2008-2014 the Urho3D project.
  2. //
  3. // Permission is hereby granted, free of charge, to any person obtaining a copy
  4. // of this software and associated documentation files (the "Software"), to deal
  5. // in the Software without restriction, including without limitation the rights
  6. // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  7. // copies of the Software, and to permit persons to whom the Software is
  8. // furnished to do so, subject to the following conditions:
  9. //
  10. // The above copyright notice and this permission notice shall be included in
  11. // all copies or substantial portions of the Software.
  12. //
  13. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  14. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  15. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  16. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  17. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  18. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  19. // THE SOFTWARE.
  20. //
  21. #include "Precompiled.h"
  22. #include "AnimatedSprite2D.h"
  23. #include "AnimationSet2D.h"
  24. #include "CollisionBox2D.h"
  25. #include "CollisionChain2D.h"
  26. #include "CollisionCircle2D.h"
  27. #include "CollisionEdge2D.h"
  28. #include "CollisionPolygon2D.h"
  29. #include "CollisionShape2D.h"
  30. #include "Constraint2D.h"
  31. #include "ConstraintDistance2D.h"
  32. #include "ConstraintFriction2D.h"
  33. #include "ConstraintGear2D.h"
  34. #include "ConstraintMotor2D.h"
  35. #include "ConstraintMouse2D.h"
  36. #include "ConstraintPrismatic2D.h"
  37. #include "ConstraintPulley2D.h"
  38. #include "ConstraintRevolute2D.h"
  39. #include "ConstraintRope2D.h"
  40. #include "ConstraintWeld2D.h"
  41. #include "ConstraintWheel2D.h"
  42. #include "Context.h"
  43. #include "Drawable2D.h"
  44. #include "DrawableProxy2D.h"
  45. #include "MaterialCache2D.h"
  46. #include "ParticleEffect2D.h"
  47. #include "ParticleEmitter2D.h"
  48. #include "PhysicsWorld2D.h"
  49. #include "RigidBody2D.h"
  50. #include "Sprite2D.h"
  51. #include "SpriteSheet2D.h"
  52. #include "StaticSprite2D.h"
  53. #include "TileMap2D.h"
  54. #include "TileMapLayer2D.h"
  55. #include "TmxFile2D.h"
  56. #include "DebugNew.h"
  57. namespace Urho3D
  58. {
  59. const char* URHO2D_CATEGORY = "Urho2D";
  60. void RegisterUrho2DLibrary(Context* context)
  61. {
  62. MaterialCache2D::RegisterObject(context);
  63. DrawableProxy2D::RegisterObject(context);
  64. Sprite2D::RegisterObject(context);
  65. SpriteSheet2D::RegisterObject(context);
  66. // Must register objects from base to derived order
  67. Drawable2D::RegisterObject(context);
  68. StaticSprite2D::RegisterObject(context);
  69. AnimationSet2D::RegisterObject(context);
  70. AnimatedSprite2D::RegisterObject(context);
  71. ParticleEffect2D::RegisterObject(context);
  72. ParticleEmitter2D::RegisterObject(context);
  73. TmxFile2D::RegisterObject(context);
  74. TileMap2D::RegisterObject(context);
  75. TileMapLayer2D::RegisterObject(context);
  76. PhysicsWorld2D::RegisterObject(context);
  77. RigidBody2D::RegisterObject(context);
  78. CollisionShape2D::RegisterObject(context);
  79. CollisionBox2D::RegisterObject(context);
  80. CollisionChain2D::RegisterObject(context);
  81. CollisionCircle2D::RegisterObject(context);
  82. CollisionEdge2D::RegisterObject(context);
  83. CollisionPolygon2D::RegisterObject(context);
  84. Constraint2D::RegisterObject(context);
  85. ConstraintDistance2D::RegisterObject(context);
  86. ConstraintFriction2D::RegisterObject(context);
  87. ConstraintGear2D::RegisterObject(context);
  88. ConstraintMotor2D::RegisterObject(context);
  89. ConstraintMouse2D::RegisterObject(context);
  90. ConstraintPrismatic2D::RegisterObject(context);
  91. ConstraintPulley2D::RegisterObject(context);
  92. ConstraintRevolute2D::RegisterObject(context);
  93. ConstraintRope2D::RegisterObject(context);
  94. ConstraintWeld2D::RegisterObject(context);
  95. ConstraintWheel2D::RegisterObject(context);
  96. }
  97. }