Commit Graph

6300 Commits

Author SHA1 Message Date
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 87a8613c39 Fix issues (#2606)
* Fix _LocalDirtyFlag undefined issue

* Fix blend function intialization issue

* Fix graphic usage issue in spine assembler
2018-04-27 09:49:14 +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
James Chen 16de00f09e The textview of debugging info should also display whether GL opt mode is enabled. (#2603) 2018-04-26 16:51:34 +08:00
Jare Guo 9ac3ac786e Merge pull request #2598 from pandamicro/poly3d
Tranform properties API polyfill for 3d
2018-04-26 12:46:49 +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 7c94a5f771 Fix Label issues (#2594)
* Fix bmfont anchor point issue

* Fix 0 is ignored as label.string

* Fix doc
2018-04-25 12:36:29 +08:00
pandamicro 7b98f49cd6 Fix updateWorldVerts based on worldMatUpdated and other issues (#2593)
* Fix updateWorldVerts based on worldMatUpdated

* Fix issues
2018-04-24 22:23:18 +08:00
pandamicro c80c8328b4 Avoid dynamic atlas affect hard edge textures (#2586) 2018-04-24 17:18:03 +08:00
minggo efee3b49ce adjust codes to unify js_loadImage binding codes (#2585) 2018-04-24 16:37:51 +08:00
Jare Guo dae3c57522 Merge pull request #2583 from pandamicro/tex-asset
Support serialize & deserialize texture wrap mode & filter
2018-04-24 16:18:24 +08:00
pandamicro 0bc8079166 Support serialize & deserialize texture wrap mode & filter 2018-04-24 14:31:12 +08:00
pandamicro ef5b172506 Fix scene mat dirty not updated issue and improve logic 2018-04-24 11:21:42 +08:00
pandamicro 7997b2c6a8 Remove _syncWorldDirty for recursive approach (#2582)
* Fix render data issue for bar filled sprite

* Remove _syncWorldDirty for recursive approach
2018-04-23 18:26:06 +08:00
Jare Guo b0d11deffa Merge pull request #2566 from CocosAss/next
fixed Layout can't caculate the width size correctly
2018-04-23 00:57:36 +08:00
Cocos Ass eef5f1cd4c fixed Layout can't caculate the width size correctly 2018-04-22 15:20:44 +08:00
minggo a07f1840c9 optimize memory usage (#2577) 2018-04-20 19:35:09 +08:00
James Chen 42da2ed086 Fixes pixelStorei is aync method when it's invoked in texImage2D. (#2578) 2018-04-20 19:34:21 +08:00
minggo 92241e4ca9 fix bugs for new renderer (#2574)
* gulp task: add clean cache & support native renderer

* fix binding codes of Texture2D.updateSubImage

* fix some issues

* fix Texture2D.updateSubImage()
2018-04-20 14:43:58 +08:00
pandamicro 02110c664a Merge pull request #2573 from pandamicro/next
Fix dumb issues
2018-04-20 13:51:24 +08:00
pandamicro 99712484b1 Fix dumb issues 2018-04-20 13:50:42 +08:00
pandamicro d88863019f Merge pull request #2572 from pandamicro/next
Fix global canvas undefined issue in JSB
2018-04-20 11:58:37 +08:00
pandamicro b1c84ac0d4 Fix global canvas undefined issue in JSB 2018-04-20 11:57:46 +08:00
pandamicro fc298b5d2a Merge pull request #2571 from dumganhar/optimize
window.__gl -> window.__ccgl, window.canvas -> window.__cccanvas. Touch logic is moved to EventTarget
2018-04-20 11:13:43 +08:00
pandamicro 6985e0686a Merge pull request #2570 from pandamicro/next
Fix jsb node API access issue
2018-04-20 10:44:42 +08:00
pandamicro 529615f3e6 Fix jsb node API access issue 2018-04-20 10:43:28 +08:00
James Chen e70c627f48 ForwardRenderer uses window.innerWidth and window.innerHeight. 2018-04-20 10:26:47 +08:00
James Chen 674ee3a0ae window.gl should not be public variable, rename it to window.__ccgl. 2018-04-20 10:26:15 +08:00
James Chen c8dd586c19 minor fix in EventTarget.js. 2018-04-20 10:16:59 +08:00
James Chen f3a44e90dc window.__gl -> window.__ccgl, window.canvas -> window.__cccanvas. Touch logic is moved to EventTarget. 2018-04-20 10:15:13 +08:00
pandamicro 9ac92ce2a4 Merge pull request #2568 from pandamicro/next
Fixes for 3d mahjong and barbarians project
2018-04-20 00:48:17 +08:00
pandamicro 0889e7e8df Use system font if no font found and not using system font 2018-04-20 00:45:37 +08:00
pandamicro ef97c6fa2b Support 3d transform with polyfill3d 2018-04-20 00:45:15 +08:00
pandamicro 47ffa3d779 gulp task: support build jsb with native renderer 2018-04-20 00:17:16 +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 48fba5d390 Merge pull request #2563 from pandamicro/optimize
Recursively visit node instead of walk through comp chain
2018-04-19 17:15:02 +08:00
pandamicro d8ca6001d8 Recursively visit node instead of walk through comp chain 2018-04-19 16:58:44 +08:00
pandamicro 427fc3c7c6 Merge pull request #2562 from dumganhar/optimize
Updates jsb scripts.
2018-04-19 14:18:28 +08:00
James Chen ec80e1143e Updates jsb scripts. 2018-04-19 14:11:49 +08:00
pandamicro 917d4a9bc7 Merge pull request #2556 from pandamicro/optimize
Support build native with native renderer option
2018-04-19 11:44:18 +08:00
pandamicro 621484c604 Merge pull request #2559 from minggo/optimize
Optimize performance
2018-04-19 11:33:57 +08:00
minggo ba925488dd Merge pull request #1 from pandamicro/jsb
Improve jsb renderer implementation
2018-04-19 11:30:58 +08:00
pandamicro e08fcfa5a7 Improve jsb renderer implementation 2018-04-19 11:17:01 +08:00
pandamicro d2ad2ffcde Fix opt_macroFlags is null issue in gulp task 2018-04-19 10:35:43 +08:00
pandamicro 2b8874ee6c Merge pull request #2561 from pandamicro/fix
Enable dynamic atlas
2018-04-19 10:34:31 +08:00
pandamicro d87e146585 Enable dynamic atlas 2018-04-19 10:30:15 +08:00
pandamicro 685e1cc487 Update comment to english 2018-04-19 10:30:15 +08:00
pandamicro 2bec17c1f5 Merge pull request #2558 from 2youyou2/optimize
fixed issues
2018-04-19 10:19:06 +08:00