James Chen
983e87e9a6
module cache works.
2018-03-01 10:31:27 +08:00
James Chen
3f88e14de9
require supports module.exports.
2018-02-27 17:03:28 +08:00
James Chen
f001d1135d
Adds swapBuffer to GLView, bunny test works again on Mac. ( #1129 )
2018-02-24 14:22:06 +08:00
James Chen
5453cbc99f
Updates jswrapper to the latest version. ( #1127 )
2018-02-24 11:48:08 +08:00
minggo
93090fea87
can run js on iOS and Mac ( #1124 )
2018-02-24 10:27:31 +08:00
minggo
fee7afc74a
mac main loop work ( #1112 )
...
* mac main loop work
* fix some issue
2018-02-11 14:25:14 +08:00
minggo
695c26695c
ios main loop work ( #1107 )
...
* ios main loop work
* fix compiling error
2018-02-09 16:44:46 +08:00
minggo
15b34c81dc
dispatch touch event on iOS ( #1101 )
2018-02-09 09:26:44 +08:00
minggo
802e48080e
New renderer ( #1097 )
...
* build work on mac
* build ok on iOS
* fix compiling error on android
* fix android link error
2018-02-08 10:40:29 +08:00
feijing566
70e7f38622
add some dragonbones function jsbinding ( #1086 )
...
* add dragonbones_Armature_getSlots jsbinding
* update
* add js_cocos2dx_dragonbones_Slot_get_name and js_cocos2dx_dragonbones_BaseFactory_replaceSlotDisplay jsbing
2018-02-01 17:03:43 +08:00
Jare Guo
d9bd3d763c
update license ( #1089 )
...
* updating license
* update license
2018-02-01 15:20:01 +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
CocosRobot
7a925d02b7
[ci skip][AUTO]: updating jsbinding automatically ( #1068 )
2018-01-16 14:02:35 +08:00
Jare Guo
77d142f7d8
Merge pull request #1061 from cocos-creator/v1.8
...
sync branch
2018-01-09 22:11:12 +08:00
Jare Guo
861f1b4e98
Merge pull request #1060 from cocos-creator/v1.8-release
...
sync branch
2018-01-09 22:09:34 +08:00
James Chen
3fa48d4a11
Adds missing se::autoHandleScope. ( #1057 )
2018-01-08 15:31:20 +08:00
James Chen
560cdff5b6
Binds tmxlayer.getTiles. ( #1053 )
2018-01-04 11:03:54 +08:00
CocosRobot
9aa2b05e85
[ci skip][AUTO]: updating jsbinding automatically ( #1052 )
2018-01-03 16:12:52 +08:00
Jare Guo
a548db62d1
refactor dragonbones asset managment ( #1048 )
2018-01-03 14:38:16 +08:00
James Chen
cc40611944
fixed #1041 : Potential crash in invokeJSTouchOneByOneCallback. ( #1043 )
...
And fixed potential invalid se::Object after invoking cc.director.getScheduler/getActionManager/getEventDispatcher, cc.SpriteFrame/Sprite.getTexture.
Added hook functions in EventDispatcher, TextureCache to prevent using dangerous se::Object.
Stop propagation for TouchOneByOne event should only affect current Touch point.
Fixed updateListener may not be invoked.
2018-01-02 13:56:26 +08:00
Jare Guo
c4d6e83254
allow TiledMap to read preloaded textures for creator ( #1034 )
2017-12-19 11:28:12 +08:00
James Chen
44813f4166
Sync PR: cocos2d-x #18299 : JNI ERROR (app bug): local reference table overflow (max=512) ( #1024 )
...
* Sync PR: cocos2d-x #18299 : JNI ERROR (app bug): local reference table overflow (max=512)
* Fixes potential memory leak if can't find class by jsb.reflection.callStaticMethod.
2017-12-08 18:25:04 +08:00
James Chen
0a0a177ee7
Fixes xhr.ontimeout isn't invoked and xhr.onerror is called instead while timeout is triggered. ( #1020 )
2017-12-07 17:20:44 +08:00
James Chen
d2dbc9a7ef
Workaround for socketio.emit without payload argument ( #1019 )
2017-12-07 17:10:18 +08:00
James Chen
2e3883f097
[Android] Fixed compilation error while using APP_PLATFORM >= 22. ( #1012 )
...
* [Android] Fixed compilation error while using APP_PLATFORM >= 22.
* Don't use deprecated createUint8TypedArray.
2017-11-23 15:19:37 +08:00
James Chen
f5f94ac857
[iOS] jsb.reflection.callStaticMethod supports to call objective-c method with NSNumber* and supports to pass undefined/null from JS. ( #1010 )
2017-11-23 14:26:03 +08:00
James Chen
7c4eeecdde
Removes the unneeded support for passing 'key' arguments to cc.Scheduer.schedule/unschedule. ( #1009 )
...
* Removes the unneeded support for passing 'key' arguments to cc.Scheduler.schedule/unschedule.
* cc.REPEAT_FOREVER isn't defined in lite and it isn't needed to hack cc.Scheduler.schedule in script either.
2017-11-23 13:47:15 +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
6cf513a377
Adds missing binding code for Scheduler.isTargetPaused. ( #1007 )
2017-11-22 16:15:30 +08:00
yinkaile
3fb0cc276d
support zip compress js files ( #1001 )
2017-11-21 16:08:17 +08:00
James Chen
0f7596959a
Follows creator documentation guildline for JSB 2.0 Chinese Tutorial. ( #1002 )
2017-11-21 14:30:57 +08:00
James Chen
09e55152ec
Adds JSB2.0 English documentation. ( #999 )
2017-11-20 16:30:13 +08:00
James Chen
0a10b3b7f8
Fixes ccvalue_to_seval convertion function didn't consider some kinds of types. ( #996 )
2017-11-17 17:30:25 +08:00
James Chen
9762662d30
Updates docs for debugging. ( #995 )
2017-11-17 15:22:58 +08:00
James Chen
38c666acc2
Returns true if passing null or undefined value to seval_to_native_ptr and sets the out value to nullptr. ( #994 )
2017-11-17 15:07:44 +08:00
James Chen
69ee2e12bb
Reverts localStorage changes in PR #545 since any js value could be converted to string.
...
Keeps the behavior the same as web browser.
2017-11-17 13:57:30 +08:00
James Chen
5050fb570b
Any kinds of se::Value should be able to be converted to std::string.
2017-11-17 13:52:43 +08:00
James Chen
4ccf1df75a
Adds se::Object::toString() method for converting an Object to std::string. ( #992 )
2017-11-17 13:40:25 +08:00
James Chen
de091e7369
se::Object::getTypedArrayData fix for jsc and v8. Need to consider byteOffset of ArrayBuffer stored in TypedArray. ( #989 )
2017-11-16 10:39:33 +08:00
James Chen
bb85aeba13
Don't be so strict of checking whether it's in garbage collecting in releaseScriptObject. ( #988 )
2017-11-15 16:43:03 +08:00
James Chen
2acd8b555a
Adds assertion while uses a wrong debug address or port in DEBUG mode. ( #986 )
2017-11-15 14:23:28 +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
James Chen
0fccb356ae
Merge pull request #984 from cocos-creator/v1.7-release
...
Merge v1.7-release
2017-11-14 15:13:24 +08:00
James Chen
66bc0e63a3
Uses toStringForce for location name since it's probably be undefined in v8. ( #983 )
...
And other minor fixes for sm and chakracore.
2017-11-14 14:58:44 +08:00
Jare Guo
2a8702af7c
Merge pull request #981 from cocos-creator/v1.7-release
...
Update V1.7
2017-11-13 02:50:04 -06:00
James Chen
d2462a8c7f
Fixes apple reject apps reference JSSynchronousGarbageCollectForDebugging ( #980 )
2017-11-12 09:18:07 +08:00
James Chen
3617745392
Fixes xhr.send(undefined) or xhr.send(null) will not send any request to server. ( #977 )
2017-11-10 16:17:36 +08:00
James Chen
bb21caf9f9
CCLOG -> CCLOGINFO for spTrackEntry relevant logs. ( #978 )
...
fixed https://github.com/cocos-creator/fireball/issues/6611
2017-11-10 16:11:12 +08:00
James Chen
a55cb9b0d3
Adds New API se::Object::createTypedArray and deprecates se::Object::createUint8TypedArray. ( #974 )
...
* Adds New API se::Object::createTypedArray and deprecates se::Object::createUint8TypedArray.
* Fixes mistake while cherry-pick.
2017-11-09 17:06:13 +08:00
yinkaile
3497f34b3d
add setEnable to CameraNode
2017-11-07 11:17:27 +08:00