Commit Graph

4962 Commits

Author SHA1 Message Date
boyu0 9c16a45f33 issue #2771: separate the PhysicsBody and the PhysicsShape. 2013-09-30 20:43:19 +08:00
boyu0 18a4b18368 issue #2771: move _physicsBody from sprite to node 2013-09-30 13:02:17 +08:00
boyu0 fcb2c9b919 Merge branch 'develop' of https://github.com/cocos2d/cocos2d-x into iss2771_physical 2013-09-29 09:55:11 +08:00
boyu0 dbfd05ef77 issue #2771: add tag and enable functions to physics classes 2013-09-29 09:39:20 +08:00
James Chen 93436eea3c Merge pull request #3553 from DarraghCoy/ccset_leak_fix
Fix a memory leak in Set::removeAllObjects.
2013-09-25 20:00:08 -07:00
James Chen 610379de54 Merge pull request #3826 from michaelcontento/emscripten-fixes
Various small Emscripten fixes
2013-09-25 17:12:03 -07:00
Ricardo Quesada 341178cb91 Removes unneeded log
This log is already part of `CCConfiguration`
2013-09-25 13:03:47 -07:00
Michael Contento 5ca052446c various small fixes 2013-09-25 17:57:12 +02:00
Darragh Coy 8654df7b0e Remove Hungarian notation.
Remove Hungarian notation in fix made for memory leak in Set::removeAllObjects().
2013-09-24 21:01:30 +01:00
James Chen 1a5b8a7673 Merge pull request #3785 from yuye-liu/particle_designer_2
Particle designer 2[ci skip]
2013-09-24 02:57:49 -07:00
James Chen 3ffad35f0e Merge pull request #3741 from signmotion/develop
Fixed some compiling-warnings (MSVC2012).[ci skip]
2013-09-24 02:27:14 -07:00
yuye.liu 52559bc099 Merge branch 'develop' of https://github.com/cocos2d/cocos2d-x into develop 2013-09-24 16:19:44 +08:00
yuye.liu 29332d0209 revising erro indent 2013-09-24 16:18:51 +08:00
minggo f91c29c45e Merge pull request #3689 from yuye-liu/particle_designer_2
[ci skip]particle designer2.0 support
2013-09-24 00:40:47 -07:00
minggo 9211d8f503 Merge pull request #3742 from mlepage/develop
Clean up some API documentation
2013-09-23 19:15:37 -07:00
minggo 2dd08a4945 Merge pull request #3769 from michaelcontento/android-fix-opengl-config
[ci skip]add EGL_RENDERABLE_TYPE to OpenGL attributes
2013-09-23 19:08:55 -07:00
minggo 5f2c94ee3c Merge pull request #3768 from michaelcontento/android-fix-null-access
[ci skip]wrong variable used which could crash the whole app
2013-09-23 19:07:22 -07:00
minggo 0c5e5cbf0c Merge pull request #3767 from michaelcontento/android-add-runOnGLThread-back-again
[ci skip]re-introduce Cocos2dxHelper.runOnGLThread(Runnable)
2013-09-23 19:00:36 -07:00
Ricardo Quesada 769a7ea1ed Logs when software decoder is being used
Logs when software decoder is being used in `Image`
2013-09-23 17:03:28 -07:00
Michael Contento 4211cc7fd1 re-introduce Cocos2dxHelper.runOnGLThread(Runnable)
It's crucial to execute various tasks synchonized with the rendering loop /
thread, but this ability (runOnGLThread) got removed with the NativeActivity
transitions a few days ago. This patch adds this method back again.

Why can't we just use runOnUiThread()? Because it seems not to be synchronized
properly and can cause broken OpenGL textures or even the whole app to crash.

