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
James Chen
d6a8e1ca34
Merge branch 'new-renderer' of git://github.com/cocos-creator/cocos2d-x-lite into new-renderer
...
# Conflicts:
# cocos/scripting/js-bindings/event/EventDispatcher.cpp
# cocos/scripting/js-bindings/proj.ios_mac/cocos2d_js_bindings.xcodeproj/project.pbxproj
2018-03-02 11:07:11 +08:00
James Chen
3af301306a
Rename Effect.setDefineValue to Effect.define.
2018-03-01 13:46:57 +08:00
minggo
fd99785ef4
simplify xcode project ( #1136 )
2018-02-28 17:56:38 +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
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
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
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
3497f34b3d
add setEnable to CameraNode
2017-11-07 11:17:27 +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
8ae6d54df3
Spine conversion should use pointer instead of reference since it probably returns nullptr.
2017-10-20 10:01:04 +08:00
yinkaile
8ac7257a46
fixed merge errors
2017-10-12 18:15:21 +08:00
yinkaile
f7b2b1f87f
Merge branch 'develop' into native-modules
...
# Conflicts:
# cocos/scripting/js-bindings/auto/jsb_creator_auto.cpp
# cocos/scripting/js-bindings/manual/jsb_creator_physics_manual.cpp
2017-10-12 17:48:16 +08:00
yinkaile
d38e168441
support native modules
2017-10-12 17:35:08 +08:00
James Chen
ee9713e007
CCLOG -> CCLOGINFO in finalize callback for less log output.
2017-10-11 17:02:46 +08:00
James Chen
412574c670
Merge branch 'develop' of git://github.com/cocos-creator/cocos2d-x-lite into jsb2.0
...
# Conflicts:
# cocos/scripting/js-bindings/auto/jsb_cocos2dx_extension_auto.cpp
2017-10-10 14:48:04 +08:00
2youyouo2
2405d0c917
remove unused extensions
2017-10-10 10:30:55 +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
CocosRobot
4523e9aee3
[ci skip][AUTO]: updating jsbinding automatically
2017-09-26 03:27:35 +00: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
235be1ec8a
Updates bindings.
2017-09-22 17:47:38 +08:00
2youyouo2
6771164c5d
remove unused ccui
2017-09-18 18:16:51 +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
7bb53e3b13
update binding js.
2017-09-15 10:41:55 +08: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
CocosRobot
603698b1c0
[ci skip][AUTO]: updating jsbinding automatically
2017-09-08 02:12:57 +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
73e45e92e4
Adds MappingUtils file, box2d works again.
2017-08-18 14:34:55 +08:00
James Chen
1a029399f9
Adds BaseJSAction and cleanup.
2017-08-16 15:42:26 +08:00
James Chen
dbe9716536
Adds BaseJSAction
2017-08-16 15:41:27 +08:00
James Chen
0fe0580b5f
deletes unused files.
2017-08-11 11:42:13 +08:00