Browse Source

added get/setGroupIndex to CircleShape and PolygonShape

Bill Meltsner 15 years ago
parent
commit
3b841423fa

+ 2 - 0
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 }
 	};

+ 2 - 0
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 }
 	};

+ 2 - 2
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);