James Chen
4e6de2b894
Handle all keyboard events. ( #2751 )
2018-05-28 23:34:06 +08:00
James Chen
0a15ee7d4f
Supports keyboard event. ( #2734 )
2018-05-25 14:59:35 +08:00
pandamicro
efaf0c5d4d
Merge remote-tracking branch 'fireball/master' into next
2018-05-24 19:04:55 +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
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
Jare Guo
94be219810
Merge branch 'v1.9'
...
# Conflicts:
# cocos2d/audio/CCAudio.js
2018-05-22 19:47:56 +08:00
minggo
02c0153554
fix crash when parsing Effect property ( #2710 )
2018-05-22 09:41:01 +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
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
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
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
PP
7620bb93a2
load ttf assets url with hashValue ( #2652 )
2018-05-15 10:39:51 +08:00
James Chen
fa3783a991
Minor JS logic fixes in CCSys.js and MediaError.js. ( #2676 )
2018-05-14 15:26:33 +08:00
James Chen
9662eb539b
More jsb adapter fixes and adds HTMLScriptElement ( #2670 )
...
* jsb-adapter fix.
* reverts.
* tab -> spaces.
2018-05-13 10:29:34 +08:00
James Chen
cd07d03b7d
Removes wx API invocations for JSB projects. ( #2668 )
...
* Removes wx API invocation for JSB projects.
* sys.openURL fix for JSB.
* touches, mouse, keyboard capabilities check.
2018-05-11 18:00:40 +08:00
Jare Guo
9e690f0fe1
Merge pull request #2653 from knoxHuang/master
...
fix ParticleSystem and update EngineErrorMap
2018-05-09 13:31:34 +08:00
Jare Guo
ff5d765917
fix jsb-audio ( #2649 )
2018-05-09 11:42:16 +08:00
knox
3419688d1d
fix ParticleSystem and update EngineErrorMap
2018-05-09 11:27:43 +08:00
minggo
ffeada68f3
fix musk issue ( #2644 )
2018-05-08 11:33:48 +08:00
pandamicro
e4bdd1edc3
Merge remote-tracking branch 'fireball/master' into next
2018-05-02 16:16:33 +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
Jare Guo
c47f5aa68e
Merge branch 'v1.9'
...
# Conflicts:
# cocos2d/actions/CCActionInterval.js
# cocos2d/audio/CCAudioEngine.js
2018-04-27 14:20:10 +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
013f155882
fix ZERO blend mode on web ( #2597 )
...
* stash
* fix ZERO blend mode support
2018-04-26 11:05:57 +08:00
minggo
efee3b49ce
adjust codes to unify js_loadImage binding codes ( #2585 )
2018-04-24 16:37:51 +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
wuzhiming
05bc4ce787
fix texture bug
2018-04-20 17:46:59 +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
99712484b1
Fix dumb issues
2018-04-20 13:50:42 +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
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
0f87a11100
Merge pull request #2564 from cocos-creator/optimize
...
Merge optimizations into next
2018-04-19 18:31:30 +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
e08fcfa5a7
Improve jsb renderer implementation
2018-04-19 11:17:01 +08:00
minggo
8f5f927a95
optimize performance
2018-04-18 17:01:46 +08:00
pandamicro
d6f15a3e77
Support build native with native renderer option
2018-04-18 12:36:46 +08:00
PP
2aa406f0d8
fix jsb audio bug
2018-04-17 18:51:33 +08:00
pandamicro
3ffdf16c61
Fix issues for next merging dev
2018-04-16 19:44:34 +08:00
pandamicro
14a555e0fb
Merge remote-tracking branch 'fireball/master' into next
2018-04-16 19:14:08 +08:00
minggo
335da463c5
optimize performance
2018-04-16 14:58:18 +08:00