Commit Graph

11722 Commits

Author SHA1 Message Date
James Chen 213b7aea21 Merge pull request #3453 from samuele3hu/iss2433-lua-bindings-generator
issue #2433: Add lua bindings generator and modify releated test samples
2013-08-26 23:09:56 -07:00
Ricardo Quesada 48ef1f24c3 fixes possible crash when using `SpriteFrameCache`
the returned dictionary was double-released. ouch.

Signed-off-by: Ricardo Quesada <ricardoquesada@gmail.com>
2013-08-26 18:08:56 -07:00
Ricardo Quesada 0093263c18 Little performance improvements
Uses `AffineTransform::IDENTITY`

Signed-off-by: Ricardo Quesada <ricardoquesada@gmail.com>
2013-08-26 18:08:21 -07:00
Ricardo Quesada 62c578667b API compliant with cocos2d-x best practices
Uses `int` instead of `unsigned int` as described in the cocos2d-x best practices

Signed-off-by: Ricardo Quesada <ricardoquesada@gmail.com>
2013-08-26 18:07:40 -07:00
Ricardo Quesada b3b3583583 CCNode perf improvements
AffineTransforms uses a const global variable for the `IDENTITY`
`removeObject` only seeks the index once

Signed-off-by: Ricardo Quesada <ricardoquesada@gmail.com>
2013-08-26 18:04:51 -07:00
psi 9b352d5ff4 Merge remote-tracking branch 'parent/develop' into develop
merged from parent
2013-08-26 21:36:38 +09:00
psi 1beea771b4 type 2013-08-26 20:42:41 +09:00
psi f0620b0e85 add overrode init method for LayerMultiplex 2013-08-26 20:38:23 +09:00
samuele3hu 59e3785baf issue #2433:Modify platform config 2013-08-26 18:45:50 +08:00
samuele3hu 84fcb26e44 issue #2433:compile error 2013-08-26 18:30:03 +08:00
James Chen 6501c9bffd Merge pull request #3479 from pyrasis/tizen_2.2
[Tizen] Update project files
2013-08-26 03:23:14 -07:00
samuele3hu c7b0b6791f issue #2433:Update typed function and add some manual binding 2013-08-26 18:09:15 +08:00
minggo e567b6c54b fix warnings on ndk-r9 2013-08-26 18:02:51 +08:00
minggo 61d82924be update Android.mk to remove deleted cpp files 2013-08-26 18:01:42 +08:00
minggo ec3fa59ae3 remove unneeded files 2013-08-26 17:40:25 +08:00
James Chen 1915a68a26 Merge pull request #3481 from dumganhar/develop
closed #2446: Add a tool to auto export releasing zip file
2013-08-26 01:57:04 -07:00
James Chen 11ea111aff closed #2446: Add a tool to auto export releasing zip file 2013-08-26 16:57:10 +08:00
James Chen 1cfd26aded Merge pull request #3480 from dumganhar/develop
[Android] Disabling x86 from APP_ABI. Otherwise the time of compiling will be very long.
2013-08-26 01:54:02 -07:00
James Chen c9ffc44bc4 [Android] Removing x86 from APP_ABI. Otherwise the time of compiling will be very long. 2013-08-26 16:52:20 +08:00
boyu0 1e452bf0bc closed #2494: add isLineOverlap, isLineParallel, isSegmentOverlap method to Point. 2013-08-26 13:45:45 +08:00
minggo c186ed6a7f Merge pull request #3447 from NatWeiss/patch-5
Fixes full paths on Android (cleaner)
2013-08-25 18:35:57 -07:00
minggo 5c0b53e77b Merge pull request #3475 from ricardoquesada/perf_fixes
Adds "Sort all Children" perf test
2013-08-25 18:32:14 -07:00
Ricardo Quesada b6a90b81aa Adds missing include 2013-08-25 10:50:29 -07:00
Ricardo Quesada ea8eb601af Uses std::sort()
Uses std::sort() for inserting the nodes.

This code is not final, but preliminary results show that std::sort() is 60% faster

Signed-off-by: Ricardo Quesada <ricardoquesada@gmail.com>
2013-08-24 10:56:07 -07:00
Lee, Jae-Hong bbf9053788 [Tizen] Update project files.
- Update file list.
- change order of link files.
2013-08-25 02:22:50 +09:00
Ricardo Quesada 364288cf66 Adds "Sort all Children" perf test
Adds a new perf tests: "sortAllChildren"

