Commit Graph

560 Commits

Author SHA1 Message Date
halx99 90aa74cdfa Improve cmake script
- glslcc helper function
  - Rename ax_add_shader to ax_target_compile_shaders
  - Provide argument FILES for specify single or multi shader
    source files support, i.e.
       ax_target_compile_shaders(target_name FILES 1.frag 1.vert)
- Rename all _AX_ROOT_PATH to _AX_ROOT
2023-07-06 19:21:36 +08:00
halx99 2786031541 Update setup.py to setup.ps1 in cmake [skip ci] 2023-07-06 14:00:21 +08:00
Deal(一线灵) 5d4ba705f0
Almost pwsh for ci (#1244) 2023-06-29 19:46:52 +08:00
CHP 0585fe563a
Increment PROP_MIN_SDK_VERSION to 21 (#1236) 2023-06-20 20:49:48 +08:00
halx99 9390673945 Migrate templates includes 2023-06-11 17:42:53 +08:00
Deal(一线灵) d57706b8ae
Improve media-engine for android, linux (#1228)
* Improve media-engine
- Implement andorid,linux
- Improve local file uri scheme

* Fix ci

* Improve code style

* Improve

* Update VlcMediaEngine.cpp

* Update AvfMediaEngine.h

* Fix ci

* Improve code style

* Enable androidx gradle.properties [skip ci]

* Improve code style

* Remove unnecessary callbacks

* Rename VideoPlayer to MediaPlayer
2023-06-10 22:05:49 +08:00
halx99 ffeccb789c Update AGP to 7.4.2, gradle to 8.1 2023-04-20 08:54:24 +08:00
Deal(一线灵) 7a24a89ca8
Building with ninja + official llvm-clang-cl support (#1159)
* Building with ninja + official llvm-clang-cl support

* Update gh ci for clang

* Fix ci

* Fix ci

* Fix ci

* FIx dll copy [skip ci]

* Fix ci warnings

* Update ci files and readme

* Update badges
2023-04-02 16:04:19 +08:00
aismann 973239f8a0
Fix: error C2360: initialization of 't' is skipped by 'case' label (#1146)
* Fix: error C2360: initialization of 't' is skipped by 'case' label

case ExampleGameState::update:
        /////////////////////////////
        // Add your codes below...like....
        //
        // UpdateJoyStick();
        // UpdatePlayer();
        // UpdatePhysics();
        // ...
        int t = 10;
        break;

* Update HelloWorldScene.cpp

* Update HelloWorldScene.cpp
2023-03-30 21:41:44 +08:00
halx99 cd76849c4d Update ios splash images [skip ci] 2023-03-21 19:40:55 +08:00
aismann 487e7bbe76
improve cpp template (add more event handler) (#1118)
* improve cpp template (add more event handler)

* fix C-style pointer casting
2023-03-14 15:25:12 +08:00
halx99 1a537a7a98 [UWP] set VS_WINDOWS_TARGET_PLATFORM_MIN_VERSION for all targets 2023-03-12 17:57:54 +08:00
RH 2b3ce68d8b
Set default project in Visual Studio for UWP (#1111) 2023-03-12 12:34:51 +08:00
halx99 7226125e7e Update project url in sources 2023-03-12 01:44:55 +08:00
Deal(一线灵) b46417809d
Windows Store UWP apps support (#1108)
* [BIG FEATURE] Windows Store UWP apps support

* Fix ci, add uwp for pr-ci

* Fix ci

* Improve ci script

* Fix ci

* Fix ci

* Fix ci

* Fix ci

* Upload uwp appx package artifacts [skip ci]

* Use d2d draw system font text

* Fix ci

* Improve code style
2023-03-11 22:10:18 +08:00
RH 65add9922c
Fix incorrect content variable in cpp template (#1095)
* Fix cpp-template-default CMakeLists.txt content folder reference
Update test project content folder variable name to match cpp template
2023-03-04 21:25:05 +08:00
RH 37a805072d
[Apple] Fix for missing resources (#1092)
* [Apple] Ensure resources are mapped to the expected directory by iOS and MacOS targets
2023-03-03 21:53:18 +08:00
halx99 de05d9af44 Fix android assets 2023-02-23 23:48:06 +08:00
Deal(一线灵) 1ae9cd33ae
Tidy project tree and full symlink support (#1072)
* Tidy project file tree and all symlink support
2023-02-23 21:57:30 +08:00
RH 4b4294c6d2
Update app icon to Axmol logo (#1070)
* [iOS] Axmol logo

* [Windows] Add Axmol logo as icon
Replace old logos in test resources with Axmol logo

* [tvos] Update to Axmol logo

* Update iOS and tvOS app logo

* Update cpp template app logos

* Fix resources for iOS and tvos. Update to new Axmol logo.
2023-02-23 13:07:12 +08:00
halx99 21c92c5434 [CMake] Add symlink support, refer to #1005
- Rename ax_<xxx>_copy_xxx to ax_<xxx>_sync_xxx
- Add optional arg `SYM_LINK`
2023-02-22 23:37:32 +08:00
Oren Bengigi 2698663f90
Update CMakeLists.txt (#1031) 2023-01-14 16:34:50 +08:00
RH f59d786b7a
Fix cpp-template (#1016)
* Committing genbindings changes

* Fix compilation error related to redefinition of 'pause'
Fix update override warning
Improve code

* Revert "Fix compilation error related to redefinition of 'pause'"

This reverts commit 1744a48fec.

* Fix compilation error related to redefinition of 'pause'
Fix update override warning
Improve code
2023-01-06 13:02:55 +08:00
aismann 8d4c763769
Update HelloWorldScene.cpp (#1008)
replace   _director->end();  with menuCloseCallback(this);
2023-01-03 17:40:05 +08:00
aismann 1b35d57b0b Improve cpp-template
Add:
- scheduleUpdate()
- HelloWorld::update(float delta) with some "gamestate switch/cases"
2023-01-02 22:26:23 +01:00
halx99 22244469d4 Add win32 console for cpp template [skip ci] 2022-12-29 19:00:40 +08:00
CHP d79156d728
Improve Android cmake (#985)
* Update CMakeLists.txt

* Improve Andoid CMAKE
2022-12-17 16:35:34 +08:00
halx99 3f0df4a348 Update logo [skip ci] 2022-12-17 16:32:20 +08:00
halx99 691cdd0ed9 Remove unnecessary cmake include 2022-12-17 14:32:20 +08:00
AsakuraMizu 8936e77bf6 experimental linux prebuilt support 2022-11-17 22:25:13 +08:00
halx99 0651f77a3c Improve gradle scripts
Add cmake options from gradle command line properties support
2022-11-10 22:53:54 +08:00
halx99 154009da5f Migrate namespace for templates [skip ci] 2022-10-19 13:17:18 +08:00
aismann a5810457f1
rename cocos2d to axmol (#920)
* rename cocos2d to axmol

* rename cocos2d.h to axmol.h

* Update Physics3DTest.cpp

replace Sprite3D -> MeshRenderer
2022-10-12 00:15:09 +08:00
一线灵|Deal 7a3314160c
Merge pull request #903 from aismann/patch-2
Update AppDelegate.h
2022-10-07 23:44:37 +08:00
aismann dbedd025d7
Update AppDelegate.h
#883
2022-10-07 15:24:01 +02:00
aismann be406badfe
Update AppDelegate.cpp
#883
2022-10-07 15:21:07 +02:00
aismann 2d666a6b84
Update HelloWorldScene.h 2022-10-02 13:09:56 +02:00
一线灵|Deal 5645bb241e
Final migrate (#876) 2022-10-01 16:24:52 +08:00
Paulo Coutinho 8c359917f7
Add apple tvos support (#846)
* support tvos

* support tvos and fix run command

* support tvos, fix run script and fix windows files

* support tvos on ci

* support tvos on ci and fix windows zlib

* support tvos on ci

* support tvos

* support tvos and tvos tests
2022-09-05 14:13:52 +08:00
halx99 6df48e9f8b Fix typo 2022-09-02 10:36:25 +08:00
一线灵|Deal 33b67fa0df
Migrate, use simple namespace ax (#818) 2022-08-29 20:51:22 +08:00
halx99 7e1db178ab Improve template HelloCpp code style [skip ci] 2022-08-13 09:35:38 +08:00
halx99 9150b9db83 Migrate cmake files 2022-08-11 15:41:10 +08:00
一线灵 13fc72c02c
Migrate axys (#782) 2022-08-08 18:02:17 +08:00
halx99 f03bce1380 Improve android gradle cmake & ndk setup 2022-08-06 23:09:16 +08:00
halx99 f152c8edf3 Update android gradle plugin to 7.2.2 2022-08-06 20:05:12 +08:00
halx99 21b9ac90e0 Update android target and compile sdk to android 12 2022-08-06 19:26:44 +08:00
aismann 12a1d92536
Renamed 'CC_CALLBACK_1' to 'AX_CALLBACK_1' 2022-07-19 08:32:18 +02:00
halx99 cf6baeed52 Improve android gradle script axistools.gradle 2022-07-12 13:07:27 +08:00
一线灵 279337f17f
Migrate engine namespace to `axis`(abbv: `ax`) (#743) 2022-07-11 17:50:21 +08:00