Readded get/setCategory and get/setMask

This commit is contained in:
bart@bart
2009-09-05 14:37:44 +02:00
parent 41a7c11f9f
commit 0b38be2b4c
6 changed files with 112 additions and 0 deletions
+32
View File
@@ -144,6 +144,34 @@ namespace box2d
lua_pushinteger(L, v[2]);
return 3;
}
int w_Shape_setCategory(lua_State * L)
{
Shape * t = luax_checkshape(L, 1);
lua_remove(L, 1);
return t->setCategory(L);
}
int w_Shape_getCategory(lua_State * L)
{
Shape * t = luax_checkshape(L, 1);
lua_remove(L, 1);
return t->getCategory(L);
}
int w_Shape_setMask(lua_State * L)
{
Shape * t = luax_checkshape(L, 1);
lua_remove(L, 1);
return t->setMask(L);
}
int w_Shape_getMask(lua_State * L)
{
Shape * t = luax_checkshape(L, 1);
lua_remove(L, 1);
return t->getMask(L);
}
int w_Shape_setData(lua_State * L)
{
@@ -180,6 +208,10 @@ namespace box2d
{ "testSegment", w_Shape_testSegment },
{ "setFilterData", w_Shape_setFilterData },
{ "getFilterData", w_Shape_getFilterData },
{ "setCategory", w_Shape_setCategory },
{ "getCategory", w_Shape_getCategory },
{ "setMask", w_Shape_setMask },
{ "getMask", w_Shape_getMask },
{ "setData", w_Shape_setData },
{ "getData", w_Shape_getData },
{ "getBoundingBox", w_Shape_getBoundingBox },