Signed-off-by: Ricardo Quesada <ricardoquesada@gmail.com>
2013-08-23 13:14:57 -07:00
xbruce cfc5a7f669 Update cocos2d_specifics.cpp
add need unroot
2013-08-23 18:22:58 +08:00
xbruce 8076d568ba Update cocos2d_specifics.hpp
add need unroot
2013-08-23 18:20:31 +08:00
samuele3hu 6ae80bcaf0 Merge branch 'develop' of https://github.com/cocos2d/cocos2d-x into iss2433-lua-bindings-generator 2013-08-23 16:14:19 +08:00
samuele3hu e557b6b7c2 issue #2433:Add lua deprecated fiel and modify some test samples 2013-08-23 16:12:59 +08:00
James Chen daa0095989 Merge pull request #3473 from CocosRobot/updategeneratedsubmodule_1377245073
[ci skip][AUTO] : updating submodule reference to latest autogenerated bindings
2013-08-23 01:07:03 -07:00
CocosRobot 8345d4849d [AUTO] : updating submodule reference to latest autogenerated bindings 2013-08-23 08:04:38 +00:00
James Chen f654012308 Merge pull request #3472 from dumganhar/develop
Adding a new search path 'res' for TestJavascript project and updating bindings-generator to the latest version.
2013-08-23 00:57:24 -07:00
James Chen 699c7d1077 Updating bindings-generator, it supports CCString. Some APIs, for example ControlButton::setTitleForState are using String as argument. 2013-08-23 15:56:38 +08:00
James Chen 2a147ec34a Adding a new search path 'res' to TestJavascript since some resources are defined as hard code in ControlColourPicker::init().
bool ControlColourPicker::init()
{
    if (Control::init())
    {
        setTouchEnabled(true);
        // Cache the sprites
        SpriteFrameCache::getInstance()->addSpriteFramesWithFile("extensions/CCControlColourPickerSpriteSheet.plist");  // Hard code here

        // Create the sprite batch node
        SpriteBatchNode *spriteSheet  = SpriteBatchNode::create("extensions/CCControlColourPickerSpriteSheet.png"); // Hard code here
        addChild(spriteSheet);
2013-08-23 15:55:25 +08:00
boyu0 9a3a03d6ef closed #2494: Fix some typo 2013-08-23 14:41:49 +08:00
boyu0 3f23a4a661 closed #2494: Fix bug when two line is incident, the Point::isSegmentIntersect() may return wrong result 2013-08-23 14:37:56 +08:00
James Chen 5897be62cf Merge pull request #3468 from CocosRobot/updategeneratedsubmodule_1377229215
[ci skip][AUTO] : updating submodule reference to latest autogenerated bindings
2013-08-22 20:57:01 -07:00
CocosRobot 4658674175 [AUTO] : updating submodule reference to latest autogenerated bindings 2013-08-23 03:40:19 +00:00
James Chen 7882ea7fbc Merge pull request #3465 from dumganhar/develop
issue #2483: Updating VS projects to use the correct library (mozjs-23.0.lib).
2013-08-22 20:28:57 -07:00
minggo bbbfc82541 Merge pull request #3463 from ricardoquesada/perf_test_invocation
Adds 2 new performance tests
2013-08-22 20:26:54 -07:00
minggo b746bda738 Merge pull request #3461 from dumganhar/iss2650-remove-typeinfo
closed #2650: Remove ccTypeInfo since we could get the hash value from typeid(T).hash_code() if using c++11.
2013-08-22 20:26:25 -07:00
James Chen 6ed43811fe issue #2483: Updating VS projects to use the correct library (mozjs-23.0.lib). 2013-08-23 11:26:16 +08:00
Ricardo Quesada 055c566bc9 Adds missing #include 2013-08-22 19:30:20 -07:00
minggo 3c137d97ab Merge pull request #3462 from ricardoquesada/color_constants
Adds more constants to Color
2013-08-22 19:26:53 -07:00
minggo dde0bc0bbc Merge pull request #3464 from boyu0/iss2434_gen_android_mk
closed #2434: Use android_mk_generator.py to generate Box2D and chipmunk's Android.mk file
2013-08-22 19:24:47 -07:00
Ricardo Quesada 38bfadf7f3 Adds 2 new performance tests
Invocation with `for_each()` and using `arrayMakeObjectsPerformSelector`

Signed-off-by: Ricardo Quesada <ricardoquesada@gmail.com>
2013-08-22 18:21:52 -07:00
Ricardo Quesada c4735af1ef Adds more constants to Color
Adds more constants for Colors, in particular to `Color4B` and `Color4F`

Signed-off-by: Ricardo Quesada <ricardoquesada@gmail.com>
2013-08-22 17:19:07 -07:00
James Chen ca78d2d129 closed #2650: Remove ccTypeInfo since we could get the hash value from *typeid(T).hash_code()* if using c++11. 2013-08-22 18:16:50 +08:00
minggo ddb4219d24 Merge pull request #3457 from boyu0/iss2434_gen_android_mk
closed #2434: Add android_mk_generator.py to generate Android.mk
2013-08-22 03:05:11 -07:00