minggo
4e43879c52
improve performance of binding codes of VertexBuffer::setFormat() ( #1193 )
2018-04-13 14:24:32 +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
James Chen
001875bfe4
Merge pull request #1183 from dumganhar/new-renderer-merge-runtime
...
Merge Runtime modification.
2018-04-04 18:09:07 +08:00
James Chen
ed017b2e01
Merge branch 'runtime' into new-renderer
...
# Conflicts:
# cocos/renderer/gfx/Texture2D.cpp
2018-04-03 21:04:15 +08:00
James Chen
4397330777
[runtime, android] Fix local reference table overflow error problem in CCCanvasRenderingContext2D-android.cpp. ( #1180 )
2018-04-03 14:34:48 +08:00
James Chen
016553cdf3
[mac] Shader version should be at least 120 to fix "GLSL 110 does not allow sub- or super-matrix constructors" issue. ( #1179 )
...
* Don't use regex match for getting base64 string. Uses string pointer offset instead.
* [mac] Shader version should be at least 120 to fix "GLSL 110 does not allow sub- or super-matrix constructors" issue.
* bug fix of shaderSource.find("#version", ...);
2018-04-03 10:09:13 +08:00
James Chen
0bd5c94c84
updates buildTooVersion to 27.0.3. Uses implementation instead of compile. ( #1177 )
2018-03-31 20:26:17 +08:00
minggo
2ba3e815d2
h5 adapt ( #1176 )
2018-03-30 17:57:38 +08:00
James Chen
8dc0f35714
[ios] Fixes bugs about multisampling and GL_DEPTCH_STENCIL_ATTACHMENT ( #1175 )
...
* [ios] Fixes bugs about multisampling.
* [ios] Should use opengl es2
* Fixes compilation issues in DeviceGraphics after switching back to opengles2.
* glFramebufferRenderbuffer GL_DEPTH_STENCIL_ATTACHMENT fix in webgl binding.
* Comment some code of invoking opengles3.0 methods in gfx/Texture2D.cpp.
2018-03-30 17:44:08 +08:00
James Chen
d92ab3cbe7
touch event should also pass pageX, pageY. jsb.loadImage supports data base64 string. ( #1174 )
...
* touch event should also pass pageX, pageY.
* jsb.loadImage supports data base64 string.
2018-03-30 07:41:59 +08:00
James Chen
3c1da2db6c
alphabetic textBaseline support. ( #1173 )
2018-03-29 16:24:36 +08:00
James Chen
73eb73c690
[android] textAlign supports 'middle'. recreate buffer in the constructor of CanvasRenderingContext2D. ( #1172 )
...
* [android] textAlign supports 'middle'. recreate buffer in the constructor of CanvasRenderingContext2D.
* bug fix in CanvasRenderingContext2DImpl.java
* java version 1.8
2018-03-29 15:50:38 +08:00
James Chen
a668496b8e
Comments initializing DeviceGraphics and textAlign supports middle. ( #1171 )
...
* Comments initializing DeviceGraphics since runtime doesn't need renderer stuff temporarily.
* textAlign supports middle.
* reverts.
2018-03-28 21:26:08 +08:00
minggo
f4e3f9e8f6
adapt h5 ( #1170 )
2018-03-28 09:47:05 +08:00
James Chen
deda8af50a
premultiply alpha works. ( #1169 )
...
* premultiply alpha works.
* GL_UNPACK_COLORSPACE_CONVERSION_WEBGL isn't supported.
2018-03-27 15:38:47 +08:00
James Chen
5d0f97697e
Fixed some webgl binding issues. ( #1168 )
...
* Fixes wrong conversion, lots of opengl should pass in `float` but we passed `int` value.
* [ios] Initialize Application should be in firstStart: method.
* Implements unpackFlipY for GL_RGBA & GL_RGB format texture.
* FIxed some webgl binding issues.
2018-03-26 18:23:20 +08:00
James Chen
4d0b56228e
Merge pull request #1167 from dumganhar/runtime
...
Updates auto binding code.
2018-03-23 16:02:39 +08:00
James Chen
e8726e1158
Merge pull request #1166 from dumganhar/runtime
...
[new-renderer] Merge from runtime
2018-03-23 15:59:47 +08:00
James Chen
9c0e2291a9
Updates auto binding code.
2018-03-23 15:58:58 +08:00
James Chen
7dc85d0929
Merge pull request #1165 from dumganhar/runtime
...
[runtime] Merge from new-renderer
2018-03-23 15:53:23 +08:00
James Chen
fa440b83c2
getImageInfo -> loadImage, compatible with new renderer.
2018-03-23 15:51:22 +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
fd0f172b41
Supports faster TypedArray operation for iOS lower than 10. Uses some code in Ejecta. ( #1163 )
2018-03-23 14:59:18 +08:00
James Chen
c341d94d1a
Adds missing function implementation. ( #1161 )
2018-03-22 16:16:10 +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
febfbe67df
Custom TTF font is supported for Android too. ( #1155 )
2018-03-20 15:49:25 +08:00
James Chen
1edc19dd3d
Custom ttf font works on iOS/macOS ( #1154 )
...
* Custom ttf font works.
* Remove unused log.
* better code logic, less if .
* comment debugging code.
2018-03-20 14:51:24 +08:00
James Chen
b648d0d41e
Fixes thread race issue in getImageInfo method. ( #1153 )
...
NOTE: FileUtils::getInstance()->fullPathForFilename isn't a threadsafe method, Image::initWithImageFile will call fullPathForFilename internally which may cause thread race issues. Therefore, we get the full path of file before going into task callback. So be careful of invoking any Cocos2d-x interface in a sub-thread.
2018-03-19 18:11:13 +08:00
James Chen
d1abdf6065
Adds Cocos2dxRenderer.setOnGameEngineInitialziedListener. ( #1152 )
2018-03-17 11:49:27 +08:00
James Chen
bf1b4f7124
[runtime] Audio works. ( #1151 )
2018-03-17 11:22:56 +08:00
James Chen
9b2aaf1cd0
getImageInfo is async method now. Clear autoreleasepool at the end of frame. ( #1150 )
2018-03-17 09:48:32 +08:00
James Chen
5122d14e24
[runtime] CocosRenderer.nativeInit supports to pass a default resource path. ( #1149 )
...
* FileUtils::setDefaultResourcePath fix.
* CocosRenderer.nativeInit supports to pass a default resource path.
2018-03-16 11:00:19 +08:00
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