Urho2D.cpp 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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 "ParticleEffect2D.h"
  45. #include "ParticleEmitter2D.h"
  46. #include "PhysicsWorld2D.h"
  47. #include "Renderer2D.h"
  48. #include "RigidBody2D.h"
  49. #include "Sprite2D.h"
  50. #include "SpriteSheet2D.h"
  51. #include "StaticSprite2D.h"
  52. #include "TileMap2D.h"
  53. #include "TileMapLayer2D.h"
  54. #include "TmxFile2D.h"
  55. #include "DebugNew.h"
  56. namespace Urho3D
  57. {
  58. const char* URHO2D_CATEGORY = "Urho2D";
  59. void RegisterUrho2DLibrary(Context* context)
  60. {
  61. Renderer2D::RegisterObject(context);
  62. Sprite2D::RegisterObject(context);
  63. SpriteSheet2D::RegisterObject(context);
  64. // Must register objects from base to derived order
  65. Drawable2D::RegisterObject(context);
  66. StaticSprite2D::RegisterObject(context);
  67. AnimationSet2D::RegisterObject(context);
  68. AnimatedSprite2D::RegisterObject(context);
  69. ParticleEffect2D::RegisterObject(context);
  70. ParticleEmitter2D::RegisterObject(context);
  71. TmxFile2D::RegisterObject(context);
  72. TileMap2D::RegisterObject(context);
  73. TileMapLayer2D::RegisterObject(context);
  74. PhysicsWorld2D::RegisterObject(context);
  75. RigidBody2D::RegisterObject(context);
  76. CollisionShape2D::RegisterObject(context);
  77. CollisionBox2D::RegisterObject(context);
  78. CollisionChain2D::RegisterObject(context);
  79. CollisionCircle2D::RegisterObject(context);
  80. CollisionEdge2D::RegisterObject(context);
  81. CollisionPolygon2D::RegisterObject(context);
  82. Constraint2D::RegisterObject(context);
  83. ConstraintDistance2D::RegisterObject(context);
  84. ConstraintFriction2D::RegisterObject(context);
  85. ConstraintGear2D::RegisterObject(context);
  86. ConstraintMotor2D::RegisterObject(context);
  87. ConstraintMouse2D::RegisterObject(context);
  88. ConstraintPrismatic2D::RegisterObject(context);
  89. ConstraintPulley2D::RegisterObject(context);
  90. ConstraintRevolute2D::RegisterObject(context);
  91. ConstraintRope2D::RegisterObject(context);
  92. ConstraintWeld2D::RegisterObject(context);
  93. ConstraintWheel2D::RegisterObject(context);
  94. }
  95. }