Commit Graph

5547 Commits

Author SHA1 Message Date
DelinWorks 2e3c84252d Add fourccId support. 2022-06-16 15:25:43 +03:00
DelinWorks 0a1fe16b33 Add cpp_tests and improve system. 2022-06-15 23:04:08 +03:00
halx99 5c35eda3b9 Upgrade android toolsets
- ndk to r23c
- gradle plugin to 7.2.0
- gradle wrapper to 7.4.2
- config ndk ver at adxetools.gradle
2022-06-11 16:16:47 +08:00
halx99 2d36b11b57 Fix test lua script 2022-06-11 15:33:42 +08:00
halx99 d8aa943ed9 Fix ci 2022-06-09 17:56:54 +08:00
DelinWorks ced908a1bb Add cpp_tests to HSV/HSL 2022-05-25 20:14:11 +03:00
一线灵 18f58a1925
Update CMakeLists.txt (#641) 2022-05-23 23:40:37 +08:00
halx99 843d127a95 Fix ci 2022-05-23 22:06:28 +08:00
halx99 a03e5c6cf6 Fix ios device install problems
- lua template missing `CFBundleExecute`
- Use `_` instead tests project to avoid unknown error
2022-05-23 17:03:07 +08:00
halx99 73627ac0c0 Fix uri toString 2022-05-21 20:55:25 +08:00
halx99 c0977642bb Improve cmake scripts 2022-05-19 10:54:42 +08:00
halx99 4a05253be1 Fix cmake link 2022-05-18 22:27:43 +08:00
halx99 c584ee1e78 Enable video & webview lua-tests on windows 2022-05-18 12:52:05 +08:00
halx99 21fe8df12b Fix lua template duplicate res error on mac
Fix typo

Fix cmdline fail on new macos
2022-05-15 16:36:06 +08:00
一线灵 5b39f2027a
Fix ci 2022-05-14 04:38:37 +08:00
一线灵 df25477d7b
Fix ci 2022-05-13 22:44:56 +08:00
halx99 30a164c31a Improvements and bug fixes
Improve ResizableBufferAdapter style

    Improve extesnion adxelua

    Improve code quality

    Fix lua-tests BillBoardTest

    Sync texture pixel format enum values for adxelua

    Fix luaval_to_vec2 parameter location

    Improve windows workflow

    Improve cmake scripts

    Take care Texture2D::setDefaultAlphaPixelFormat use
2022-05-13 21:06:29 +08:00
halx99 56815ffccf Improve UIVideoPlayer tests 2022-04-28 12:48:29 +08:00
halx99 430030a6c3 Improve VS Ninja build again
a. Auto copy webview2 dll for targets
b. Fix cpp-tests compile error
2022-04-27 19:39:12 +08:00
halx99 4b70fd2059 Also disable Ninja PCH for cpp-tests 2022-04-27 18:51:54 +08:00
halx99 4db3ba63b7 Match compression test images PMA with engine settings 2022-04-26 16:38:59 +08:00
Shatyuka d71c620fc1 Compatible with Ninja 2022-04-26 15:16:02 +08:00
halx99 ef56d0d335 Update copyright notices 2022-04-25 19:15:46 +08:00
halx99 4c9d1dfd00 Update copyright url [skip ci] 2022-04-25 12:06:43 +08:00
halx99 93f549a0ad Fix libc++_shared.so not found in old devices(API 22) 2022-04-05 11:45:59 +08:00
halx99 36fa5ad84e Remove CC_CONSTRUCTOR_ACCESS, refer to #603 2022-03-18 21:46:07 +08:00
halx99 ea20445609 Fix ci 2022-02-25 19:38:31 +08:00
halx99 e70ea8760b Renaming extension ImGuiEXT to ImGui
The singleton class ImGuiEXT also was renamed to ImGuiPresenter
2022-02-25 19:03:09 +08:00
halx99 f630d1627c Fix ci 2022-02-24 19:29:50 +08:00
halx99 d8b858203e Fix linux ci 2022-02-24 19:00:49 +08:00
halx99 5b2eb79456 Update project urls 2022-02-24 18:45:25 +08:00
halx99 2b290bd734 Enable video player test case for windows 2022-02-24 18:30:58 +08:00
halx99 67c6bcec4f [cmake] Rename BUILD_LUA_LIBS to AX_ENABLE_EXT_LUA 2022-02-17 21:31:39 +08:00
halx99 7f81b65596 [Android] Upgrade MIN_SDK_VERSION from 16 to 17 2022-01-30 20:38:01 +08:00
halx99 cfe6390de3 [Android] By default, build single arch: arm64-v8a 2022-01-30 20:36:41 +08:00
halx99 722b6af026 [Android][freetype] Change streamingParsingEnabled to true
Add noCompress config to build.gradle for all templates & tests project

Exists project, please add follow config

android {

// Other configs
// ...

// noCompress config
aaptOptions {
   noCompress 'mp3','ogg','wav','mp4','ttf','ttc'
}

}
2022-01-29 14:54:32 +08:00
halx99 f0fa7780d7 Improve gradle script to find cmake 2022-01-28 18:25:50 +08:00
halx99 931da84bc3 Fix gradle wrapper url 2022-01-28 13:41:18 +08:00
halx99 716b20cf6b Update recommend android studio and gradle
- Android Studio 2021.1.1+ (More intelligent)
- Gralde wrapper to 7.2: https://services.gradle.org/distributions/gradle-7.2-bin.zip.zip
- Gradle Plugin to 7.1: com.android.tools.build:gradle:7.1.0

These upgrades will fix the issue: #573
2022-01-28 12:47:05 +08:00
halx99 11360497ea Update gradle wrapper to 6.9.2 2022-01-27 18:44:59 +08:00
halx99 a00f181b30 Update chmod 2022-01-08 12:23:14 +08:00
halx99 21e4684703 Fix lua-tests linkage for windows 2022-01-04 10:33:23 +08:00
halx99 3d7218a0eb Fix #570
a. fix lua build error
b. still use separated link jni libs
2022-01-04 09:40:27 +08:00
halx99 a651879ee6 Tidy audio folder 2022-01-03 11:34:58 +08:00
halx99 e534dd66c0 Rename core folder name 2021-12-31 14:39:08 +08:00
halx99 b5b4b1e5d8 Committing clang-format changes 2021-12-29 11:31:28 +00:00
deal 96d6cd7965
Update JNITest.cpp 2021-12-29 16:22:07 +08:00
halx99 8fd4a8afc3 Fix android ci 2021-12-29 13:44:39 +08:00
halx99 1e9ad9d240 string_view for cpp-tests 2021-12-28 17:20:17 +08:00
halx99 ce5adf35f7 Committing clang-format changes 2021-12-28 08:06:23 +00:00
halx99 367ae2a23c string_view for tests 2021-12-28 15:58:56 +08:00
halx99 2e0cc940ee [HttpClient] Use `byte_buffer` instead `std::vector<char>` 2021-12-10 19:15:48 +08:00
halx99 b459acbcf7 Remove all unnecessary nothrow 2021-12-08 00:11:53 +08:00
aismann 8f01f2782f Improve performance on cpp-tests release version controlling COCOS2D_DEBUG 2021-12-01 15:03:57 +01:00
halx99 57972411e5
Update UnitTest.cpp 2021-11-19 09:21:17 +08:00
halx99 1d980f4f52 Fix unit test 2021-11-11 18:41:59 +08:00
halx99 95a1734cd7 Add `CCValue` int64_t/uint64_t support 2021-11-09 14:29:15 +08:00
halx99 45607062bd Fix ci 2021-10-25 20:29:40 +08:00
halx99 857d2c177f Optimize cmake scripts 2021-10-12 15:39:37 +08:00
halx99 86a28937fc
Merge pull request #521 from adxeproject/refine-lua-loader
Refactor lua loader, reload lua with file name as-is
2021-10-12 14:18:02 +08:00
halx99 846231e2f1 Fix #522 2021-10-12 13:16:27 +08:00
halx99 c270fc3579 Remvoe lua 64bit bytecode spec
a. since we know how to compile compatible bytecode for both plainlua and LuaJIT
2021-10-11 23:26:25 +08:00
halx99 bbd3a78ae4 Improve lua workflow on windows
a. Use working directory as default resource root on windows
b. Don't copy res and scripts to build binary dir on windows
c. Always build plainlua as dll on windows for fast debug
d. Remove 64bit spec search path for lua script
2021-10-07 18:44:34 +08:00
halx99 92890788f8 Update copyright notice [skip ci] 2021-10-06 18:47:07 +08:00
halx99 ff57086dd6 Fix #516 2021-10-06 11:24:39 +08:00
rh101 9857ea8732 [setup.py] Add download support. Add NuGet CLI download to tools folder.
Download NuGet Microsoft.Web.WebView2 package version 1.0.992.28
Add support for WebView for Windows builds.
2021-10-04 18:55:01 +11:00
aismann e785d1a5d7 Update PhysicsTest.cpp 2021-09-08 10:16:14 +02:00
halx99 f1cdfdca52 Merge empty project
a. Remove cpp-empty-test, use HelloCpp as starter
b. Remove lua-empty-test, use HelloLua as starter
2021-09-07 17:24:07 +08:00
halx99 d73d937894 Fix #493, sync uri parse unit test 2021-09-04 00:22:47 +08:00
halx99 bc6ad50a4f Fix #492 for win64 require larger stack for cpp-tests: 41 2021-09-03 20:37:34 +08:00
rh101 bc0a5f42f8 Windows callback requires `long` return type 2021-09-02 21:21:28 +10:00
rh101 78236079e8 More %ld to %d changes 2021-09-02 17:54:13 +10:00
rh101 de182c8360 Change %ld to %d for 32bit data types
Regenerate LUA bindings
2021-09-02 17:46:22 +10:00
rh101 d8ef523abb Fix typo 2021-09-02 17:05:33 +10:00
rh101 386f7deb9d Use explicit cast to uintptr_t prior to casting to int type. 2021-09-02 16:52:40 +10:00
rh101 3c5fa51a01 Fix for compilation issue due to pointer to int32 conversion.
Fix warning.
2021-09-02 16:38:23 +10:00
rh101 e5bbea3cca Test code updated with long to int32_t changes 2021-09-02 15:48:05 +10:00
halx99 a2346d5e1f Merge branch 'dev' of https://github.com/adxeproject/adxe into dev 2021-09-01 10:10:46 +08:00
halx99 21f27285a0 Fix #486, re-enable custom shader batch draw 2021-08-31 16:25:45 +08:00
halx99 cb81a61530 Refactor layer
Reimplement LayerColor and LayerGradient based on sprite for auto batch draw
2021-08-30 19:47:53 +08:00
aismann cbeeb8d8ab Debug 64bit build error
Severity	Code	Description	Project	File	Line	Suppression State
Error (active)	E0075	operand of '*' must be a pointer but has type "bool"	cpp-tests	D:\______\GitHub\adxe\tests\cpp-tests\Classes\SpineTest\SpineTest.cpp	153
2021-08-27 07:47:22 +02:00
halx99 11434287cd
Merge pull request #466 from rh101/fix-sprite-test-crashes
Fixes for crashes in sprite and sprite cache tests
2021-08-19 14:35:44 +08:00
rh101 c9ebafe501 Fixes for crashes in sprite and sprite cache tests 2021-08-19 15:43:18 +10:00
aismann a9569ca061 fix 2021-08-18 06:00:43 +02:00
aismann 5b3748cdd6 Important API change for naming convention
rename
class DebugDraw
to
PhysicsDebugNodeBox2D
2021-08-18 05:23:03 +02:00
aismann 780d4e6294 cleanup and improvement 2021-08-18 04:16:21 +02:00
rh101 188345e42a Fix incorrect reference count check in SpriteFrameCache::removeUnusedSpriteFrames
[BaseTest] Ensure unused frames are released before attempting to free unused textures
2021-08-17 15:26:44 +10:00
rh101 b3e045b387 Use integer identifier for sprite sheet format.
Revert method name addSpriteFramesWithFileAndTexture back to addSpriteFramesWithFile
2021-08-17 14:04:45 +10:00
rh101 5199bb087a Update sprite sheet API to allow custom sprite sheet texture filename to be used 2021-08-17 09:04:51 +10:00
aismann 9f2ab0ef28
More improvements (#455) 2021-08-14 10:28:28 +08:00
RH 4716456e33
Support custom texture atlas formats (#284)
* Allow support for custom texture atlas formats other than PLIST.

* Revert usage of emplace_back to push_back to ensure support for older compilers.

* Update test to support SpriteFrameCache::addSpriteFramesWithFile

* Re-add SpriteFrameCache::addSpriteFramesWithFileContent

* Change order of SpriteFramesFromFileContent test back to what it previously was

* Remove sprite sheet and all frames associated with it correctly

* Move sprite loader classes into their own files to clean up CCSpriteFrameCache

* Remove redundant line and update comment

* Fix formatting to match adxe code style

* Fix typo

* Add custom sprite sheet loader test using JSON-array sprite atlas format.
Simplify sprite sheet loader interface by adding identifier to the custom sprite sheet loader implementation.

* Add newline at the end of the file
2021-08-13 14:52:58 +08:00
halx99 56edf5c339 Fix xcode build warnings 2021-08-12 15:54:16 +08:00
aismann 861c356bb4 update CMakeList.txt 2021-08-12 06:02:01 +02:00
aismann 7b7a3a8ae7 Box2D_TestBed_improvement 2021-08-12 05:54:06 +02:00
halx99 6ee687302b Xcode Embed Frameworks support
refer to: https://gitlab.kitware.com/cmake/cmake/-/issues/22412#note_997156
2021-08-10 11:43:16 +08:00
halx99 97e5896325 Update cmake link 2021-08-10 10:46:11 +08:00
aismann c2b44cc7e1 some beauties 2021-08-06 10:19:54 +02:00
aismann 56b99eff6a Box2D - Basic ready for use 2021-08-06 09:35:29 +02:00
aismann f5077bfb0f
Add DebugDraw to Box2DTest, Improve Box2D-Testbed add some new classes to physics-nodes (#444)
* Update AppDelegate.cpp

Add '*Debug*' on the title

* Update CCPhysicsDebugNodeBox2D.h

* Improve Box2D-TestBed

* improvements

* Update CCPhysicsDebugNodeBox2D.cpp

* Improve the 2d physics stuff

* dirty fix for build android:

* Fix fatal error: 'GLFW/glfw3.h' file not found

* Add DebugDraw to  Box2DTest, Improve Box2DTestBed, Add some new physicnodes

* fix settings, unknow  labelDebugDraw;
2021-08-05 17:23:55 +08:00
aismann 36a6ba2a33
Merge pull request from improve Box2D-TestBed (#437)
* Update AppDelegate.cpp

Add '*Debug*' on the title

* Update CCPhysicsDebugNodeBox2D.h

* Improve Box2D-TestBed

* improvements

* Update CCPhysicsDebugNodeBox2D.cpp
2021-07-19 18:33:03 +08:00