Commit Graph

12006 Commits

Author SHA1 Message Date
zhangcheng 1115d0d3f9 1. merge scenereader Armature merge to cocos2dx 3.0. 2013-09-09 19:51:26 +08:00
Huabing.Xu d7d914feb1 Merge branch 'develop' into new_shader_test 2013-09-09 18:18:31 +08:00
Huabing.Xu d763de3d3c new shader test code 2013-09-09 17:49:13 +08:00
Huabing.Xu 5c3809b98c add fragment shaders 2013-09-09 17:48:34 +08:00
성낙호 bf4eaa7e7c merged 2013-09-09 18:20:16 +09:00
boyu0 0806c5fe15 issue #2771: Fix CI compile errors. 2013-09-09 17:13:59 +08:00
boyu0 6585fd2162 issue #2771: Fix CI compile errors. 2013-09-09 16:58:55 +08:00
boyu0 cb08f2baf2 issue #2771: Change _physicsBody from node to sprite. Reimplement Scene::addChild. Adjust some API. 2013-09-09 16:36:19 +08:00
성낙호 3a4c9f9fb0 men leak fixed (life-cycle management was hand downed to scene-graph) 2013-09-09 17:07:32 +09:00
James Chen 6944043648 Merge pull request #3561 from CocosRobot/updategeneratedsubmodule_1378695345
[ci skip][AUTO] : updating submodule reference to latest autogenerated bindings
2013-09-09 00:42:23 -07:00
Bruno Assarisse 71c1e10fd8 Win32 icons on template
Added icon to HelloCpp template, renamed the icon resource (so GLFW can
read it and put on window and taskbar), and removed unnecessary files
from projects.
2013-09-09 00:42:36 -03:00
CocosRobot a4ca30b9c3 [AUTO] : updating submodule reference to latest autogenerated bindings 2013-09-09 02:55:48 +00:00
minggo c5b113c35e Merge pull request #3554 from ricardoquesada/fileutils_perf_improvements
Fileutils perf improvements
2013-09-08 19:50:12 -07:00
boyu0 dce205f688 issue #2771: add new line to the end of line. 2013-09-09 10:40:31 +08:00
boyu0 a6f9533a94 issue #2771: add Node::_physicsBody to Node init list 2013-09-09 10:34:03 +08:00
boyu0 1d47737f45 issue #2771: add physics files and entries. 2013-09-09 10:29:02 +08:00
minggo 90bac02af2 Merge pull request #3558 from dumganhar/warning-fixes
[develop] Warning fixes.
2013-09-08 18:44:21 -07:00
James Chen ba9fdc5774 Reverts samples/Cpp/HelloCpp/proj.win32/main.cpp 2013-09-08 11:30:50 +08:00
James Chen b8c82ae5a9 [develop] Warning fixes. 2013-09-08 11:26:38 +08:00
James Chen cd6b50811a Merge pull request #3551 from natural-law/develop
Change the linked commit of submodule plugin.
2013-09-07 06:24:25 -07:00
Ricardo Quesada 8078a574c2 snapshopTextures are no longer supported
Signed-off-by: Ricardo Quesada <ricardoquesada@gmail.com>
2013-09-06 22:55:36 -07:00
Ricardo Quesada 487f65af2e Replaces `Dictionary` with `std::unordered_map`
I did some performance tests, and `std::unordered_map` is more performant than `Dictionary`.

I need to do more tests, but so far, the results are good.

Signed-off-by: Ricardo Quesada <ricardoquesada@gmail.com>
2013-09-06 22:55:11 -07:00
Ricardo Quesada 7d8261c722 Optimization + standardization in FileUtils
Since `FileUtils` was using `std::string` internally, it is more efficient to accept `const std::string &` as parameter than `char *` to avoid the creation of unneeded strings.

Signed-off-by: Ricardo Quesada <ricardoquesada@gmail.com>
2013-09-06 22:54:08 -07:00
Ricardo Quesada 028deae846 Adds const in FileUtils
`const` was missing in some getters

