Commit Graph

37311 Commits

Author SHA1 Message Date
coulsonwang 5dd5d084b6 fix glfw3.3 no respond issue. (#19965) 2019-07-23 17:40:37 +08:00
coulsonwang 57a3bd98f1 fix glfw3.3 no respond issue (#19963) 2019-07-23 16:58:35 +08:00
coulsonwang e64f2af25b fix header define for shader. (#19934) 2019-07-22 10:45:41 +08:00
minggo 0d121d7913
remove void in function declaration (#19954) 2019-07-22 09:38:46 +08:00
minggo 7a6c115b2f
fix ZipUtils memory-malloc succ check error. (#19923) (#19953) 2019-07-22 09:38:28 +08:00
minggo 29ce64b123
Fix cocos2d-js issue: Font height was not getting calculated properly in iOS. (#19926) (#19952) 2019-07-22 09:38:15 +08:00
minggo c283d4b939
sync 19759: fix: FastTMXLayer does not reflect opacity and anchor point (#19950) 2019-07-22 09:38:01 +08:00
minggo c8d13184f8
sync 19893: fix Wformat warnings (#19949) 2019-07-22 09:37:48 +08:00
minggo c5c6bd685b
sync 19873: Speed up post build step by disabling unnecessary cmake command (#19948) 2019-07-22 09:37:34 +08:00
minggo b7a6b77789
fix memory leak in CCUserDefault (#19853) (#19947)
fastSet makes the Data object managing a new memory area in
[bytes, bytes + size), but it doesn't releasing the old data
it managed. Failure to release the old data causes memory leak.

The default constructed Data manages null memory, so calling
fastSet on it is fine.

Because `Data ret = defaultValue;` malloc new memory, we might
have better performance without it.
2019-07-22 09:37:21 +08:00
minggo 3e6b1ffe92
refactor AudioEngine-Linux (#19822) (#19946)
* refactor AudioEngine and AudioEngine-linux

* map::erase() can handle case if key doesn't exist.

* use map::iterator when it has already obtained.

* mapChannelInfo[id].channel is nullptr befor resume(). Don't
dereference it.

* FMOD::System::release() calls close, so calling close before release
is not necessary.

* use std::map::insert properly.

* remove unnecessary null check on _audioEngineImpl

* add comment on nullptr dereference
2019-07-22 09:37:07 +08:00
minggo 77a72052c8
sync 19811: android_allowBackup2 (#19945) 2019-07-22 09:36:51 +08:00
minggo 6e0c4872c5
refactor CCScene (#19767) (#19944)
* refactor-CCScene

prefer in-class initialization

* in-class initialization of pointer to nullptr
2019-07-22 09:36:38 +08:00
minggo 7cea351cec
sync 19756: refactor CCBundle3DData (#19942) 2019-07-22 09:36:24 +08:00
minggo b3424a535f
[Change] the CC_64BITS macro to 64-bit decision. (#19723) (#19941) 2019-07-22 09:36:10 +08:00
minggo 0427381e06
sync 19722: fix assign nullptr to std::string (#19940) 2019-07-22 09:35:57 +08:00
minggo a4fb692f36
fix for #19713 (#19714) (#19939)
#19713
2019-07-22 09:35:44 +08:00
minggo 0b7448bfc0
remove duplicate function call in cmake (#19697) (#19938)
* AssureOutOfSourceBuilds() is called in module file. No need to
call it in root cmake file.
2019-07-22 09:35:30 +08:00
minggo 5820915287
sync 19693: FIX ios bug : You don’t have permission to save the file Documents_temp (#19937) 2019-07-22 09:35:15 +08:00
minggo df9fa6c8fd
fix twice copy lua scripts error (#19687) (#19936) 2019-07-22 09:34:56 +08:00
minggo 956fd85401
sync 19661: Clear the scene stack in the expected order (#19935) 2019-07-19 16:53:20 +08:00
minggo 838c285696
sync 19655 (#19932) 2019-07-19 13:45:08 +08:00
minggo e47d6b664f
sync 19649 and fix conflict (#19931) 2019-07-19 13:43:20 +08:00
minggo ad54a24cf0
sync 19634 and fix conflict (#19930) 2019-07-19 11:57:11 +08:00
minggo e93d4cb1d6
fix outdated documentation [ci skip] (#19618) (#19929) 2019-07-19 10:19:13 +08:00
coulsonwang 7b7cf55efb remove vertex step mode (#19921) 2019-07-17 13:59:37 +08:00
coulsonwang cb07f599f8 add api comments (#19922) 2019-07-17 09:26:15 +08:00
coulsonwang 03ea495fd6 add API comments (#19919) 2019-07-16 10:01:23 +08:00
coulsonwang f0f9cf612c add api comments (#19916) 2019-07-15 09:28:38 +08:00
coulsonwang de8cf4c45b set default frameBufferOnly to false for ios (#19915) 2019-07-15 09:28:18 +08:00
coulsonwang b96c467318 fix stencil issue (#19910) 2019-07-10 09:56:55 +08:00
coulsonwang 77b1535a9d add api document (#19909) 2019-07-09 09:43:45 +08:00
Arnold 23f8aa85da Update README.md (#19908)
* update frameworks

* remove js
2019-07-08 13:45:23 +08:00
coulsonwang a92ab26096 remove unUsed member (#19906) 2019-07-05 10:11:12 +08:00
coulsonwang e70f09368b fix fast tile map (#19905) 2019-07-04 17:54:10 +08:00
coulsonwang f72dbd28d0 add copyright (#19903) 2019-07-04 17:47:24 +08:00
minggo 67d43ca591
Update CMakeLists.txt 2019-07-04 09:48:45 +08:00
Arnold 5683664832 update submodule cocos2d-console (#19896) 2019-07-03 22:23:12 +08:00
Arnold 097a4a74dc [Lua] Export ccexp.AudioEngine on linux (#19898)
* export ccexp.AudioEngine on linux

* revert auto bindings

* gen bindings
2019-07-03 18:57:18 +08:00
coulsonwang fbd0062e3d fix tile map test in lua (#19897) 2019-07-03 16:03:58 +08:00
minggo 96534de260
fix warnings (#19891) 2019-07-03 10:43:10 +08:00
Arnold 888cd9b159 fix lua (#19888) 2019-07-02 09:29:20 +08:00
Arnold 2eb4625cbc
regenerate (#19887) 2019-07-01 13:51:02 +08:00
coulsonwang 7f96375871 Feature/fix tile map (#19883) 2019-06-30 11:36:52 +08:00
minggo e0200eaa54
should unbind prebound attachments to avoid error on some android devcies (#19875) 2019-06-28 08:56:13 +08:00
coulsonwang e8839cefbe Feature/lua drawing node (#19863)
* fix DrawInRect in lua

* fix

* rename
2019-06-27 17:44:07 +08:00
Arnold 76edaa0993 [bugfix] fix TextureInfo copy constructor (#19865)
* fix copy

* fix compile error

* Update cocos/renderer/backend/ProgramState.cpp
2019-06-27 17:42:32 +08:00
minggo b9d72cdb53
add missing label (#19871) 2019-06-27 13:41:41 +08:00
Arnold 4f6e6454ba convert to integer (#19872) 2019-06-27 13:38:27 +08:00
Arnold 75ba0f91d1 add break statement (#19867) 2019-06-27 09:40:53 +08:00