Commit Graph

6387 Commits

Author SHA1 Message Date
pandamicro 9706bcdbcc Upgrade render engine (#2716) 2018-05-22 16:44:28 +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
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
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
yinkaile bd2dd76826 move webgl stuff into webgl folder (#2690) 2018-05-16 10:44:33 +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
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
Knox d57064fa43 fix CCMotionStreak color error for fireball/issues/7286 (#2679) 2018-05-15 10:37:26 +08:00
Knox 646a406ebd CCSprite spriteframe avoid RenderFlow.FLAG_RENDER (#2675) 2018-05-15 09:35:32 +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
pandamicro b4313de272 Fix issue caused by sprite.spriteFrame set to null (#2672) 2018-05-12 17:01:17 +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
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
yinkaile f326869f47 fixed richtext (#2667) 2018-05-11 15:42:53 +08:00
yinkaile 15e63fc817 fixed label error (#2664)
* fixed label error

* should not render label if string is empty

* improve color render  flag
2018-05-11 11:19:50 +08:00
Jare Guo ebf7d7d730 register component to scene after ctor (#2661) 2018-05-10 17:00:59 +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
Jare Guo 8d9fc58a6a fix scene reloading (#2660) 2018-05-10 14:59:21 +08:00
Jare Guo 04d8a432f6 fix _id in editor (#2658) 2018-05-09 19:31:34 +08:00
pandamicro 314b0b55c0 Issue fixes for 2.0 (#2656)
* Generate component _id with uuid in editor

* Fix issues
2018-05-09 18:10:04 +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 1e5cfcad9f Fix Color fromHEX typo (#2651) 2018-05-09 10:31:56 +08:00
pandamicro ec9a718569 Issue fixes for 2.0 (#2650)
* Upgrade render engine

* Fix sprite rendering issue while loading sprite frame

* Fix mesh buffer initialization issue

* Fix color fromHEX

* Remove ;
2018-05-09 10:05:23 +08:00
Jare Guo 550e85b9e2 update _id management (#2648) 2018-05-09 09:58:51 +08:00
yinkaile e4325577ad Next vertex format (#2645)
* restructure vertex format

* update render-engine.js

* refine vertex format

* refine sprite vertex property name
2018-05-08 21:51:27 +08:00
Jare Guo f12f5cd987 Merge pull request #2647 from pandamicro/next
Improve Node/Component _id management
2018-05-08 19:36:46 +08:00
pandamicro 8a92606e29 Fix _id reset issue 2018-05-08 19:05:12 +08:00
minggo ffeada68f3 fix musk issue (#2644) 2018-05-08 11:33:48 +08:00
pandamicro 26de29f489 Upgrade renderer.js to 1.8.3 (#2642) 2018-05-08 10:34:28 +08:00
pandamicro 1034635917 Upgrade render-engine (#2638) 2018-05-07 17:56:14 +08:00