It's now possible to build each module individually (as a DLL).

This commit is contained in:
rude
2009-08-04 19:57:14 +02:00
parent 524ef5e118
commit 8e681b4204
59 changed files with 5315 additions and 400 deletions
+22 -1
View File
@@ -236,6 +236,22 @@ namespace box2d
0
};
// List of constants.
static const LuaConstant wrap_Physics_constants[] = {
{ "shape_circle", Shape::SHAPE_CIRCLE },
{ "shape_polygon", Shape::SHAPE_POLYGON },
{ "joint_distance", Joint::JOINT_DISTANCE },
{ "joint_revolute", Joint::JOINT_REVOLUTE },
{ "joint_prismatic", Joint::JOINT_PRISMATIC },
{ "joint_mouse", Joint::JOINT_MOUSE },
{ "joint_pulley", Joint::JOINT_PULLEY },
{ "joint_gear", Joint::JOINT_GEAR },
{ 0, 0 }
};
int wrap_Physics_open(lua_State * L)
{
if(instance == 0)
@@ -250,9 +266,14 @@ namespace box2d
}
}
return luax_register_module(L, wrap_Physics_functions, wrap_Physics_types, "physics");
return luax_register_module(L, wrap_Physics_functions, wrap_Physics_types, wrap_Physics_constants, "physics");
}
} // box2d
} // physics
} // love
int luaopen_love_physics(lua_State * L)
{
return love::physics::box2d::wrap_Physics_open(L);
}
+3
View File
@@ -22,6 +22,7 @@
#define LOVE_PHYSICS_BOX2D_WRAP_PHYSICS_H
// LOVE
#include <common/config.h>
#include "Physics.h"
#include "wrap_World.h"
#include "wrap_Contact.h"
@@ -60,4 +61,6 @@ namespace box2d
} // physics
} // love
extern "C" LOVE_EXPORT int luaopen_love_physics(lua_State * L);
#endif // LOVE_PHYSICS_BOX2D_WRAP_PHYSICS_H