Add EdgeShape:getPoints()

--HG--
branch : box2d-update
This commit is contained in:
Bill Meltsner
2011-09-29 11:19:30 -04:00
parent fa58c87605
commit 5d26c564e0
4 changed files with 31 additions and 0 deletions
@@ -30,8 +30,16 @@ namespace box2d
{
return luax_checktype<EdgeShape>(L, idx, "EdgeShape", PHYSICS_EDGE_SHAPE_T);
}
int w_EdgeShape_getPoints(lua_State * L)
{
EdgeShape * t = luax_checkedgeshape(L, 1);
lua_remove(L, 1);
return t->getPoints(L);
}
static const luaL_Reg functions[] = {
{ "getPoints", w_EdgeShape_getPoints },
// From Shape.
{ "getType", w_Shape_getType },
{ "getRadius", w_Shape_getRadius },