Commit Graph

366 Commits

Author SHA1 Message Date
yinkaile 303f20653b add debug camera (#2853)
* add debug camera

* refine code
2018-06-13 11:30:20 +08:00
yinkaile 28527bdc10 remove es6 class (#2838)
* remove es6 class

* refine code

* refine code
2018-06-11 19:04:29 +08:00
黄家辉 1632908fcc correct the api docs template (#2852) 2018-06-11 19:02:14 +08:00
pandamicro dbb8dc4c90 Merge remote-tracking branch 'origin/master' into next 2018-05-29 18:59:36 +08:00
Jare Guo 85f3603546 Merge branch 'v1.9-release'
# Conflicts:
#	cocos2d/audio/CCAudioEngine.js
2018-05-29 16:45:35 +08:00
Jare Guo 92e99f3038 new instantiated nodes should clean it's fileId before adding to other prefabs. (#2753) 2018-05-29 09:27:29 +08:00
pandamicro 5b99f8cdfa Fix API doc configs (#2750) 2018-05-28 18:22:37 +08:00
pandamicro efaf0c5d4d Merge remote-tracking branch 'fireball/master' into next 2018-05-24 19:04:55 +08:00
pandamicro 8aea3b8be6 Small fixes for ParticleSystem reimplementation (#2729)
* Refactor vfmtPosColorUv to vfmtPosUvColor

* Fix Node getNodeToWorldTransform

* Reset quad buffer during walker reset

* Fix affine transform api doc

* Remove useless uintbuf
2018-05-24 15:57:43 +08:00
pandamicro 9f9ac0b1e3 Remove Node _worldMatUpdated (#2698)
* Maintain worldMatUpdated state

* Remove _worldMatUpdated property from Node
2018-05-17 15:57:20 +08:00
pandamicro 27fef43853 Issue fixes for 3d project (#2669)
* Remove useless handleLoadedTexture

* Fix RenderFlow flag setting issue

* Remove useless key board event check
2018-05-11 18:24:02 +08:00
Jare Guo ebf7d7d730 register component to scene after ctor (#2661) 2018-05-10 17:00:59 +08:00
Jare Guo 550e85b9e2 update _id management (#2648) 2018-05-09 09:58:51 +08:00
pandamicro 8a92606e29 Fix _id reset issue 2018-05-08 19:05:12 +08:00
pandamicro 50c91c641c Use RenderFlow to optimize renderer visit process (#2634)
* Optimize (#2601)

* support render flow

* small improve

* small improve

* support different vertext format for buffer

* optimize dynamic atlas

* fixed sprite assemblers

* store uvs in spriteframe

* fixed issues

* fixed mask

* remove unused code

* small improve

* small fix

* upgrade assemblers

* refine code

* set id for vertex format name

* Fix mesh buffer initialize issue on native

* Fix spine node setting issue

* fixed dragonbone assembler (#2635)
2018-05-07 15:47:48 +08:00
Jare Guo 32205ee27b define apisrc.json in this repo 2018-05-05 18:07:40 +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 a0043db9df Small issue fixes (#2617)
* Fix emit event on invalid animation issue

* Support setQuat with x, y, z, w

* Fix native running issue
2018-05-02 15:38:15 +08:00
pandamicro 396154d41b Fix issues (#2608)
* Add missed vec3 APIs

* Fix Node property setter issue

* Fix scene dirty sync issue

* Fix setWorldRot not setting dirty issue
2018-04-27 18:00:48 +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 6bf14fef51 Avoid configurable property and avoid editor issue 2018-04-26 11:32:17 +08:00
pandamicro 4f1f0a7cfb Fix issues 2018-04-26 10:52:46 +08:00
pandamicro 661c5327e7 Tranform properties API polyfill for 3d 2018-04-26 09:35:48 +08:00
pandamicro ef97c6fa2b Support 3d transform with polyfill3d 2018-04-20 00:45:15 +08:00
pandamicro 0f87a11100 Merge pull request #2564 from cocos-creator/optimize
Merge optimizations into next
2018-04-19 18:31:30 +08:00
pandamicro d8ca6001d8 Recursively visit node instead of walk through comp chain 2018-04-19 16:58:44 +08:00
pandamicro 01e6fcf943 Reduce performance.now invocation 2018-04-17 18:31:19 +08:00
pandamicro 14a555e0fb Merge remote-tracking branch 'fireball/master' into next 2018-04-16 19:14:08 +08:00
pandamicro e7a1d59dcc Remove useless typeof check 2018-04-16 16:31:35 +08:00
pandamicro 04e12f4e1d Fix unchainSelf usage 2018-04-12 16:58:51 +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
Jare Guo 0a932aef00 replace all RawAssets with Assets 2018-04-09 14:48:21 +08:00
James Chen fd245aef1f CCProfiler supports all platform now since it's implemented by label atlas. 2018-04-04 17:53:48 +08:00
minggo 02bc807ebf merge and fix conflict 2018-03-30 10:34:50 +08:00
minggo 9568e36ca8 remove duplicate codes 2018-03-28 17:38:55 +08:00
yinkaile 8f9040e7db improve profiler by drawing info in game 2018-03-28 11:33:50 +08:00
minggo d9c0236e50 jsb adapt 2018-03-26 14:54:34 +08:00
minggo 6e37e154f5 JSB adaption 2018-03-26 10:54:09 +08:00
Jare Guo 3210895e46 Merge 1.9
# Conflicts:
#	cocos2d/core/CCGame.js
#	cocos2d/core/load-pipeline/pack-downloader.js
#	cocos2d/core/platform/CCObject.js
2018-03-22 13:45:42 +08:00
PP 74fa58895e optimize getComponent performance
optimize getComponent performance


optimize getComponent performance


optimize getComponent performance
2018-03-21 18:41:06 +08:00
minggo 0863363f32 merge from h5 2018-03-21 09:56:04 +08:00
pandamicro 9e0c688de7 Cleanup CCMacro 2018-03-19 22:30:52 +08:00
pandamicro 920e4dbfa6 Remove CCPointExtensions 2018-03-19 18:04:55 +08:00
pandamicro 802d57cdac Move affine-transform to utils 2018-03-19 12:33:49 +08:00
pandamicro 2f12aa50d2 Update value type file names 2018-03-16 15:22:02 +08:00
pandamicro 9b7086cab9 Serialize Node._quat 2018-03-15 18:37:56 +08:00
pandamicro aec2aa1884 Fix EVENT_BEFORE_VISIT & EVENT_AFTER_VISIT issue 2018-03-14 14:05:11 +08:00
pandamicro 45b7e033c3 Use lowerCase variable for objects 2018-03-14 13:53:17 +08:00
pandamicro 49fd994035 Move CCTexture2D & CCSpriteFrame to assets 2018-03-13 17:48:38 +08:00
pandamicro b531040ac4 Update licenses 2018-03-13 15:52:14 +08:00