From 3b841423fa7c5fef2f1b0739717c73d45ca40e3c Mon Sep 17 00:00:00 2001 From: Bill Meltsner Date: Wed, 7 Apr 2010 19:16:49 -0400 Subject: [PATCH] added get/setGroupIndex to CircleShape and PolygonShape --- src/modules/physics/box2d/wrap_CircleShape.cpp | 2 ++ src/modules/physics/box2d/wrap_PolygonShape.cpp | 2 ++ src/modules/physics/box2d/wrap_Shape.h | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/modules/physics/box2d/wrap_CircleShape.cpp b/src/modules/physics/box2d/wrap_CircleShape.cpp index 8bb23553c..3e6dd1c66 100644 --- a/src/modules/physics/box2d/wrap_CircleShape.cpp +++ b/src/modules/physics/box2d/wrap_CircleShape.cpp @@ -83,6 +83,8 @@ namespace box2d { "setData", w_Shape_setData }, { "getData", w_Shape_getData }, { "getBoundingBox", w_Shape_getBoundingBox }, + { "getGroupIndex", w_Shape_getGroupIndex }, + { "setGroupIndex", w_Shape_setGroupIndex }, { "destroy", w_Shape_destroy }, { 0, 0 } }; diff --git a/src/modules/physics/box2d/wrap_PolygonShape.cpp b/src/modules/physics/box2d/wrap_PolygonShape.cpp index b5332fb09..6874f2a97 100644 --- a/src/modules/physics/box2d/wrap_PolygonShape.cpp +++ b/src/modules/physics/box2d/wrap_PolygonShape.cpp @@ -61,6 +61,8 @@ namespace box2d { "setData", w_Shape_setData }, { "getData", w_Shape_getData }, { "getBoundingBox", w_Shape_getBoundingBox }, + { "getGroupIndex", w_Shape_getGroupIndex }, + { "setGroupIndex", w_Shape_setGroupIndex }, { "destroy", w_Shape_destroy }, { 0, 0 } }; diff --git a/src/modules/physics/box2d/wrap_Shape.h b/src/modules/physics/box2d/wrap_Shape.h index 5d9d0deeb..a36ff833e 100644 --- a/src/modules/physics/box2d/wrap_Shape.h +++ b/src/modules/physics/box2d/wrap_Shape.h @@ -53,8 +53,8 @@ namespace box2d int w_Shape_setData(lua_State * L); int w_Shape_getData(lua_State * L); int w_Shape_getBoundingBox(lua_State * L); - int w_Shape_getGroupIndex(); - int w_Shape_setGroupIndex(); + int w_Shape_getGroupIndex(lua_State * L); + int w_Shape_setGroupIndex(lua_State * L); int w_Shape_destroy(lua_State * L); int luaopen_shape(lua_State * L);