Commit Graph

3842 Commits

Author SHA1 Message Date
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 188efebd52 fix issue that pipeline state is not bound correctly (#2364) 2020-04-10 11:39:37 +08:00
minggo 870641ce93 fix crash that buffer is not bound (#2363)
* fix crash that buffer is not bound

* bind state in correct logic
2020-04-10 11:10:02 +08:00
CocosRobot 4211fb4ffd [ci skip][AUTO]: updating jsbinding automatically (#2362) 2020-04-09 18:39:05 +08:00
Yun Hsiao Wu 318c28c1f0 numInstances binding (#2359) 2020-04-09 18:32:25 +08:00
minggo dd1ea9420d use one command buffer for a queue submit (#2357) 2020-04-08 16:45:13 +08:00
CocosRobot fa4b75b279 [AUTO][ci skip]: updating cocos2dx_files.json (#2355) 2020-04-08 09:53:27 +08:00
minggo 9e7717c1c3 improve metal implementation (#2354) 2020-04-07 15:52:01 +08:00
CocosRobot 7dfaaed0a8 [ci skip][AUTO]: updating jsbinding automatically (#2351) 2020-04-03 10:00:49 +08:00
coulsonwang 31cc3c73ca prefix "__" to property (#2347)
* prefix __ to property

* update submodule
2020-04-03 09:53:21 +08:00
Arnold b4a1ddd891 exclude gles2 from project file (#2334) 2020-03-26 18:24:07 +08:00
minggo da1c03d8d9 implement fps limitation (#2333) 2020-03-26 18:04:32 +08:00
Yun Hsiao Wu 8b33c034f5 fix window cmopile error (#2328) 2020-03-25 09:28:41 +08:00
minggo 1b696d8504 use gles3 for all platforms (#2327) 2020-03-24 17:26:21 +08:00
minggo dd093db501 Mac set cursor (#2326)
* enable cursor setting

* set correct OS string for macOS
2020-03-24 16:17:05 +08:00
CocosRobot 7e04bd08c7 [AUTO][ci skip]: updating cocos2dx_files.json (#2325) 2020-03-24 15:07:54 +08:00
minggo d573a5f2f5 android support GLES3 (#2324) 2020-03-24 15:02:19 +08:00
CocosRobot 282d01ecb1 [ci skip][AUTO]: updating jsbinding automatically (#2322) 2020-03-24 14:42:43 +08:00
minggo dd1054d45d use GLES3 on iOS (#2316)
* use GLES3 on iOS

* add GLSL300 version define

Co-authored-by: coulsonwang <coulsonwang@126.com>
2020-03-24 14:35:04 +08:00
CocosRobot ad4c0dd5c1 [AUTO][ci skip]: updating cocos2dx_files.json (#2321) 2020-03-23 18:23:33 +08:00
Arnold 4945e21a5e 3dgfx win32 refactor, move view-win32 to platform/win32/ (#2320)
* remove View-win32 in templates

* add View-win32.cpp/h

* fix template

* fix template, file path

* remove title
2020-03-23 18:15:54 +08:00
CocosRobot d04561cbe5 [AUTO][ci skip]: updating cocos2dx_files.json (#2319) 2020-03-23 16:28:44 +08:00
minggo 9be1356d67 System adapter (#2318)
* move View to engine on mac

* move View to engine on iOS

* add CC prefix for file names

* handle input events in engine on Android
2020-03-23 16:22:54 +08:00
Yun Hsiao Wu 1025336e71 fix texture multiple upload (#2315) 2020-03-23 09:58:34 +08:00
coulsonwang 28780c7305 fix glClear issue (#2317) 2020-03-23 09:51:16 +08:00
Yun Hsiao Wu 6cba0e85a5 more consistent gfx format (#2314)
* minor

* more consistent gfx format
2020-03-20 11:37:12 +08:00
CocosRobot 747a54b138 [ci skip][AUTO]: updating jsbinding automatically (#2310) 2020-03-19 18:39:07 +08:00
coulsonwang fab59fdff0 fix particle issue (#2308)
* fix particle issue

* keep GFXIndirectBuffer

* revert GFXIndirectBuffer
2020-03-19 18:28:04 +08:00
minggo dc2d278383 Fix comment (#2307)
* fix wrong effect on some mac devices

* add comment in correct place
2020-03-19 17:26:45 +08:00
Arnold c5ab459e4c [win32] fix keyboard key codes (#2306) 2020-03-19 17:04:27 +08:00
minggo 03a89e27f8 fix wrong effect on some mac devices (#2305) 2020-03-19 16:33:41 +08:00
minggo 62f994ba85 simplify codes (#2304) 2020-03-19 15:00:41 +08:00
CocosRobot dfa1634907 [ci skip][AUTO]: updating jsbinding automatically (#2303) 2020-03-19 14:51:00 +08:00
Arnold d3cf38e609 [3d-gfx] win32 fix editbox (#2302) 2020-03-19 14:42:46 +08:00
coulsonwang 32fd98017e Fix vector conversion (#2264)
* fix vector_to_seval

* fix

* remove some manual conversion, make it auto generate

* update bindingGenerator
2020-03-19 14:19:01 +08:00
CocosRobot dbb4e06b44 [AUTO][ci skip]: updating cocos2dx_files.json (#2300) 2020-03-19 13:56:15 +08:00
Arnold 4743bfd379 3dgfx websocket add const fields for instance (#2299)
* websocket add const properties for instances

* fix macro
2020-03-19 13:55:20 +08:00
minggo 2d3010f546 Editbox (#2294)
* mac support editbox

* fix compiling/runtime issue for iOS/Android

* prevent handling touch event if it is prevented

* make editbox work

* fix effect of editbox on android
2020-03-19 13:46:31 +08:00
CocosRobot 09fe61bb9a [ci skip][AUTO]: updating jsbinding automatically (#2295) 2020-03-19 13:45:36 +08:00
Yun Hsiao Wu 366f76acec should update cache when binding array buffer (#2284)
* fix tri/dc count

* fix array buffer cache

* fix VAO routine

* fix windows pointer lock

* gfx instance count

* fix SDL window event handler

* fix profiler interface

* fix GL resource deletion

* fix state cache
2020-03-18 17:25:35 +08:00
coulsonwang 5e1a0fb4cb fix ios compile issue (#2293) 2020-03-18 16:43:25 +08:00
CocosRobot d359bfcebc [AUTO][ci skip]: updating cocos2dx_files.json (#2291) 2020-03-18 15:26:32 +08:00
coulsonwang 3e69292f25 fix stencil cache issue (#2290) 2020-03-18 15:19:04 +08:00
minggo 5262853ccd Merge pull request #2286 from CocosRobot/update_js_bindings_1584502702
[ci skip][AUTO]: updating jsbinding automatically
2020-03-18 11:41:38 +08:00
CocosRobot 0ec364f30c [ci skip][AUTO]: updating jsbinding automatically 2020-03-18 03:38:40 +00:00
minggo 2f5584d4dc fix windowHander nullptr issue on mac (#2282)
* fix windowHander nullptr issue on mac

* add getWindow to fetch NSWindow on mac

* fix windowHandler
2020-03-18 11:37:20 +08:00
Arnold ce1cd53386 [gfx] win32 adaptation (#2270)
* update for windows

* update ref location

* update external

* revert debug info

* fix include order

* fix template

* fix buffer

* remove CCStdC-win32*
2020-03-18 11:35:40 +08:00
coulsonwang cf4751098b fix windowHandler 2020-03-18 10:36:56 +08:00
Arnold 90400c0beb [3d-gfx] GFXObject add virtual destructor (#2285)
* add virtual destructor

* remove empty row
2020-03-17 18:38:29 +08:00