Commit Graph

554 Commits

Author SHA1 Message Date
minggo 3fc5d1d76d 3d gfx use java activity (#2990)
* use java activity

* simplify codes

* initialize app

* first version of touch handler

* fix touch event's bug

* add keycode event support for android

* add sensor adapt

* add copyright header

* add webview support

* support video player

* add missing property

* add editor box support

* handle crash if come from background on Android

* update external version

Co-authored-by: wuzhiming <wuzhiming.chukong@gmail.com>
2020-11-07 17:38:33 +08:00
ChiaNing 6ba1c6e477 Compress Texture bug fix & ASTC Support (#2983)
* Compress Texture bug fix & ASTC Support
2020-11-06 16:58:24 +08:00
吴智明 18c9dd40b0 fix bug when copy resource (#2970) 2020-11-02 16:31:01 +08:00
minggo 68360aefc9 iOS metal (#2932) 2020-10-30 16:15:47 +08:00
coulsonwang 78a39e014a fix viewport (#2955) 2020-10-28 18:24:17 +08:00
吴智明 d5d772556c 3d gfx upgrade gradle (#2928)
* upgrade gradle version and instant app version

Signed-off-by: wuzhiming <wuzhiming.chukong@gmail.com>

* upgrade gradle config

Signed-off-by: wuzhiming <wuzhiming.chukong@gmail.com>

* fix project path

Signed-off-by: wuzhiming <wuzhiming.chukong@gmail.com>
2020-10-20 15:09:05 +08:00
minggo e605f34bd6 dispatch memory warning event to JS (#2924) 2020-10-20 09:48:46 +08:00
coulsonwang 0f0cac425f fix metal supported depthstencil format (#2917) 2020-10-16 18:40:07 +08:00
minggo 918fde3a13 Enum class type (#2909) 2020-10-14 17:57:39 +08:00
Knox 8299383ae8 add web view (#2863)
* add web view

* refine code
2020-09-30 17:58:38 +08:00
江战 36ac7ab368 [3d-gfx] sync #2231 neg acc.z (#2862)
* use negative value of acc.z #2231

* fix typo
2020-09-30 17:31:54 +08:00
Knox 24bb96f7ef add video player (#2860) 2020-09-30 13:58:07 +08:00
江战 cfb5204a1d [bugfix] win32 drawtext prefix / v2.4 #2528 (#2854) 2020-09-28 15:19:12 +08:00
江战 7cbb298297 Fix jsb.fileUtils.listFilesRecursively binding #2337 (#2850) 2020-09-28 15:00:04 +08:00
江战 21b16d6246 Rename package okhttp3 to org.cocos2dx.okhttp3 #1961 (#2843) 2020-09-28 10:39:36 +08:00
江战 a0d5b38eb8 Fix crash below android4.4 when the class cannot be found … (#2839) 2020-09-28 10:34:13 +08:00
江战 fab25711ec bug: fix crash when launch from icon after launch from installer #2169 (#2840) 2020-09-28 09:50:58 +08:00
江战 346ff97f80 [bugfix] correct utf8 encoding (#2394) (#2846)
* add UTF8LooseFix

* fix include
2020-09-28 09:39:35 +08:00
minggo 491948f31e fix crash on iOS when backing from backgroud (#2829) 2020-09-24 13:50:25 +08:00
coulsonwang 995b491392 fix metal bindless texture (#2789) 2020-09-15 22:23:10 +08:00
minggo 9d9c79012b change file path (#2733) 2020-09-10 09:51:24 +08:00
minggo b08407c501 remove CC/cc prefix for file names (#2728) 2020-08-28 15:23:29 +08:00
zhefeng.zhang fda166d954 sync #1919 (#2711) 2020-08-24 11:54:15 +08:00
minggo 9ba81190d1 calculate total frames (#2710) 2020-08-24 09:41:06 +08:00
minggo 8851495456 Native renderer (#2662)
Refactor RenderPipeline/RenderStage/RenderFlow
2020-07-31 16:52:25 +08:00
minggo 6a17148d40 use .cpp/.h for source file suffix (#2654) 2020-07-22 15:00:28 +08:00
minggo 581aca5da0 Refactor fileutils (#2649) 2020-07-17 15:45:15 +08:00
minggo 38e82e57ab remove unneedded codes (#2642)
* remove unneedded codes

* fix compiling error
2020-07-10 16:47:04 +08:00
Yun Hsiao Wu 178375c31d remove clearflags in begin render pass cmd (#2628)
* remove clearflags in begin render pass cmd

* fix clearFlags on metal

Co-authored-by: coulsonwang <coulsonwang@126.com>
2020-07-07 08:58:54 +08:00
coulsonwang 71e31cc236 Remove command package (#2620)
* remote metal command package

* apply the clang format

* remove std usage
2020-06-29 16:39:34 +08:00
江战 7423ccef65 Impl runOnGameThread on Android (#2577) 2020-06-24 15:31:25 +08:00
minggo bb6ea9bec3 remove GFX prefix (#2611) 2020-06-24 10:51:14 +08:00
minggo 7efee066fd Remove duplicate (#2597) 2020-06-19 11:07:21 +08:00
minggo e07bc0821c use cc::gfx namespace (#2576) 2020-06-16 18:10:41 +08:00
minggo d381a16142 change namespace from cocos2d to cc (#2572) 2020-06-16 14:34:46 +08:00
minggo ac08833b56 remove CCPlatformDefine.h (#2565) 2020-06-15 16:00:27 +08:00
江战 4c2b647bba remove CCPlatformConfig.h / 3d-gfx (#2555) 2020-06-12 11:17:37 +08:00
minggo e0410ffea3 Native renderer (#2554)
* add some renderer files

* add RenderView

* add RenderBatchedQueue

* add RenderInstancedBuffer

* add InstancedBuffer

* add BatchedBuffer
2020-06-12 10:46:50 +08:00
minggo 7997a44f18 Remove webview (#2543) 2020-06-10 16:04:07 +08:00
Yun Hsiao Wu b46d4cc89f more vulkan adaptations (#2479)
* vk: explicit location

* SDL main entry

* vk: unsuccessful attempt to workaround clearFlags

* vk: restore clear loadop

* vk: refine device feature framework

* gfx: fence

* overloads instead of default params

* fix ci compile issue

* fix ci compile issue

Co-authored-by: coulsonwang <coulsonwang@126.com>
2020-05-29 15:44:21 +08:00
江战 082f432d2a remove unused code / 3dgfx (#2487)
* remove \*.mk

* support Makefile

* update default template

* fix path

* fix field type

* link resource instead of copy

* update external

* fix travis

* fix ssize_t macro

* fix macro 2
2020-05-28 11:24:14 +08:00
江战 f0d2b6d268 update (#2459) 2020-05-19 14:21:14 +08:00
江战 1748a533a7 init pthread key p_key (#2460) 2020-05-19 14:02:12 +08:00
minggo 96cbe1e971 Android adapt (#2410)
* simplify get obb file path

* not get package name throung jni

* not get sdk version from android

* remove unneeded codes

* remove convertEncoding

* remove unneeded codes'

* remove unneeded codes

* simpify codes

* simplify codes

* remove unneeded codes
2020-04-27 17:14:06 +08:00
minggo 2082c30ea4 fix crash if enter background on Android (#2401)
* fix crash if enter background on Android

* break if recreate window error
2020-04-24 16:56:35 +08:00
Arnold 79fc8353d1 3dgfx add CI & cmake (#2350)
* use-cmake

* revert: enable gles3 for android

* compile with cmake only
2020-04-14 13:58:45 +08:00
minggo c590172f76 fix some issues: (#2367)
- present drawable in View to prevent rendering warning in metal
- fix draw elements offset
- fix pipeline state
2020-04-13 12:10:18 +08:00
minggo 11d8db66fd Metal implement device present (#2366)
* fix issue that pipeline state is not bound correctly

* implement CCMTLDevice::present()
2020-04-10 14:44:26 +08:00
minggo dd1ea9420d use one command buffer for a queue submit (#2357) 2020-04-08 16:45:13 +08:00
minggo 9e7717c1c3 improve metal implementation (#2354) 2020-04-07 15:52:01 +08:00