10454 Commits

Author SHA1 Message Date
Mario Zechner
0b318d01fd [ios] VS Code debug launch config 2025-08-11 21:08:51 +02:00
Mario Zechner
1627bd81e5 [ios] Improved test 2025-08-11 20:29:54 +02:00
Mario Zechner
cc43fd549b feat(spine-ios): Implement SpineSwift high-level API mirroring spine_dart.dart
- Created SkeletonDrawable class wrapping spine_skeleton_drawable C functions
- Implemented AnimationStateEventManager singleton for event listener management
- Added helper types: Bounds and Vector structs
- Added extensions for Skeleton (bounds, getPosition)
- Added extensions for Skin (getEntries to iterate attachments)
- Added extensions for BonePose (coordinate transformations)
- Added extensions for AnimationState and TrackEntry (event listeners)
- Created skeleton_drawable_test_swift.swift using SpineSwift high-level API
- Updated test Package.swift to include SpineSwift dependency
- SpineSwift module now compiles with 0 errors

This completes the port of the high-level API from spine-flutter's spine_dart.dart
to SpineSwift, providing a clean Swift API that mirrors the Dart implementation.
2025-08-11 20:17:17 +02:00
Mario Zechner
9fdc0f0033 spine-ios: Fix Swift bindings compilation - arrays and type conversions
- Fixed array wrapper generation to use correct pointer casting
- Changed array count/length properties to return Int instead of Int32
- Fixed buffer access for primitive and object arrays (no assumingMemoryBound needed)
- Corrected size_t parameters to use Int instead of Int32
- Updated module imports (SpineSwift instead of Spine)
- Reduced compilation errors from 17,500 to 0 for SpineSwift module
- Remaining 27 errors are iOS-specific (UIKit) in SpineiOS module
2025-08-11 19:31:33 +02:00
Mario Zechner
a52ac67661 [ios] More Swift generator work. 2025-08-11 19:11:24 +02:00
Mario Zechner
ecbd700af4 Restructure spine-ios modules: SpineC, SpineSwift, SpineiOS
- Created clean module separation:
  - SpineC: C/C++ compilation only (working)
  - SpineSwift: Generated Swift bindings + platform-agnostic API
  - SpineiOS: iOS-specific UI components only