Signed-off-by: Ricardo Quesada <ricardoquesada@gmail.com>
2013-09-06 22:52:55 -07:00
Ricardo Quesada 2d2e15d275 Key should start with '/' to gain performance
Signed-off-by: Ricardo Quesada <ricardoquesada@gmail.com>
2013-09-06 22:51:47 -07:00
Ricardo Quesada 3a0e957e9e compatible with cocos2d c++ guidelines 2013-09-06 19:02:24 -07:00
Ricardo Quesada bf6750067f little optimization.
string is created when needed
2013-09-06 19:00:12 -07:00
Ricardo Quesada b2a81b5b86 Removes some Hungarion notation...
...and improves performance in FileUtils: String is not created
2013-09-06 18:46:33 -07:00
Ricardo Quesada ef622b23bd lazy alloc component container
faster and less memory
2013-09-06 16:00:24 -07:00
Ricardo Quesada b78382d5e5 Performance improvements in FileUtils / TextureCache
Added common "apple" platform to avoid duplicate files in FileUtils and other common files
Improves performance in fetching files.
2013-09-06 15:33:28 -07:00
zhangbin 5cb32f126a Change the linked commit of submodule plugin. 2013-09-06 18:06:12 +08:00
성낙호 95c6c66d58 * obey naming convention
* hide unnecessary methods from public.
2013-09-06 16:10:11 +09:00
minggo 76a1b36191 Merge pull request #3546 from minggo/alloc_perf_test
Alloc perf test
2013-09-05 23:30:15 -07:00
minggo 8e0bce344c Merge branch 'alloc_perf_test' of https://github.com/minggo/cocos2d-x into alloc_perf_test 2013-09-06 13:45:59 +08:00
minggo d723c4ef3f Merge branch 'alloc_perf_test' of https://github.com/ricardoquesada/cocos2d-x into alloc_perf_test 2013-09-06 13:45:23 +08:00
minggo 1664d3503d add PerformanceAllocTest.cpp/h to vs project and fix some compiling errors 2013-09-06 12:51:37 +08:00
Ricardo Quesada 1071ab9d37 Adds a new test: sprite with image 2013-09-05 21:35:15 -07:00
minggo 0131ecf705 add PerformanceAllocTest.cpp/h to Android.mk and linux project setting 2013-09-06 11:44:10 +08:00
Ricardo Quesada 02500372ed Adds new perf test: alloc / dealloc 2013-09-05 20:02:04 -07:00
minggo 563450624f Merge pull request #3542 from natural-law/develop
Add code of plugin as a submodule.
2013-09-05 18:35:28 -07:00
minggo 249b4d79a3 Merge pull request #3503 from dabingnn/Iss2460-glfw-refractor
Iss2460 glfw refractor
2013-09-05 18:28:31 -07:00
zhangbin eace2d1381 Add plugin code as submodule 2013-09-05 14:09:09 +08:00
zhangbin b550d6c429 Remove the code of plugin. 2013-09-05 14:08:07 +08:00
samuele3hu 5d22b8671e Merge branch 'develop' of https://github.com/cocos2d/cocos2d-x into TableView 2013-09-04 22:19:10 +08:00
samuele3hu 4f9a9bfe85 issue #2433:Modify ScriptHandlerMgr's enum to enum class and modify some related functions 2013-09-04 22:17:26 +08:00
James Chen 850efa5eac Merge pull request #3538 from dumganhar/iss2766-memory-leak-develop
closed #2766: Memory leak in the binding glue code of cc.FileUtils.getStringFromFile(getByteArrayFromFile).
2013-09-04 01:42:26 -07:00
James Chen 00c0b94d65 closed #2766: Memory leak in the binding glue code of cc.FileUtils.getStringFromFile(getByteArrayFromFile). 2013-09-04 16:38:07 +08:00
James Chen 80e46dc8c1 Merge pull request #3537 from samuele3hu/TableView
issue #2764:Add TableView lua binding and releated test sample
2013-09-04 00:04:32 -07:00
James Chen 3abfafe4e8 Merge pull request #3535 from CocosRobot/updategeneratedsubmodule_1378260416
[AUTO] : updating submodule reference to latest autogenerated bindings
2013-09-03 23:20:29 -07:00
samuele3hu 32d056df18 Merge branch 'develop' of https://github.com/cocos2d/cocos2d-x into TableView 2013-09-04 14:03:21 +08:00