mirror of
https://github.com/love2d/love.git
synced 2026-08-15 07:41:11 +02:00
It's now possible to build each module individually (as a DLL).
This commit is contained in:
@@ -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);
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user