From 7f18c9809c687c2522d2d069867be8dca2d16077 Mon Sep 17 00:00:00 2001 From: lvlong Date: Thu, 19 Mar 2015 15:02:38 +0800 Subject: [PATCH 1/3] fix :camera-culling MoveTo --- tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp index 1cb25da673..bb2505003c 100644 --- a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp +++ b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp @@ -881,9 +881,11 @@ void CameraCullingDemo::update(float dt) void CameraCullingDemo::reachEndCallBack() { + auto s = Director::getInstance()->getWinSize(); _cameraFirst->stopActionByTag(100); - auto inverse = (MoveTo*)_moveAction->reverse(); + auto inverse = MoveTo::create(4.f, Vec2(-_cameraFirst->getPositionX(), 0)); inverse->retain(); + _moveAction->release(); _moveAction = inverse; auto rot = RotateBy::create(1.f, Vec3(0.f, 180.f, 0.f)); @@ -902,7 +904,7 @@ void CameraCullingDemo::switchViewCallback(Ref* sender) _cameraFirst->setCameraFlag(CameraFlag::USER8); _cameraFirst->setPosition3D(Vec3(-100,0,0)); _cameraFirst->lookAt(Vec3(1000,0,0)); - _moveAction = MoveTo::create(4.f, Vec2(100, 0)); + _moveAction = MoveTo::create(4.f, Vec2(-_cameraFirst->getPositionX(), 0)); _moveAction->retain(); auto seq = Sequence::create(_moveAction, CallFunc::create(CC_CALLBACK_0(CameraCullingDemo::reachEndCallBack, this)), nullptr); seq->setTag(100); From 9e3ae9bfb51028c28bfec3c21a80d619ba114e11 Mon Sep 17 00:00:00 2001 From: lvlong Date: Thu, 19 Mar 2015 15:24:58 +0800 Subject: [PATCH 2/3] remove get window size. --- tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp index bb2505003c..2ebaa31641 100644 --- a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp +++ b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp @@ -881,11 +881,10 @@ void CameraCullingDemo::update(float dt) void CameraCullingDemo::reachEndCallBack() { - auto s = Director::getInstance()->getWinSize(); _cameraFirst->stopActionByTag(100); auto inverse = MoveTo::create(4.f, Vec2(-_cameraFirst->getPositionX(), 0)); inverse->retain(); - + _moveAction->release(); _moveAction = inverse; auto rot = RotateBy::create(1.f, Vec3(0.f, 180.f, 0.f)); From f60649b39f9daca78259427e3a84b9fb740ede55 Mon Sep 17 00:00:00 2001 From: tangziwen Date: Thu, 19 Mar 2015 16:09:16 +0800 Subject: [PATCH 3/3] add particle-perf for win rt --- .../cpp-tests.Shared/cpp-tests.Shared.vcxitems | 6 ++++-- .../cpp-tests.Shared.vcxitems.filters | 12 +++++++++--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/tests/cpp-tests/proj.win8.1-universal/cpp-tests.Shared/cpp-tests.Shared.vcxitems b/tests/cpp-tests/proj.win8.1-universal/cpp-tests.Shared/cpp-tests.Shared.vcxitems index 5209f637f5..84eb9ac57a 100644 --- a/tests/cpp-tests/proj.win8.1-universal/cpp-tests.Shared/cpp-tests.Shared.vcxitems +++ b/tests/cpp-tests/proj.win8.1-universal/cpp-tests.Shared/cpp-tests.Shared.vcxitems @@ -115,7 +115,7 @@ - + @@ -124,6 +124,7 @@ + @@ -375,7 +376,7 @@ - + @@ -384,6 +385,7 @@ + diff --git a/tests/cpp-tests/proj.win8.1-universal/cpp-tests.Shared/cpp-tests.Shared.vcxitems.filters b/tests/cpp-tests/proj.win8.1-universal/cpp-tests.Shared/cpp-tests.Shared.vcxitems.filters index 748129c0e0..d44bae8c7e 100644 --- a/tests/cpp-tests/proj.win8.1-universal/cpp-tests.Shared/cpp-tests.Shared.vcxitems.filters +++ b/tests/cpp-tests/proj.win8.1-universal/cpp-tests.Shared/cpp-tests.Shared.vcxitems.filters @@ -771,7 +771,10 @@ Classes\CocosStudio3DTest - + + + Classes\PerformanceTest + @@ -1673,7 +1676,7 @@ {65d0104d-321a-41f7-99af-de609183f206} - + @@ -1700,6 +1703,9 @@ Classes\CocosStudio3DTest - + + + Classes\PerformanceTest + \ No newline at end of file