Commit Graph

393 Commits

Author SHA1 Message Date
halx99 40fb113b31 Update copyright url [skip ci] 2022-04-25 12:06:43 +08:00
halx99 d9a113741e Fix libc++_shared.so not found in old devices(API 22) 2022-04-05 11:45:59 +08:00
halx99 a576a42002 Remove CC_CONSTRUCTOR_ACCESS, refer to #603 2022-03-18 21:46:07 +08:00
halx99 6bca724513 Fix ci 2022-02-25 19:38:31 +08:00
halx99 323ed9431b Renaming extension ImGuiEXT to ImGui
The singleton class ImGuiEXT also was renamed to ImGuiPresenter
2022-02-25 19:03:09 +08:00
halx99 a6179a2635 Fix ci 2022-02-24 19:29:50 +08:00
halx99 58281f4145 Fix linux ci 2022-02-24 19:00:49 +08:00
halx99 5e893f3b4d Update project urls 2022-02-24 18:45:25 +08:00
halx99 13d90b76ee Enable video player test case for windows 2022-02-24 18:30:58 +08:00
halx99 f7d3d37ae5 [cmake] Rename BUILD_LUA_LIBS to AX_ENABLE_EXT_LUA 2022-02-17 21:31:39 +08:00
halx99 392ca76e05 [Android] Upgrade MIN_SDK_VERSION from 16 to 17 2022-01-30 20:38:01 +08:00
halx99 1ca9505fdc [Android] By default, build single arch: arm64-v8a 2022-01-30 20:36:41 +08:00
halx99 6131b237b2 [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 231ba0cf5c Improve gradle script to find cmake 2022-01-28 18:25:50 +08:00
halx99 54be4a1732 Fix gradle wrapper url 2022-01-28 13:41:18 +08:00
halx99 0f212a69c8 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 61646f5550 Update gradle wrapper to 6.9.2 2022-01-27 18:44:59 +08:00
halx99 d1fc2faadc Fix lua-tests linkage for windows 2022-01-04 10:33:23 +08:00
halx99 cd98e6c880 Fix #570
a. fix lua build error
b. still use separated link jni libs
2022-01-04 09:40:27 +08:00
halx99 74271f207b Tidy audio folder 2022-01-03 11:34:58 +08:00
halx99 def5f9e2bc Rename core folder name 2021-12-31 14:39:08 +08:00
deal f32280ff42 Merge: 687d15f16e 369de31853
Merge pull request #560 from adxeproject/ahead

Merge ahead to dev
2021-12-31 12:12:40 +08:00
halx99 64d7b55366 Update ci branch name 2021-12-31 11:00:35 +08:00
halx99 80f650981f Committing clang-format changes 2021-12-29 11:31:28 +00:00
deal 76c1823ac4 Update JNITest.cpp 2021-12-29 16:22:07 +08:00
halx99 8710707a3e Fix android ci 2021-12-29 13:44:39 +08:00
deal a813aac10e Merge: 6639f55c0f bec2e07a00
Merge pull request #561 from adxeproject/dev

Merge Crash Fix #559 from dev
2021-12-28 21:27:32 +08:00
halx99 13927aa1bc Fix #559, match number type for get CURLINFO_RESPONSE_CODE
a. On linux x64, will crash with stack protector

Reported by @rh101

Signed-off-by: halx99 <halx99@live.com>
2021-12-28 21:00:45 +08:00
halx99 75e810108b string_view for cpp-tests 2021-12-28 17:20:17 +08:00
halx99 b0aee13b7f Committing clang-format changes 2021-12-28 08:06:23 +00:00
halx99 b4af01b592 string_view for tests 2021-12-28 15:58:56 +08:00
halx99 52de9ba400 [HttpClient] Use `byte_buffer` instead `std::vector<char>` 2021-12-10 19:15:48 +08:00
halx99 1ee106007a Remove all unnecessary nothrow 2021-12-08 00:11:53 +08:00
aismann 67d473e2d1 Improve performance on cpp-tests release version controlling COCOS2D_DEBUG 2021-12-01 15:03:57 +01:00
halx99 aed7ee50f2 Update UnitTest.cpp 2021-11-19 09:21:17 +08:00
halx99 3a855ac97f Fix unit test 2021-11-11 18:41:59 +08:00
halx99 c6945c44e5 Add `CCValue` int64_t/uint64_t support 2021-11-09 14:29:15 +08:00
halx99 6e1f8f5953 Optimize cmake scripts 2021-10-12 15:39:37 +08:00
halx99 a49bba32ef Merge: 846231e2f1 cc1d09d04d
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 8d2dd47cc6 Fix #522 2021-10-12 13:16:27 +08:00
halx99 8dbd1ea335 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 8d83891f30 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 1deeb87a70 Update copyright notice [skip ci] 2021-10-06 18:47:07 +08:00
halx99 782dc062d3 Fix #516 2021-10-06 11:24:39 +08:00
rh101 c9c003a03f [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 85edbe2d28 Update PhysicsTest.cpp 2021-09-08 10:16:14 +02:00
姒嗘煶鏉? 35b658c90e Merge: f5663f279c d73d937894
Merge remote-tracking branch 'upstream/dev' into dev
2021-09-05 20:45:32 +08:00
姒嗘煶鏉? 0aff165959 [fix]ScrollView and ListView goes back to the front incorrectly after calling doLayout. 2021-09-05 20:44:14 +08:00
halx99 4a1bdeda0d Fix #493, sync uri parse unit test 2021-09-04 00:22:47 +08:00
halx99 a3d51468f7 Fix #492 for win64 require larger stack for cpp-tests: 41 2021-09-03 20:37:34 +08:00
rh101 73ad51b4e0 Windows callback requires `long` return type 2021-09-02 21:21:28 +10:00
rh101 4e7db23d38 Remove getLong() method
Change %du to %u, and %lx to %x
Use "stdint.h" instead of <cstdint> for TGAlib.h
2021-09-02 20:30:20 +10:00
姒嗘煶鏉? 64e2cdd8d9 [fix]The problem of inaccurate maximum width limit when using system fonts. 2021-09-02 17:15:03 +08:00
rh101 615fbd5088 More %ld to %d changes 2021-09-02 17:54:13 +10:00
rh101 eba8696d65 Change %ld to %d for 32bit data types
Regenerate LUA bindings
2021-09-02 17:46:22 +10:00
rh101 1f668eb783 Fix typo 2021-09-02 17:05:33 +10:00
rh101 60c0a58cfd Use explicit cast to uintptr_t prior to casting to int type. 2021-09-02 16:52:40 +10:00
rh101 546d7d6c61 Fix for compilation issue due to pointer to int32 conversion.
Fix warning.
2021-09-02 16:38:23 +10:00
rh101 89ba502d20 Test code updated with long to int32_t changes 2021-09-02 15:48:05 +10:00
halx99 0a4d3ee73d Merge: cb81a61530 a762c94904
Merge branch 'dev' of https://github.com/adxeproject/adxe into dev
2021-09-01 10:10:46 +08:00
halx99 b7bcdd7164 Fix #486, re-enable custom shader batch draw 2021-08-31 16:25:45 +08:00
halx99 756ff065c8 Enum compatible [skip ci] 2021-08-31 15:50:18 +08:00
halx99 be5eff1d5a Refactor layer
Reimplement LayerColor and LayerGradient based on sprite for auto batch draw
2021-08-30 19:47:53 +08:00
aismann 74dfe14b16 Merge: 1c05947474 7dd7422abd
Merge branch 'adxeproject:dev' into dev
2021-08-27 08:33:22 +02:00
halx99 fc1c901209 Macro compatible 2021-08-27 13:54:05 +08:00
aismann 6632c5c3f6 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 426aa0db93 Merge: b48133e9c6 c9ebafe501
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 ad3e3380e2 Fixes for crashes in sprite and sprite cache tests 2021-08-19 15:43:18 +10:00
aismann 18184b1d31 fix 2021-08-18 06:00:43 +02:00
aismann 5f086208a0 Important API change for naming convention
rename
class DebugDraw
to
PhysicsDebugNodeBox2D
2021-08-18 05:23:03 +02:00
aismann 288941a63f cleanup and improvement 2021-08-18 04:16:21 +02:00
rh101 e558b3c976 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 c60f66c9bb Use integer identifier for sprite sheet format.
Revert method name addSpriteFramesWithFileAndTexture back to addSpriteFramesWithFile
2021-08-17 14:04:45 +10:00
rh101 7a6734408d Update sprite sheet API to allow custom sprite sheet texture filename to be used 2021-08-17 09:04:51 +10:00
aismann 39dbbc4713 More improvements (#455) 2021-08-14 10:28:28 +08:00
RH 2c0f04c99b 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 3905654659 Fix xcode build warnings 2021-08-12 15:54:16 +08:00
halx99 84a84a8931 Merge: 39eb09daad 861c356bb4
Merge pull request #447 from aismann/Box2D_TestBed_improvement

Box2D_TestBed_improvement
2021-08-12 15:34:24 +08:00
aismann d0a18036b5 Update README.md 2021-08-12 07:03:14 +02:00
aismann 24a99d6e27 update CMakeList.txt 2021-08-12 06:02:01 +02:00
aismann c94562d417 Box2D_TestBed_improvement 2021-08-12 05:54:06 +02:00
halx99 dc3b5292d7 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 48505bc10f Update cmake link 2021-08-10 10:46:11 +08:00
halx99 50c270e8f5 Merge: 0a682f0dc1 c2b44cc7e1
Merge pull request #445 from aismann/Box2D-Basic-Clean-code-and-speed-optimized

Box2D - Basic ready for use (clean code and speed optimized)
2021-08-06 19:40:32 +08:00
aismann 97a6104516 Update README.md 2021-08-06 12:19:45 +02:00
aismann 7ec9850fa2 some beauties 2021-08-06 10:19:54 +02:00
aismann 4c6f9fcc3d Box2D - Basic ready for use 2021-08-06 09:35:29 +02:00
aismann b5d0326e6e 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 c612333389 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
halx99 d76a43406c HttpClient cookie support 2021-07-19 12:26:25 +08:00
halx99 ed3a0d05ec Move GL macros to backend MacrosGL.h
a. Fix box2d-testbed crash on macos and ios
b. User should avoid use them at application
2021-07-07 13:52:56 +08:00
aismann a46bc403ae Merge pull request #423 from aismann/dev
Enable box2d testbed on linux/macos
2021-07-07 02:29:38 +08:00
aismann 76b5bf8038 Merge pull request #419 from aismann/Box2D-TestBed
* Starting "Box2D - TextBed" adaption (most demos working)

* fix CMakeList.txt

* Update CMakeLists.txt

* Update CMakeLists.txt

* Update Box2dTest.cpp

* Update tests.h

* Update CCPhysicsDebugNodeBox2D.cpp

* Update controller.cpp
2021-07-06 21:02:47 +08:00
halx99 46a3ec8d6b Merge: 2f570e4b64 3c25f74ef1
Merge pull request #420 from halx99/chipmunk-testbed

Chipmunk testbed adapt non-win platform compile issue
2021-07-06 20:46:56 +08:00
halx99 83bc1b77d6 Update CHANGELOG 2021-07-06 19:01:35 +08:00
halx99 d65529ea93 Fix case for linux 2021-07-06 18:46:07 +08:00
halx99 46d9f5cbf5 ChipmunkTestBed non-win platform adapte 2021-07-06 18:40:24 +08:00
halx99 7e1dd57605 HttpClientTest tag [skip ci] 2021-07-06 11:43:57 +08:00
halx99 0c74a94525 Implement HttpClient::sendSync with std::promise 2021-07-06 11:39:53 +08:00
halx99 3df92d56de HttpClient handle content type from custom headers 2021-07-05 14:24:04 +08:00
halx99 43f25d5ad7 Downloader background task [ci build] 2021-07-04 19:26:18 +08:00
halx99 97425dc655 Fix #413 2021-07-04 16:40:34 +08:00
halx99 3436c968e2 Remove yasio test since we implement HttpClient based on it [ci build] 2021-07-02 19:02:38 +08:00
aismann c6bff19863 Chipmunk2D TestBed finished (#410)
* Improve Chipmunk2D - TestBed

* Code cleanup, keyboard fix, should be finished now (behavior like the original Chipmunk2D - demos with Sokol as renderer)

* Update ChipmunkTestBed.h

* Fix wrong merge
2021-06-30 18:57:41 +08:00
aismann ad9b41d49c Update ChipmunkTestBed.h (#412) 2021-06-30 17:13:55 +08:00
aismann 9e997a4a52 Improve Chipmunk2D - TestBed (#404) 2021-06-30 09:52:54 +08:00
aismann 2f9d7c5d3f Fix CCPhyhsicsDebugNode Polygon stuff, add all bench tests, ... (#403)
* Improve Chipmunk2D - TestBed, add same more debug draw stuff and some fixes too.

* Improve Chipmunk2D- TestBed and starting the code cleanup ...

* Fix CCPhyhsicsDebugNode Ploygon stuff,  add all bench tests, improve  same demos, code cleanup
2021-06-26 17:46:06 +08:00
aismann 86322ba427 Improve Chipmunk2D - TestBed. Starting code cleanup. (#399)
* Improve Chipmunk2D - TestBed, add same more debug draw stuff and some fixes too.

* Improve Chipmunk2D- TestBed and starting the code cleanup ...
2021-06-25 21:31:13 +08:00
aismann 8577d6f81a Improve Chipmunk2D - TestBed, add same more debug draw stuff and some fixes too. 2021-06-25 17:01:23 +08:00
halx99 72d1ba9ea6 Merge: df58dd753c 2397d54daf
Merge branch 'dev' into Chipmunk2D
2021-06-24 17:04:04 +08:00
aismann dbcb5816fe Add springs (draw), add Copyright, improve Chipmunk2d - Testbed 2021-06-24 09:54:02 +02:00
halx99 569b8c5c30 Fix ci [ci build] 2021-06-24 12:48:25 +08:00
halx99 14dc7f05f9 Reimplement HttpClient based on yasio (#390)
* [WIP] Reimplement HttpClient based on yasio
This change will make HttpClient support concurrency request

* [WIP] Reimplement HttpClient based on yasio
a. timeoutForRead support
b. Improve code

* [WIP] Reimplement HttpClient based on yasio [ci build]

* [WIP] Fix ci [ci build]

* [WIP] Reimplement HttpClient based on yasio [ci build]
PUT,DELETE support

* [WIP] Reimplement HttpClient based on yasio [ci build]
HttpClientTest works

* Update HttpClient.cpp

* HttpClientTest: enable sslVerifaction test

* Update HttpResponse.h

* Sync luabindings [ci build]

* Add chrome UA test

* Fix ci [ci build]

* The timer for read timeout should be associated with per channel

* Remove unused function

* Update url
2021-06-24 12:33:07 +08:00
halx99 36d258f589 Delay scene default camera init, see also #392
This change will make sure user can change window or design size before scene init
2021-06-24 02:23:02 +08:00
halx99 de2450d3dd Fix #392 2021-06-24 01:23:29 +08:00
aismann 289f2b0552 Update CMakeLists.txt 2021-06-24 00:21:36 +08:00
aismann fcf23d58cd Improve Chipmunk2D - TestBed, some more examples, keyboard support, display rearange 2021-06-24 00:21:36 +08:00
halx99 510cf21197 Tidy thirdparty [ci build] 2021-06-24 00:04:29 +08:00
aismann 6a0120644c Update CMakeLists.txt 2021-06-23 17:32:34 +02:00
aismann 5f96756d6d Improve Chipmunk2D - TestBed, some more examples, keyboard support, display rearange 2021-06-23 17:09:48 +02:00
aismann ea615e231c some more Chipmunk2D TestBed examples, mouse interaction, ... (#389)
* Chipmunk2D - TestBed  Add more examples and improve using the original source

* Improve using original chipmunk2d demo code, add more example, add interactions with mouse
2021-06-23 14:25:44 +08:00
aismann d7b13b36d7 Chipmunk2D - TestBed Add more examples and improve using the original source 2021-06-18 16:52:56 +08:00
halx99 cbb1df02c4 Improve Lua RTTI performance [ci build] 2021-06-18 12:23:10 +08:00
aismann bd10049c23 Improved Chipmunk2D - TestBed (#381)
* Improved Chipmunk2D - TestBed

* for windows only (at this moment)

* Update CmakeLists.txt

* fix CmakeLists.txt

* some more fixes

* more fixes

* more fixes

* Create ChipmunkDemo.h

* Fix CMakeList.txt; improve Chipmunk TestBed
2021-06-17 14:22:52 +08:00
aismann a8f7a7d7c1 Improve the "Physics part" (#379)
* 1. Add "initial" Chipmunk - TestBed

More demos comes later.

* 2. Removed unused source

* Update CMakeLists.txt

* Some fixes #1

* workaround #1

* workaround #1
2021-06-16 19:34:09 +08:00
halx99 4ec57546f5 Update yasio [ci build] 2021-06-14 22:54:50 +08:00
halx99 3a7d79733f Update readme guide and fixup [ci build] 2021-06-08 21:53:18 +08:00
halx99 5a6045ab19 Make gradle utils file as shared [ci build] 2021-06-02 06:27:19 +08:00
halx99 dc11adb950 [Gradle] Find ndk with env ANDROID_NDK [ci build] 2021-06-02 05:37:18 +08:00
halx99 84a8ec8e2e Fix lua build [ci build] 2021-05-24 19:18:15 +08:00
halx99 25b88ff40b Fix ci [ci build] 2021-05-24 17:20:28 +08:00
halx99 827d384eef Renaming refactor (#353) [ci build] 2021-05-18 16:40:30 +08:00
halx99 93173d860b Replace jcenter with mavenCentral [ci build] 2021-05-15 12:15:38 +08:00
halx99 e367689ca9 Gradle Plugin no longer support cmake 3.10.0+ 2021-05-15 11:58:56 +08:00
halx99 4a12425a1b Fix android ci [ci build] 2021-05-15 00:12:41 +08:00
halx99 b68f7b8948 Update gradle stubs [ci build]
a. wrapper  to  6.9
b. plugin to 4.2.0
2021-05-14 12:11:19 +08:00
halx99 8e6faac1f1 Merge: 3348f10813 3a7bb58045
Merge pull request #350 from rh101/fix-cmake-set-property

Fix for CMake error when set_property is called with aliased target
2021-05-05 19:49:30 +08:00
rh101 c3618f8ea6 Extract real target from ALIAS if it exists in order to set property successfully
Remove duplicate entries in dependencies lists
2021-05-05 16:04:06 +10:00
halx99 fdf0ebc97f Make tests could build at external location [ci build] 2021-05-02 17:23:39 +08:00
halx99 0511520281 Merge: 7f1ca55a97 1efe0091a8
Merge pull request #347 from rh101/imgui-fix

ImGUI font crash fix when using virtual file system
2021-04-27 23:29:22 -07:00
rh101 e5fa398c67 Load fonts into IMGUI using memory routines rather than allowing it to use its own file handling in order to support FileStream related implementations. 2021-04-28 15:53:37 +10:00
halx99 72fa15f8f3 Fix cpp-tests exit crash when tableView in scrolling [ci build] 2021-04-26 17:55:55 +08:00
rh101 95cf5b5c2b Merge: 2aa2d69151 b7506fed0c
Merge branch 'vfs-support' of https://github.com/rh101/engine-x into vfs-support
2021-04-23 00:01:47 +10:00
rh101 54ffa13dff Move PosixFileStream class to its own files
Update UserDefault to work with FileStream
Fix undefined openFileStream on platforms other than Win32
2021-04-23 00:01:32 +10:00
RH 1e15ed4839 Merge: 2cef9f2e76 844119d162
Merge pull request #3 from c4games/master

Sync with master
2021-04-22 21:48:49 +10:00
rh101 7540c06fd3 Use FileStream to write JPG images to disk 2021-04-22 21:36:26 +10:00
halx99 8ed6d34234 Explicit set cmake minimum version at app/build.gradle [ci build] 2021-04-22 11:40:53 +08:00
rh101 2bf12b2226 Add support for virtual file system via custom FileStream and FileUtils implementations. 2021-04-22 03:15:49 +10:00
halx99 473e51cee7 Set cmake min version to 3.10 [ci build] 2021-04-21 14:05:44 +08:00
halx99 c2596efd04 Ensure build native first before compile java code 2021-04-20 20:25:32 +08:00