mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Add EdgeShape:getPoints()
--HG-- branch : box2d-update
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user