浏览代码

Add bindings for setting and getting a Transform's matrix representation.

--HG--
branch : minor
Tanner Rogalsky 8 年之前
父节点
当前提交
9084dce58f
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/modules/math/wrap_Transform.cpp

+ 2 - 0
src/modules/math/wrap_Transform.cpp

@@ -298,6 +298,8 @@ static const luaL_Reg functions[] =
 	{ "shear", w_Transform_shear },
 	{ "reset", w_Transform_reset },
 	{ "setTransformation", w_Transform_setTransformation },
+	{ "setMatrix", w_Transform_setMatrix },
+	{ "getMatrix", w_Transform_getMatrix },
 	{ "transformPoint", w_Transform_transformPoint },
 	{ "inverseTransformPoint", w_Transform_inverseTransformPoint },
 	{ "__mul", w_Transform__mul },