leda
b3b37cf457
Add AssetsManager to iOS & Mac & Android & win32 ( #1405 )
...
* Add incomplete AssetsManager to iOS & Mac
* remove Android.mk refer on Xcode project config
* re-add assetmanager for android
* re-add assetmanager for win32 project config
* remove unused macro define for win32
* remove unused marco define COCOS2D_JAVASCRIPT
* added header include for assetsManager
* Add CCAsyncTaskPool
* Fix AssetsManager event trigger issue
* update win32 project config, added CCAsyncTaskPool
* add CCAsyncTaskPool to extensions Android.mk
2018-07-23 17:50:04 +08:00
Vincent Yang
8f6e9adbe1
[feature] CCDownloader add header and abort support. ( #1291 )
...
* [feature] android implement recieve http header param, handle it in android http request (#2 )
* [feature] Recieve http header param, handle it in android http request
* [feature] implement abort and header api
* /2.0 -> /2
* remove task when abort
* [feature] Implement ios and mac downloader abort api (#3 )
* [feature] Implement ios and mac downloader abort api
* use DLLOG to show log
* judge NSURLSessionTask state with NSURLErrorCancelled
* [adjust] Modify downloader from auto bind to manually (#4 )
* [adjust] Modify Downloader createDownloadFileTask api from auto bind to manually
* Modify ini file
* [bug] fix Cocos2dxDownloader.java syntax error
* [bug] CCDownloader-android creatCoTask don't deleteLocalRef header str
2018-06-07 22:19:03 +08:00
CocosRobot
d0f28d3959
[ci skip][AUTO]: updating jsbinding automatically ( #1296 )
2018-06-06 14:58:00 +08:00
James Chen
da45e32ada
Removes unused files and code. ( #1277 )
2018-05-31 17:58:35 +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
minggo
ccc8691029
fix crash when parsing Effect property ( #1254 )
2018-05-22 09:32:06 +08:00
minggo
8a76997242
adapt mac resolution ( #1248 )
2018-05-18 11:57:12 +08:00
minggo
9ca6dac357
fix musk issue ( #1231 )
2018-05-08 11:21:41 +08:00
James Chen
15656be8d6
Removes unused js glue code. ( #1221 )
2018-04-27 13:45:30 +08:00
minggo
87a4301d8f
unify js_loadImage ( #1210 )
...
* fix Texture2D::addSubImage()
* unify the logic of js_loadImage
* simplify codes
2018-04-24 16:27:03 +08:00
minggo
d98484654f
Optimize ( #1202 )
...
* fix some bugs
* fix binding codes of Texture2D::updateSubImage()
2018-04-20 14:31:52 +08:00
minggo
0505ee928a
Optimize ( #1199 )
...
* optimize performace
* optimize performance
2018-04-18 17:47:46 +08:00
minggo
59d24e1fdc
fix memory leaks ( #1192 )
2018-04-12 16:07:21 +08:00
minggo
3113af6176
optimize performance ( #1191 )
2018-04-12 11:44:11 +08:00
minggo
ba8944c72a
Optimize ( #1190 )
...
* h5 adapt
* don't bind Technique, Effect, Pass and Model
2018-04-11 11:32:33 +08:00
minggo
2ba3e815d2
h5 adapt ( #1176 )
2018-03-30 17:57:38 +08:00
minggo
f4e3f9e8f6
adapt h5 ( #1170 )
2018-03-28 09:47:05 +08:00
James Chen
9c0e2291a9
Updates auto binding code.
2018-03-23 15:58:58 +08:00
James Chen
4ee7981630
Merge branch 'new-renderer' of git://github.com/cocos-creator/cocos2d-x-lite into runtime
...
# Conflicts:
# cocos/platform/mac/CCCanvasRenderingContext2D-mac.mm
# cocos/scripting/js-bindings/manual/jsb_gfx_manual.cpp
2018-03-23 15:42:12 +08:00
minggo
0be49352d0
H5 adapt merge ( #1164 )
...
* h5 adpator
* adapt to h5 engine
2018-03-23 15:26:09 +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
minggo
610658e5a6
h5 adpator ( #1156 )
2018-03-21 09:30:05 +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