Add basic EdgeShape (todo: all edge-related functionality) and further integrated the new Joints

--HG--
branch : box2d-update
This commit is contained in:
Bill Meltsner
2011-09-04 13:21:57 -04:00
parent 551cf591e2
commit 7ec64bf912
13 changed files with 384 additions and 156 deletions
+6 -1
View File
@@ -30,6 +30,7 @@
#include "wrap_Shape.h"
#include "wrap_CircleShape.h"
#include "wrap_PolygonShape.h"
#include "wrap_EdgeShape.h"
#include "wrap_Joint.h"
#include "wrap_MouseJoint.h"
#include "wrap_DistanceJoint.h"
@@ -38,6 +39,8 @@
#include "wrap_PulleyJoint.h"
#include "wrap_GearJoint.h"
#include "wrap_FrictionJoint.h"
#include "wrap_WeldJoint.h"
#include "wrap_WheelJoint.h"
namespace love
{
@@ -49,8 +52,8 @@ namespace box2d
int w_newBody(lua_State * L);
int w_newCircleShape(lua_State * L);
int w_newRectangleShape(lua_State * L);
int w_newEdgeShape(lua_State * L);
int w_newPolygonShape(lua_State * L);
int w_newEdgeShape(lua_State * L);
int w_newDistanceJoint(lua_State * L);
int w_newMouseJoint(lua_State * L);
int w_newRevoluteJoint(lua_State * L);
@@ -58,6 +61,8 @@ namespace box2d
int w_newPulleyJoint(lua_State * L);
int w_newGearJoint(lua_State * L);
int w_newFrictionJoint(lua_State * L);
int w_newWeldJoint(lua_State * L);
int w_newWheelJoint(lua_State * L);
extern "C" LOVE_EXPORT int luaopen_love_physics(lua_State * L);
} // box2d