Isn't there a better way to get into the mainloop? I hope so! But I'm not a
experienced Android developer and this solution is quite simple / the only one
that worked without any problems.
2013-09-23 11:53:12 +02:00
Michael Contento 09543a0aac wrong variable used which could crash the whole app 2013-09-23 11:50:34 +02:00
Michael Contento c9fe2c5107 add EGL_RENDERABLE_TYPE to OpenGL attributes
This patch adds EGL_RENDERABLE_TYPE=EGL_OPENGL_ES2_BIT to the OpenGL attributes.
The default value for this setting is EGL_OPENGL_ES_BIT and, as we require ES 2.0,
cause some problems on various Android devices (e.g. Amazon Kindle 2.Gen).
2013-09-23 11:44:14 +02:00
yuye.liu b7f1a980ab revising indent Erro 2013-09-23 16:24:33 +08:00
yuye.liu 56a058c74d modify particleSystem format erro 2013-09-23 10:12:54 +08:00
yuye.liu 276b770867 Merge branch 'develop' of https://github.com/cocos2d/cocos2d-x into develop 2013-09-23 10:12:00 +08:00
Marc Lepage e6144e2c80 Clean up some API documentation 2013-09-22 20:05:49 -04:00
signmotion 7d139a3bc3 Fixed compiling-warnings (MSVC2012): C4996(* was declared deprecated), C4305 (* truncation from 'double' to 'float'), C4018 (* signed/unsigned mismatch), C4800(* forcing value to bool 'true' or 'false'). 2013-09-22 23:50:54 +03:00
James Chen 335c45664a Merge pull request #3736 from elwinarens/desc_scene_spelling
Minor spelling changes in description of CCScene.h[ci skip]
2013-09-22 07:05:38 -07:00
Elwin Arens 59c3efd53c Minor spelling changes description of CCScene.h 2013-09-22 11:07:21 +02:00
minggo f895183fbc add renamed files into vs.proj 2013-09-21 15:01:42 +08:00
minggo 261f0e4f05 rename some files 2013-09-21 14:40:54 +08:00
minggo bcb171e3c9 fix line end in windows 2013-09-20 22:23:13 +08:00
minggo be7d59b132 fix typo error 2013-09-20 21:29:12 +08:00
minggo 4c9771ba3c rename some class names to obey cocos2d-x coding style 2013-09-20 19:19:31 +08:00
James Chen c22315a19c Don't set listener type to "" when dissociateEventListener. 2013-09-20 14:36:15 +08:00
James Chen db2706553e Fixing dangerous pointer when removing event listener. 2013-09-20 14:13:20 +08:00
James Chen 213be32932 issue #2087: Fixing potential crash reported by Sam Gross. Thanks @Sam. 2013-09-20 10:23:58 +08:00
Dhilan007 2504b8e029 restore AccelerometerTest 2013-09-19 19:05:52 +08:00
James Chen 7797fad5a5 issue #2087: [EventDispatcher] Fixing crash on Win32. 2013-09-19 10:19:02 +08:00
James Chen ebedd7b59e issue #2087: Adding customevent and CustomEventListener to VS project. 2013-09-19 09:25:43 +08:00
James Chen e051903b38 Merge branch 'develop' of https://github.com/cocos2d/cocos2d-x into iss2087-new-event-dispatcher 2013-09-19 09:22:31 +08:00
James Chen 3fbf61ad52 issue #2087: Adding CustomEvent and CustomEventListener classes. Make Event and EventListener as abstract classes. 2013-09-19 09:14:51 +08:00
James Chen 5570b6089a Merge pull request #3703 from dumganhar/iss2087-new-event-dispatcher
Fixing crash of ACC-Test.[ci skip]
2013-09-18 17:21:48 -07:00
James Chen a842b6de2f Merge pull request #3699 from Dhilan007/develop
Unify Accelerometer coordinate on IOS and Android.[ci skip]
2013-09-18 17:20:38 -07:00
James Chen 40258ede68 Fixing crash of ACC-Test. 2013-09-19 08:12:54 +08:00
Ricardo Quesada e9237e1aad version is v3.0-alpha0 2013-09-18 16:56:25 -07:00
Dhilan007 479355ee32 Unify Accelerometer coordinate on IOS and Android. 2013-09-19 00:04:50 +08:00
minggo a901efb603 make Director::end() reantrant 2013-09-18 23:52:09 +08:00
James Chen 3985574c30 issue #2087: Bug fix in EventDispatcher: _isRegister fix. 2013-09-18 22:21:22 +08:00
James Chen 8fa969b39e issue #2087: Init Event::_userData. 2013-09-18 22:20:20 +08:00