leda
9b775e711d
fix catch font name error when ttf font name with space ( #1423 )
...
* support catch fontName with space when canvas set font
* do same above on android
* improve regex
* add empty loadFont impl for win32 platform
* correct win32 parse font info regex on win32
* add win32 support ttf when font name = font face name
* another space line for win32 platforms
* improve regex when parse font name
* fix regex error
* correct typo
2018-07-26 17:57:25 +08:00
leda
ccb40bdeda
move CCAsyncTaskPool from cocos/base into extensions folder ( #1422 )
...
* move CCAsyncTaskPool path
* move CCAsyncTaskPool path for ios & mac project
* change header path
* adapt CCAsyncTaskPool path for win32
* divide win32 build object files into Debug and Release folder
2018-07-26 10:11:55 +08:00
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
leda
076c7edc3a
fix win32 release mode compile failed ( #1364 )
...
* correct libcocos2d win32 release mode compile error
* sync release include files with debug
* correct typo error
2018-07-04 20:16:43 +08:00
Jare Guo
be4c60343a
fix simulator error ( #1357 )
...
* fix windows sdk version of simulator
* gulp: remove update-simulator-script
2018-07-03 09:55:52 +08:00
leda
723f52a472
win32 link/default template compile and link pass, but not works when run ( #1321 )
...
* modify file changes on project config
* correct libcocos2d compile
* add win32 props back
* Revert "fix windows link template (#1138 )"
This reverts commit 332d95e5b8 .
* correct compile error
* many link errors need to be solved
* added part lack methods
* add empty impl for canvas rendering context 2d
* update main.cpp
* correct audio/network compile and link error
* sync win32 application logic with mac
* remove wrong change on application-win32
* correct win32 default-template compile and link error
* win32 simulator part compile error fixed
* editbox define changes
2018-06-22 10:19:31 +08:00
minggo
467b0346ce
editbox support mac ( #1322 )
2018-06-21 09:25:56 +08:00
leda
19552e0dd4
gen-simulator works on mac, but not full features ( #1313 )
...
* fix part of warnings
* avoid all compile errors
* remove part lua related
* remove useless comment
* add function to get glfwWindow
* improve comment
* correct group files at platform folder
* update gulp simulator script copy
2018-06-14 14:23:16 +08:00
leda
602636c855
link template works on mac, ios, android studio ( #1310 )
...
* re-add cocos-analytics for iOS
* include jsb_cocos2dx_network_manual into xcode project
* add jsb_module_register into cocos2d_libs xcode proj
* ios, mac link template adapt
* link template adapt for android studio
* add external a line space for gitignore
* update the returen value of cocos2dVersion()
* change "Cocos Runtime" into "Cocos Game" for template project
2018-06-11 17:21:42 +08:00
James Chen
c7801b75f8
Minor fixes while running on macOS with V8 script engine. ( #1305 )
2018-06-07 16:08:06 +08:00
minggo
05bb9d46e4
[ci skip]default template works on mac ( #1300 )
2018-06-06 17:59:21 +08:00
James Chen
cad6cb9971
Uses the same CCCanvasRenderingContext2D for apple platforms (iOS/macOS). ( #1281 )
2018-06-02 17:52:54 +08:00
minggo
fbeb6dd200
Editbox ios support ( #1278 )
2018-06-01 14:12:03 +08:00
James Chen
da45e32ada
Removes unused files and code. ( #1277 )
2018-05-31 17:58:35 +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
7235644283
Editbox support ( #1270 )
...
can work on Android
2018-05-28 17:09:57 +08:00
minggo
4a13d0e15e
Downsample ( #1245 )
...
* support render texture
* use texture unit 0
* add functions to set device pixel ratio
* add ccDeleteBuffers again
* fix according comments
2018-05-17 14:05:05 +08:00
minggo
12676d6f2b
put debug related files into debugger folder
2018-04-28 14:37:09 +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
James Chen
1fa4ea0e6f
Merge branch 'new-renderer' of git://github.com/cocos-creator/cocos2d-x-lite into runtime
...
# Conflicts:
# cocos/renderer/gfx/IndexBuffer.cpp
# cocos/renderer/gfx/VertexBuffer.cpp
2018-04-19 11:23:36 +08:00
James Chen
3dfe05f4cc
glBindXXX glActiveTexture cache.
2018-04-14 13:43:44 +08:00
minggo
f4e3f9e8f6
adapt h5 ( #1170 )
2018-03-28 09:47:05 +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
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
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
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
77ebc9ae12
ios ctx.fillRect fix.
2018-03-12 16:12:32 +08:00
James Chen
5fcd99a151
Fix compilation error after merging from upstream.
2018-03-12 16:05:11 +08:00
minggo
0d483a9b07
add back network ( #1141 )
...
* add back network
* add network back on windows
2018-03-09 16:20:48 +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
c4c24c9d54
windows works with new renderer ( #1137 )
2018-03-07 14:31:46 +08:00
minggo
fd99785ef4
simplify xcode project ( #1136 )
2018-02-28 17:56:38 +08:00
minggo
aa3d6f0cde
remove unneed files ( #1135 )
2018-02-28 17:24:34 +08:00
minggo
93090fea87
can run js on iOS and Mac ( #1124 )
2018-02-24 10:27:31 +08:00
minggo
c01325313d
refactor ios gl context setting process ( #1123 )
2018-02-23 11:18:16 +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
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
James Chen
0ef60bfeb7
Updates cocos analytics lib for iOS.
2017-10-19 18:37:55 +08:00
2youyouo2
2405d0c917
remove unused extensions
2017-10-10 10:30:55 +08:00
2youyouo2
bc8c5c1bee
add xxtea support
2017-09-27 16:03:07 +08:00
James Chen
0e951c20ae
iOS project configuration fix.
2017-09-26 17:48:24 +08:00
Jare Guo
1ea2fc1715
revert TextureCache, use ThreadPool instead
2017-09-26 10:18:01 +08:00
2youyouo2
6771164c5d
remove unused ccui
2017-09-18 18:16:51 +08:00
James Chen
0fbfc9a470
Updates xcode project configuration.
2017-09-08 10:06:23 +08:00
James Chen
4bc223f8fa
WebSocket-apple.mm should be compiled with ARC.
2017-08-28 13:48:23 +08:00
James Chen
43d0fb1e24
updates xcode project configuration.
2017-08-10 17:37:29 +08:00