Commit Graph

2663 Commits

Author SHA1 Message Date
James Chen c3602eb1e3 [runtime] Android testcase works. (#1148)
* Adds jsb_run_script_module for CommonJS module, reverts original `require`.

* Uses window.gameTick for sending tick event.

* Removes unused scripts.

* Android testcase works.
2018-03-15 18:12:38 +08:00
James Chen 2c3a86f7b1 [new-renderer] Label on android works. (#1146)
* Android HelloWorld without label works.

* Label on android works.
2018-03-14 21:19:51 +08:00
James Chen f0a79242d7 Android compile ok. (#1145)
* Android compile ok.

* Fixes for Android build .
2018-03-14 10:28:03 +08:00
James Chen 8813d114f6 Merge pull request #1142 from dumganhar/new-renderer
Creator 2.0 WebGL bindings.
2018-03-12 16:17:56 +08:00
James Chen 77ebc9ae12 ios ctx.fillRect fix. 2018-03-12 16:12:32 +08:00
James Chen 14e8ec7370 gl.bufferData & gl.bufferSubData fix. 2018-03-12 16:05:50 +08:00
James Chen 5fcd99a151 Fix compilation error after merging from upstream. 2018-03-12 16:05:11 +08:00
James Chen 26e8259389 Merge branch 'new-renderer' of git://github.com/cocos-creator/cocos2d-x-lite into new-renderer 2018-03-12 15:34:45 +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 f02faf5a15 Updates CanvasRendereringContext2D-ios/mac.mm. 2018-03-12 11:12:24 +08:00
James Chen 992594b865 module fix. 2018-03-11 21:39:22 +08:00
James Chen 3627778a35 Updates canvasrenderingcontext2d-mac.mm 2018-03-11 20:35:54 +08:00
minggo 0d483a9b07 add back network (#1141)
* add back network

* add network back on windows
2018-03-09 16:20:48 +08:00
James Chen 15370e52db ios label works.TODO: outline, bold, underline. 2018-03-09 12:37:57 +08:00
James Chen 4faf331229 Adds csscolorparser lib. 2018-03-09 12:37:27 +08:00
James Chen 1a064feed2 Label color works. 2018-03-08 18:14:46 +08:00
James Chen 4eccfbcba8 Mac font display ok. 2018-03-08 17:38:45 +08:00
James Chen 626f13ff2d fastSet needs to clear data at first. 2018-03-08 17:36:30 +08:00
James Chen dde1312b50 glTexImage2D fix. 2018-03-08 13:37:27 +08:00
minggo 9dc96302ab update external version (#1140) 2018-03-08 11:38:58 +08:00
James Chen 44fa82d9cc CanvasRenderering obj-c object release fix. 2018-03-08 11:22:44 +08:00
James Chen 7beded3156 Canvas binding fix. 2018-03-07 18:45:20 +08:00
James Chen 48ab875fe2 Adds CCCanvasRenderingContext2D. 2018-03-07 18:44:57 +08:00
minggo aebdc1c77f fix compiling isssue of link template on iOS, Mac and Android (#1139) 2018-03-07 17:06:15 +08:00
minggo 332d95e5b8 fix windows link template (#1138) 2018-03-07 15:22:41 +08:00
minggo c4c24c9d54 windows works with new renderer (#1137) 2018-03-07 14:31:46 +08:00
James Chen 6e392bdf48 updates .gitmodules 2018-03-07 10:08:00 +08:00
James Chen e00e0e0f86 Updates bindings-generator. 2018-03-07 10:05:36 +08:00
James Chen 0dc072baab More WebGL binding fixes. 2018-03-07 10:04:20 +08:00
James Chen 821f936ab0 renderer bindings fix. 2018-03-07 10:03:54 +08:00
James Chen 09ad99d217 gl js fix. 2018-03-07 10:03:37 +08:00
James Chen f4110f271e TODO: GL_UNPACK_FLIP_Y_WEBGL, GL_UNPACK_PREMULTIPLY_ALPHA_WEBGL 2018-03-07 10:03:11 +08:00
James Chen c826dd2548 WebGL macro. 2018-03-07 10:02:35 +08:00
James Chen 9038e57c64 don't init canvas in c++ code, initialize innerWidth,innerHeight instead. 2018-03-07 10:02:08 +08:00
James Chen 7914353483 Better log display for require 2018-03-07 10:01:35 +08:00
James Chen 71f0678287 Updates gfx.ini 2018-03-07 09:59:40 +08:00
James Chen 6721db7bc6 Updates gfx/renderer auto binding code and ini configuration. 2018-03-07 09:59:26 +08:00
James Chen ca638c94f2 Uses dumganhar's bindings-generator repo temp. 2018-03-06 11:21:29 +08:00
James Chen ddfb5d72a3 Updates xcode project. 2018-03-06 10:41:59 +08:00
James Chen 2483633303 webgl bindings fix. 2018-03-06 10:41:39 +08:00
James Chen 318678be29 common js module fix. 2018-03-06 10:41:24 +08:00
James Chen 1cd2166684 continue. 2018-03-06 10:41:10 +08:00
James Chen 2bd4b4c3c4 Adds network ifiles to xcode project again. 2018-03-06 10:40:24 +08:00
James Chen faa3401f93 Adds window variable for all js vm. Adds se::ScriptEngine::getFileOperationDelegate interface. 2018-03-06 10:39:50 +08:00
James Chen 38cdd2b17d Adds const. 2018-03-05 18:11:08 +08:00
James Chen e83be4b12f fix missing getFileOperationDelegate for v8. 2018-03-05 17:42:50 +08:00
James Chen 88123dbb7b Updates opengl binding and module fix. 2018-03-05 11:00:02 +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 dc20cb8164 Adds opengl utils. 2018-03-02 11:04:21 +08:00
James Chen 235ad32f5e Updates opengl bindings 2018-03-02 11:02:13 +08:00