Commit Graph

8446 Commits

Author SHA1 Message Date
pandamicro bbf047f574 Improve particle sys performance by pre fill uv datas (#2733) 2018-05-24 18:06:42 +08:00
pandamicro ecf9a540d1 Fix rotated sprite frame in sliced mode (#2731) 2018-05-24 17:12:45 +08:00
pandamicro acb08dcab5 CPU based ParticleSystem implementation (#2730)
* Add RenderComponent markForCustomIARender

* CPU based ParticleSystem implementation

* Remove GPU based ParticleMaterial
2018-05-24 16:05:15 +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
James Chen 3c5f779606 Cache supported extensions and support to get compressed texture extension object. (#2725)
* Empty implementation for Node.insertBefore and Node.replaceChild.

* Mouse event should contain `button` & `which` & pageX & pageY properties.

* Removes insertBefore assignment in HTMLElement.js.

* Cache supported extensions and support to get compressed texture extension object.

* Return an empty object if we found the extension but it's not in extensionMap.
2018-05-24 10:08:55 +08:00
PP 112f8a4e9d fix tiledMap relative texture path (#2724) 2018-05-23 18:19:45 +08:00
yinkaile 22948c2081 fixed canvas render flow (#2721) 2018-05-23 14:49:30 +08:00
PP 820f22f32d load spine url with hashValue (#2711) 2018-05-23 11:51:07 +08:00
黄家辉 a80b52c37c correct the support of webgl for UC browser (#2706) 2018-05-23 10:06:01 +08:00
yinkaile 7158d8635a fixed motions streak set texture to null (#2714) 2018-05-23 10:03:10 +08:00
Knox 81f35845fc Improve checking whether is a subdomain method (#2719) 2018-05-23 10:00:59 +08:00
pandamicro 45cf7dc1e1 Fix issues of animation state and private node (#2717)
* Fix private node position update issue

* Fix animation state event API issues

* Remove useless constant

* Improve PrivateNode doc and fix its zIndex
2018-05-23 09:56:36 +08:00
James Chen 58e360ac89 Supports mouse event for desktop platforms. (#2713)
* Supports mouse event for desktop platforms.

* Adds MouseEvent.js
2018-05-22 20:11:09 +08:00
黄家辉 3926c447d4 correct the note of getManifold function (#2708) 2018-05-22 19:53:40 +08:00
Jare Guo 94be219810 Merge branch 'v1.9'
# Conflicts:
#	cocos2d/audio/CCAudio.js
2018-05-22 19:47:56 +08:00
pandamicro 9706bcdbcc Upgrade render engine (#2716) 2018-05-22 16:44:28 +08:00
Knox fae2cfceab fix fireball/issues/7323, loading image should return an image resource (#2712) 2018-05-22 15:42:15 +08:00
Knox 29fa51c47b fix audio bug in wxgame for fireball/issues/7325 (#2709)
* fix audio bug in wxgame for fireball/issues/7325

* update CC_WECHATGAME and CC_QQPLAY value

* refine CCAudio code
2018-05-22 10:20:09 +08:00
minggo 02c0153554 fix crash when parsing Effect property (#2710) 2018-05-22 09:41:01 +08:00
Jare Guo 5e24ddb8c5 Merge pull request #2704 from pandamicro/next
Add Texture premultiply alpha serialization support
2018-05-21 16:55:20 +08:00
pandamicro 950a68d164 Improve texture2d deserialize 2018-05-21 15:14:46 +08:00
chenxianyin bc42a8a7cf Issue fixes for audio preload and Scale9Sprite.FillType (#2707)
* fix audio reload error, more preload call won't create more WebAudioElement yet.

* fix JSB cc.Scale9Sprite.FillType error.
2018-05-21 14:09:43 +08:00
James Chen 2d7e3ade55 Reverts HTMLCanvasElement change in PR #2684. (#2700)
* Reverts HTMLCanvasElement change in PR #2684.
It's a bug of alignment value while reading texture. Adds _alignment variable in HTMLCanvasElement.

* Default value of width& height of Canvas is 0.

* Call PixelStorei before texImage2D in C++.
2018-05-21 09:54:36 +08:00
pandamicro 92865d88da Add Texture premultiply alpha serialization support 2018-05-18 17:04:39 +08:00
pandamicro 04d7e58462 Fix modules.json (#2705) 2018-05-18 17:02:53 +08:00
pandamicro 88a5bd6aa4 Fix Texture filter mode update issue (#2703) 2018-05-17 23:54:37 +08:00
pandamicro 352c999d40 Fix color render flag set to normal node (#2702) 2018-05-17 18:36:34 +08:00
Knox 49f5ab087d improve WebView and VideoPlayer (#2701)
* improve WebView and VideoPlayer

* refine code

* add word-wrap to editor webview div
2018-05-17 18:34:35 +08:00
Jare Guo 02d1c10c07 Merge pull request #2699 from knoxHuang/master
fix fireball/issues/7316
2018-05-17 16:04:38 +08:00
knox 820c26906a fix fireball/issues/7316 2018-05-17 16:00:20 +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 c3a9e6235b Improve render flag control in render component (#2695)
* Improve render flag control in render component

* Overwrite disableRender in Mask

* Secure markForUpdateRenderData for Sprite (check material)

* Fix particle auto remove process
2018-05-17 10:41:46 +08:00
James Chen 68e635383b Uses setPreferredFramesPerSeconds to control FPS for JSB. (#2696)
* Uses setPreferredFramesPerSeconds to control FPS for JSB.

* Empty implement for window.scroll .
2018-05-17 10:03:10 +08:00
Knox 2e95f374f8 optimization label memory (#2693)
* optimization label memory and refine code

* refine code
2018-05-17 09:56:02 +08:00
pandamicro a7a566ff2a 2.0 alpha 11 issue fixes (#2694)
* Fix variable leak to global scope

* Fix Texture update issue

* Fix video player _playing state setting issue

* Improve macro doc
2018-05-16 17:00:31 +08:00
Jare Guo 86acc1b30e Merge pull request #2692 from ColinCollins/master
correct create of creator.d.ts
2018-05-16 14:06:12 +08:00
yinkaile bd2dd76826 move webgl stuff into webgl folder (#2690) 2018-05-16 10:44:33 +08:00
Coco 70f24d9a6c correct create creator.d.ts 2018-05-16 10:40:30 +08:00
James Chen 14eab56ec2 Fixes unneeded readyState setting in HTMLAudioElement.js (#2691) 2018-05-16 10:31:34 +08:00
James Chen c094968b1b Adds a new parameter (commandCount) to flushCommands, easily for debugging. (#2689) 2018-05-16 10:31:06 +08:00
pandamicro 172f520259 Update mask assembler and mask materials (#2688) 2018-05-16 10:15:21 +08:00
黄家辉 2156acf2ce correct creator.d.ts little error (#2687) 2018-05-16 10:14:53 +08:00
Coco 5c9ac688ee correct creator.d.ts little error 2018-05-16 09:52:58 +08:00
yinkaile ec176ce336 refine activate material (#2685)
* refine label activateMaterial

* refine sprite activateMaterial

* refine motion streak activateMaterial
2018-05-15 18:44:45 +08:00
James Chen a7e15e80d7 Uses _bufferWidth, _bufferHeight of HTMLCanvasElement in gl.texImage2D. (#2686) 2018-05-15 15:47:56 +08:00
James Chen e18164c106 The content buffer size of canvas should only be a value of multipling 2. Otherwise, text rendering may be wrong. (#2684) 2018-05-15 15:14:52 +08:00
James Chen c2d8649762 Make Image be inherited from HTMLImageElement. (#2677) 2018-05-15 15:00:18 +08:00
Knox 36e964f747 fix follow bug for fireball/issues/7286 (#2682) 2018-05-15 14:49:35 +08:00
Knox 8ba1cd29db fix spine debugBones and debugSlots bug for fireball/issues/7286 (#2680)
* fix spine debugBones and debugSlots bug for fireball/issues/7286

* improve graphics color setting
2018-05-15 12:05:43 +08:00
yinkaile 97c50c24de destroy dynamic atlas texture before loading scene (#2678)
* destroy dynamic atlas texture before loading scene

* refine code

* refine code
2018-05-15 11:33:46 +08:00