axmol/cocos/scripting/lua-bindings/manual/cocos2d
Paul Gardiner 1c0602e130 Remove unnecessary arguments from some lua cc.mat4 methods (#16658)
* Lua: remove unused 3rd argument from cc.mat4.transformVector

cc.mat4.transformVector takes a mat4 and a 4vector and returns the result
of applying the mat4 to the vector. Strangely it had been made to also
require a third argument called dst which it doesn't use but did check
was a vec4. This commit allows cc.mat4.transformVector to be called
without the unnecessary argument. We still permit calling with it for
backward compatibility.

Also changed is the wrapper in Cocos2d.lua so that a second form of
cc.mat4.transformVector can be used where the vector is supplied as
4 separate numbers.

Changed the test files to call without the unnecessary argument.

* Lua: remove unused argument from cc.mat4.createTranslation/Rotation

Both these functions have an extra unnecessary argument called dst,
although neither use it either to pass in or out a value. This
commit removes the extra argument and updates the test programs
correspondingly.

Also, within Cocos2d.lua, remove some definitions that are later
overwritten by new ones
2016-10-08 14:33:50 +08:00
..
LuaOpengl.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
LuaOpengl.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
LuaScriptHandlerMgr.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
LuaScriptHandlerMgr.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
lua_cocos2dx_deprecated.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
lua_cocos2dx_deprecated.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
lua_cocos2dx_experimental_manual.cpp Remove include of cocos2d.h (#15435) 2016-04-18 15:09:21 +08:00
lua_cocos2dx_experimental_manual.hpp Split luabindings module to some independent modules 2014-07-31 15:20:23 +08:00
lua_cocos2dx_manual.cpp Remove unnecessary arguments from some lua cc.mat4 methods (#16658) 2016-10-08 14:33:50 +08:00
lua_cocos2dx_manual.hpp Remove include of cocos2d.h (#15435) 2016-04-18 15:09:21 +08:00
lua_cocos2dx_physics_manual.cpp Fix spelling for `getPolygonCenter` function 2016-07-19 08:24:22 +09:00
lua_cocos2dx_physics_manual.hpp Remove include of cocos2d.h (#15435) 2016-04-18 15:09:21 +08:00