Commit Graph

95 Commits

Author SHA1 Message Date
CocosRobot 5b1239d096 [ci skip][AUTO]: updating jsbinding automatically (#2127) 2020-02-14 18:36:07 +08:00
CocosRobot 8bff478aa8 [ci skip][AUTO]: updating jsbinding automatically (#2097) 2020-01-19 14:36:26 +08:00
minggo 2448fc74b2 refactor iOS codes (#2075) 2020-01-13 15:29:27 +08:00
minggo 1f0019b76c ios integrate gfx (#2072) 2020-01-13 09:57:50 +08:00
leda 7c93a11905 runtime require: add context2d fill/rect method for android (#1561)
* add context2d fill & rect method for android

* workaround: draw a hairline to cover the border

* fix clear&fillrect parameter error

* add empty impl on Apple

* add empty Imple in win32

* enable "SUBPIXEL_TEXT_FLAG" flag to make the text more clear on Android

* move putImageData impl to native

* add empty _fillImageData impl on win32 & apple
2018-10-26 13:44:03 +08:00
leda c74745eee4 add "getSafeAreaEdge" interface to get SafeArea edge insets (#1502)
* try to resume iPhone X support

* gen binding code

* only get SafeAreaEdge on native

* add getSafeAreaEdge for others

* update binding-generator
2018-09-10 10:14:23 +08:00
CocosRobot f37a259dd8 [ci skip][AUTO]: updating jsbinding automatically (#1495) 2018-09-04 13:53:50 +08:00
CocosRobot 81301ca4b4 [ci skip][AUTO]: updating jsbinding automatically (#1480) 2018-08-24 20:43:09 +08:00
CocosRobot 80fdcd0e74 [ci skip][AUTO]: updating jsbinding automatically (#1477) 2018-08-24 17:45:25 +08:00
James Chen 5245664704 Adds Device::getDeviceModel method. (#1276) 2018-05-31 14:13:28 +08:00
James Chen 712173a8de Supports DeviceMotionEvent and removes more unused code. (#1275)
* Binds Device class

* Removes ccFPSImage.c/h

* Updates Android.mk

* Supports DeviceMotionEvent and removes more unused code.

* Uses fprintf to implement SE_LOGD & SE_LOGE .
2018-05-31 14:08:20 +08:00
James Chen 7667b00f87 More WebGL binding fixes. (#1160)
* Less opengl binding files.

* recreateBuffer in CanvasRendereringContext2D constructor.

* gl.bindFrameBuffer(gl.FRAME_BUFFER, null) needs to set to default frame buffer .

* Fixes JSB_glGetActiveUniform use GL_ACTIVE_ATTRIBUTE_MAX_LENGTH to get the max length, we need to use GL_ACTIVE_UNIFORM_MAX_LENGTH instead.

* glBufferSubData supports typedarray with 0 length. Adds more API for CanvasRenderingContext2D.
2018-03-22 16:03:34 +08:00
James Chen bf1b4f7124 [runtime] Audio works. (#1151) 2018-03-17 11:22:56 +08:00
James Chen fe91680060 Adds ctx.fillRect interface, JSB_get_arraybufferview_dataptr supports null or undefine converstion. 2018-03-12 15:25:47 +08:00
James Chen 4eccfbcba8 Mac font display ok. 2018-03-08 17:38:45 +08:00
James Chen 7beded3156 Canvas binding fix. 2018-03-07 18:45:20 +08:00
James Chen 6721db7bc6 Updates gfx/renderer auto binding code and ini configuration. 2018-03-07 09:59:26 +08:00
minggo fd99785ef4 simplify xcode project (#1136) 2018-02-28 17:56:38 +08:00
James Chen 69798998db Adds cc.sys.getBatteryLevel & cc.sys.getNetworkType APIs (#1071)
* Adds cc.Device.getBatteryLevel interface.

* Adds CCReachability.h/.cpp

* Adds CCReachability.h/.cpp

* Reachability supports macOS either.

* Adds cc.Device.getNetworkStatus interface.

* Removed debug log.

* cc.Device.NetworkStatus -> cc.Device.NetworkType

* API to sys namespace

* Update CCDevice-win32.cpp
2018-01-29 17:37:15 +08:00
Jare Guo c4d6e83254 allow TiledMap to read preloaded textures for creator (#1034) 2017-12-19 11:28:12 +08:00
James Chen c22673d440 Provides an interface for getting SafeArea (#1008)
* Provides an interface for getting SafeArea

* @available(iOS 11.0, *) isn't supported in Xcode8. So we use the old way.
2017-11-23 13:39:35 +08:00
James Chen 4a61e1423f Re-binds OpenGL interfaces. (#976)
* Adds opengl bindings code.

* Register OPENGL module.

* Updates Android.mk

* Updates win32 project configuration.

* Supports boolean -> integer conversion.

* glXXXXv count fix.

* GLNode needs to inherit from Node.

* Updates bindings.

* size fix in JSB_glGetUniformfv.

* JSB_glGetSupportedExtensions fix.
2017-11-14 18:05:14 +08:00
yinkaile d7fa1f9e13 rename director culling functions 2017-10-31 18:23:13 +08:00
yinkaile 26ff253d8c support dynamic enable/disable culling 2017-10-31 15:37:12 +08:00
James Chen fdd46f2718 Auto binds RenderTexture::saveToFile and fix js memory leak while saveToFile.
The callback _saveFileCallback has to be set to nullptr to release se::Value the std::function captures.
2017-10-26 12:44:06 +08:00
CocosRobot 5dfb7e6c36 [ci skip][AUTO]: updating jsbinding automatically 2017-10-25 10:50:51 +00:00
CocosRobot e0e7867719 [ci skip][AUTO]: updating jsbinding automatically 2017-10-23 07:16:38 +00:00
James Chen ee9713e007 CCLOG -> CCLOGINFO in finalize callback for less log output. 2017-10-11 17:02:46 +08:00
James Chen f0d2eeb2b3 Adds jsb_set_extend_property for easily setting extend property.
Adds jsb_init_file_operation_delegate and jsb_enable_debugger for easily use in AppDelegate.cpp.
2017-10-09 14:57:14 +08:00
James Chen 8b1ba02f9f Implements seval_to_TTFConfig, don't ignore createWithTTF and setTTFConfig in auto bindings. 2017-09-23 17:53:24 +08:00
James Chen 7539ccdad5 Merge pull request #819 from dumganhar/jsb2.0
[android] Fixes AppAcitivity (Sub class of Cocos2dxActivity) is re-created which causes crash if launching app first time and re-opening from icon.
2017-09-15 03:50:43 -05:00
James Chen ddc802d9f0 CCLOG in finalize method rather than cocos2d::log. 2017-09-15 10:40:43 +08:00
CocosRobot 1079062944 [ci skip][AUTO]: updating jsbinding automatically 2017-09-15 02:31:02 +00:00
James Chen f21fea4344 executeScriptBuffer -> evalString, executeScriptFile -> runScript. 2017-08-31 15:00:23 +08:00
James Chen df01303041 attachChild -> attachObject, detachChild -> detachObject, isSame -> strictEquals 2017-08-31 10:33:17 +08:00
James Chen 2b8798a73c Merge pull request #784 from dumganhar/jsb2.0
Some fixes for JSB2.0
2017-08-29 22:30:53 -05:00
CocosRobot c707237826 [ci skip][AUTO]: updating jsbinding automatically 2017-08-28 08:08:38 +00:00
James Chen 4a1cc2ec1b Updates auto bindings code 2017-08-28 14:05:55 +08:00
James Chen 2f38e872c1 Action binding bug fix. 2017-08-22 16:50:41 +08:00
James Chen dbe9716536 Adds BaseJSAction 2017-08-16 15:41:27 +08:00
James Chen 6b9cbbab28 cleanup. 2017-08-11 10:14:45 +08:00
James Chen e86ed76abf jsb2.0 windows works on v8. 2017-08-09 18:06:33 +08:00
James Chen dcadda2862 defineFinalizedFunction -> defineFinalizeFunction. 2017-08-03 17:28:40 +08:00
James Chen e5eac44c0f cleanup 2017-08-02 14:41:10 +08:00
James Chen 854aa81c0d JSB_PRECONDITION2->SE_PRECONDITION2 2017-07-31 10:57:59 +08:00
James Chen 10710cc407 switchToRoot -> root, switchToUnroot -> unroot. 2017-07-31 10:39:32 +08:00
James Chen b0b5edf8a8 Remove unneeded addRef. 2017-07-20 17:48:20 +08:00
James Chen b3db0a842a add modules register 2017-07-12 11:15:46 +08:00
James Chen cb9d9c2ad4 updates 2017-06-21 13:42:25 +08:00
James Chen d1a2e05ced temp 2017-06-20 10:25:37 +08:00