Commit Graph

165 Commits

Author SHA1 Message Date
yinkaile 22948c2081 fixed canvas render flow (#2721) 2018-05-23 14:49:30 +08:00
pandamicro b7ce3032ba Fix more issues for 2.0 (#2662)
* Use black as camera default clear color

* Fix director delta time issue in editor

* Fix particle system init and editor update issue

* Improve Node API ref
2018-05-10 16:47:44 +08:00
yinkaile f8988b0aa8 reset dynamic atlas before scene loading (#2655)
* reset dynamic atlas before scene loading

* fixed node undo/redo
2018-05-09 15:40:21 +08:00
pandamicro e597e34f4f Remove __instanceId from Node and Component (#2627)
* Add Scheduler.enableForTarget and change to use  _id

* Use _id instead of __instanceId in Texture2D

* Fix ParticleSystem __instanceId usage

* Use _id instead of __instanceId in ActionManager

* Fix usage of Scheduler in InputManager

* Use _id instead of __instanceId in EventManager

* Totally remove ClassManager and __instanceId

* Fix initialization process

* Fix touch & mouse listener off check issue

* Fix id not generated issue

* Fix touch & mouse listener being removed by rejected persist node

* Improve logic
2018-05-04 13:51:21 +08:00
pandamicro 38c61c70b4 Refactor EventTarget: remove hasListenerCache, move dispatch APIs to Node (#2595)
* Improve node property setter performance

* Avoid physics sync trigger events

* Improve callbacksHandler.has performance

* Use flag instead of hasListenerCache in animation state

* Remove hasListenerCache, add event target APIs for dispatch

* Fix some issues

* Fix event target has check

* Expose EventType and LocalDirtyFlag

* Move dispatch related APIs to Node and fix issues

* Refactor event target

* Fix sub listener usage for event target

* Improve code

* Remove callbacksInvoker.has
2018-04-26 21:50:27 +08:00
pandamicro 6dfaecd86a Small improvements 2018-04-13 15:59:37 +08:00
pandamicro a0091761da Sync world mat dirty to ensure mat dirty flag reliable 2018-04-12 11:37:52 +08:00
pandamicro b1cfce2008 Improve transform sys logic 2018-04-11 14:06:27 +08:00
pandamicro 5823a23065 Add transform system to reduce matrix update overhead
Removed world-matrix-changed event, event system is too slow
2018-04-11 14:06:27 +08:00
minggo 5a05af7795 fix according review comments 2018-03-30 10:25:54 +08:00
minggo d9c0236e50 jsb adapt 2018-03-26 14:54:34 +08:00
minggo f91bab267f merge h5 and fix conflict 2018-03-26 11:05:19 +08:00
minggo 6e37e154f5 JSB adaption 2018-03-26 10:54:09 +08:00
pandamicro 9b28a74856 Fix Director deprecated API issue 2018-03-23 10:08:48 +08:00
pandamicro 0fb074ec82 Cleanup old deprecated APIs 2018-03-22 16:58:55 +08:00
pandamicro 259f1c565a Cleanup View APIs 2018-03-22 16:24:32 +08:00
Cocos Ass 4ca7a671ce add Chinese note to 2.0 scripts
add Chinese note to 2.0 scripts
2018-03-22 14:42:13 +08:00
pandamicro 247ae1ff19 Cleanup Director events 2018-03-14 09:50:32 +08:00
pandamicro 77febbfe3d Merge branch 'master' into next 2018-03-13 15:07:21 +08:00
yinkaile 22a1e2994a 1. support camera sort
2. support camera culling mask with node group
3. add MAIN_CAMERA to Canvas
2018-03-09 16:12:00 +08:00
pandamicro 979ffb587a Fix purgeDirector leak 2018-02-28 16:48:43 +08:00
pandamicro 6b839d7363 Deprecate view.setViewPortInPoints & remove Director animation interval 2018-02-28 11:07:16 +08:00
pandamicro 0ace75f372 Fix removed function usage in director 2018-02-21 09:49:19 +08:00
pandamicro df96354437 Remove dependency of cc._Class from Director 2018-02-12 18:09:49 +08:00
pandamicro e1d173da1c Review Director APIs 2018-02-09 10:07:01 +08:00
pandamicro 0fad231405 Fix renderer issue 2018-02-08 14:59:20 +08:00
Jare Guo a6fb92ad90 updating license 2018-02-01 09:38:54 +08:00
pandamicro 027274708f Fix issues caused by merging master 2018-01-16 17:28:05 +08:00
pandamicro 7712da14f5 Merge remote-tracking branch 'fireball/master' into next 2018-01-15 17:51:33 +08:00
pandamicro 0b307fe70a Fix event manager not enabled issue 2018-01-12 14:11:35 +08:00
yinkaile 2efc147fe2 Merge branch 'next' of github.com:fireball-x/engine into next
# Conflicts:
#	cocos2d/core/CCDirectorCanvas.js
#	cocos2d/core/CCDirectorWebGL.js
#	cocos2d/core/base-nodes/CCSGNode.js
#	cocos2d/core/base-nodes/CCSGNodeBaseRenderCmd.js
#	cocos2d/core/sprites/CCSGSpriteWebGLRenderCmd.js
#	cocos2d/core/sprites/CCScale9SpriteWebGLRenderCmd.js
#	cocos2d/particle/CCParticleSystem.js
2017-12-26 16:11:50 +08:00
yinkaile 5e78d1df2e remove unused code 2017-12-26 14:30:07 +08:00
pandamicro 8cf1591e3a Use cc.renderer to point at new renderer 2017-12-25 14:02:15 +08:00
Jare Guo 87304f287a Merge pull request #2200 from cocos-creator/v1.7-release
sync branch
2017-12-21 15:47:24 +08:00
knoxHuang f85d440371 add deprecated to getWinSizeInPixels 2017-12-21 10:07:22 +08:00
knoxHuang 81d0bd8f95 update getWinSizeInPixels API for fireball/issues/6717 2017-12-19 16:22:20 +08:00
Jare Guo e57ee27447 Merge branch 'v1.7-release' into v1.7
# Conflicts:
#	cocos2d/core/editbox/CCSGEditBox.js
#	cocos2d/core/platform/CCInputManager.js
#	cocos2d/core/videoplayer/CCSGVideoPlayer.js
2017-12-13 14:39:10 +08:00
knoxHuang e8b6d937d2 fix layout child node change in sequence, not update bug 2017-11-30 14:08:54 +08:00
knoxHuang 96e51fbee2 gradually remove eventManager and inputManager for fireball/issues/6240 2017-11-30 11:19:32 +08:00
pandamicro 5c2dc18957 Replace renderer 2017-10-11 14:28:43 +08:00
pandamicro 1abfab8621 Refactor textureCache to textureUtil, only cache texture to loader 2017-10-06 17:53:07 +08:00
Jare Guo e1601ac00f Merge 1.6
# Conflicts:
#	cocos2d/core/CCDirector.js
#	cocos2d/core/components/CCSprite.js
2017-09-22 10:48:01 +08:00
Jare Guo 96afe621de fix cc.Director api for TypeScript 2017-09-01 15:20:58 +08:00
Jare Guo 94012eaed7 check released asset each frame 2017-08-31 18:36:00 +08:00
Jare Guo 92319bb2ce tweaks 2017-08-31 18:20:52 +08:00
Jare Guo d1bd919104 fix conflict 2017-08-29 11:11:53 +08:00
Jare Guo 78b7a0d149 optimize deserialize 2017-08-24 13:00:53 +08:00
Jare Guo 90833865e5 reviewed 2017-08-22 13:59:39 +08:00
Jare Guo 200c41a74b should not auto release assets used by persist nodes 2017-08-22 13:58:50 +08:00
Jare Guo c690efe26c Sync 1.6 2017-08-18 10:06:20 +08:00