- Updated Package.swift with proper target structure
- Moved generated Swift files to SpineSwift/Generated
- Removed redundant SpineModule
- Created test with skeleton_drawable_test.swift ported from Dart
- Test successfully runs using SpineC module directly
- Note: SpineSwift has Objective-C selector conflicts to be fixed
2025-08-11 19:07:29 +02:00
Harald Csaszar
0786af7586 [unity] minor: increased package version for last commit. 2025-08-07 15:09:01 +02:00
Harald Csaszar
49999e417e [unity] Fixed BoneFollower MissingReferenceException when skeleton is destroyed. Closes #2903. 2025-08-07 15:06:01 +02:00
Nathan Sweet
18dfa3b634 [libgdx] parseRoot -> parseValue. 2025-08-06 21:02:45 -04:00
Nathan Sweet
3dad8462a3 [libgdx] Use JsonMatcher to parse skeleton JSON. 2025-08-05 20:07:38 -04:00
Harald Csaszar
53fb4bcce4 More URLs in license files updated from http to https. 2025-08-01 17:30:01 +02:00
Harald Csaszar
9e38893962 Updated license URL to https. 2025-08-01 16:46:59 +02:00
Nathan Sweet
59a9d31c83 [libgdx] Restored project files.
Reverts: [workflows] Add diff artifact to dart format check for debugging 106c39d0af7045eca89ebd080b37ea2c56bb3082.
2025-07-31 17:29:26 -04:00
Nathan Sweet
3fa62b2550 [libgdx] Prefer JDK StringBuilder. 2025-07-31 17:25:35 -04:00
Nathan Sweet
06e085660e Updated owl example project. 2025-07-31 17:25:35 -04:00
Mario Zechner
1945cd2f8d [formatters] Use xargs instead of find -exec for dart format to ensure proper argument passing 2025-07-31 21:43:27 +02:00
Mario Zechner
db98c15e9b [workflows] Fix upload-artifact version to v4 2025-07-31 21:34:22 +02:00
Mario Zechner
106c39d0af [workflows] Add diff artifact to dart format check for debugging 2025-07-31 21:32:13 +02:00
Mario Zechner
86f888b1fc [workflows] Fix dart format check workflow - use && instead of & 2025-07-31 21:28:31 +02:00
Mario Zechner
7eb414e2f7 [ios] codegen scaffold 2025-07-31 21:27:53 +02:00
Davide Tantillo
a07b7176fd [ts][pixi-v7][pixi-v8] Fix multiple autoUpdate calls setting multiple tickers (see #2900) 2025-07-31 17:29:55 +02:00
Davide Tantillo
fc6c925954 [ts][pixi-v7] Removed unnecessary update on autoUpdate warning. 2025-07-31 17:29:55 +02:00
Mario Zechner
cb32efcb28 [flutter] Clean-up 2025-07-31 02:08:06 +02:00
Mario Zechner
a2c752d855 [cpp][c] Fix warnings on Clang 2025-07-31 00:50:41 +02:00
Mario Zechner
ea5db08692 [flutter] More clean-up. 2025-07-31 00:50:22 +02:00
Mario Zechner
c9d7e687a9 [flutter] clean-up of ffi related code 2025-07-31 00:18:34 +02:00
Mario Zechner
d059ac01fd [flutter] Switch to wasm_ffi 2025-07-30 23:41:36 +02:00
Mario Zechner
4a715633a7 [tests] Haxe serializer 2025-07-30 19:10:13 +02:00
Mario Zechner
790caa8316 [flutter] Merge web_ffi_fork sources into spine-flutter, fix web build. 2025-07-30 19:04:49 +02:00
Mario Zechner
59829c3f69 [flutter] Full array capabilities, still needs checking against Dart ListBase. 2025-07-30 18:00:23 +02:00
Mario Zechner
eaa4d5dd54 [c] extension methods for bounds, worldToLocal etc. SPINE_OPAQUE_TYPE is now fully opaque. 2025-07-30 13:22:59 +02:00
Mario Zechner
f9fefee0c8 [cpp] Docker build for GCC testing, minor GCC fixes 2025-07-30 12:10:02 +02:00
Mario Zechner
e162835c31 [tests] Haxe SkeletonSerializer WIP 2025-07-30 10:10:49 +02:00
Mario Zechner
1570962903 [flutter] Fix Flame examples, AppDelegate warning on macOS, debug logging in AnimationStateEventManager 2025-07-30 09:57:57 +02:00
Mario Zechner
4225214caf [flutter] macOS/iOS builds, fixed examples wrt new API 2025-07-30 09:44:13 +02:00
Mario Zechner
83f5bd0e0a [cpp] pEvents -> events, extensions for BonePose and Skeleton returning spine_vector. 2025-07-30 09:42:11 +02:00
Mario Zechner
f6fbbabd6b [cpp] pEvents -> events 2025-07-30 09:41:42 +02:00
Mario Zechner
f1353f2c6d [flutter] SkeletonDrawable.update() needs to update skeleton and world transform 2025-07-30 00:50:11 +02:00
Mario Zechner
4eddd24787 [flutter] AnimationStateEventsManager for idiomatic animation state listeners, Flutter versions of Atlas, SkeletonDrawable, RenderCommand for convenience. 2025-07-30 00:44:12 +02:00
Mario Zechner
09969f5649 [c] spine_skeleton_get_bounds extension returning spine_bounds struct 2025-07-30 00:43:01 +02:00
Mario Zechner
65f01fefb9 [cpp] Skeleton::getBounds() without scratch buffers 2025-07-30 00:42:27 +02:00
Mario Zechner
31652b4022 [c] Expose TrackEntry::getAnimationState in C bindings. 2025-07-29 23:16:17 +02:00
Mario Zechner
fe5e25c3a0 [cpp] Added TrackEntry::getAnimationState(), wired up when TrackEntry is obtained from pool in AnimatinState::newTrackEntry 2025-07-29 23:15:38 +02:00
Mario Zechner
0e5de94529 [flutter] handle implicit enum values in codegen, extension for animation state listeners + test 2025-07-29 22:52:06 +02:00
Mario Zechner
71eb86c15e [c] spine_animation_state_events_* extension functions. 2025-07-29 22:51:34 +02:00
Mario Zechner
001f4d384f [flutter] Skin.getEntries() extension 2025-07-29 22:19:04 +02:00
Mario Zechner
fd939f4401 [c][cpp] SpineExtension::strdup convenience method, better spine_skin_entries api in spine-c extensions 2025-07-29 22:18:42 +02:00
Mario Zechner
48081c7f20 [tests][haxe] WIP of SkeletonSerializer for Haxe 2025-07-29 21:39:14 +02:00
Mario Zechner
58f5d24758 [flutter] Clean-up of extensions, docs for codegen 2025-07-29 21:39:14 +02:00
Davide Tantillo
6927995767 [haxe] Removed lime dependency from Skeleton.hx 2025-07-29 18:05:18 +02:00