axmol/cocos/scripting/lua-bindings/script/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
..
Cocos2d.lua Remove unnecessary arguments from some lua cc.mat4 methods (#16658) 2016-10-08 14:33:50 +08:00
Cocos2dConstants.lua add overFlow enum to jsb and lua. 2016-01-04 21:43:37 +08:00
DeprecatedCocos2dClass.lua Split files in lua-bindings/script into different module and adjust related project 2014-08-11 12:54:30 +08:00
DeprecatedCocos2dEnum.lua Fix the error that SpritePerformanceTest lua does’t work 2014-11-28 11:54:38 +08:00
DeprecatedCocos2dFunc.lua cc.Node.ignoreAnchorPointForPostion was deprecated, lua/js script should handle this. 2016-06-22 11:05:04 +08:00
DeprecatedOpenglEnum.lua Split files in lua-bindings/script into different module and adjust related project 2014-08-11 12:54:30 +08:00
DrawPrimitives.lua Update cocos2d basic lua files and LabelTestNew.lua 2014-10-21 15:56:38 +08:00
Opengl.lua update luabinding scripts 2014-10-11 02:51:58 +08:00
OpenglConstants.lua update luabinding scripts 2014-10-11 02:51:58 +08:00
bitExtend.lua update luabinding scripts 2014-10-11 02:51:58 +08:00
deprecated.lua update lua corelib 2014-12-27 11:59:14 +08:00
functions.lua remove chinese comments 2014-12-29 10:44:16 +08:00
json.lua update luabinding scripts 2014-10-11 02:51:58 +08:00
luaj.lua Split files in lua-bindings/script into different module and adjust related project 2014-08-11 12:54:30 +08:00
luaoc.lua Split files in lua-bindings/script into different module and adjust related project 2014-08-11 12:54:30 +08:00