53 Commits

Author SHA1 Message Date
Mario Zechner
50f3490046 [flutter] Release 4.2.30 2024-07-02 14:08:19 +02:00
Mario Zechner
be0e364388 [flutter] Dart analyzer fixes. 2024-06-19 14:20:44 +02:00
Denis Andrašec
0d5c3e3b18
Spine iOS (#2504)
* Add `spine-iOS` SPM package & example app (#1)

* Basic Mesh Rendering (#2)

* Spine C++ Swift Wrapper (#3)

* Load `Atlas` & `SkeletonData` (#4)

Load & dispose `Atlas` & `SkeletonData` from bundled files.

* Generate Swift classes from `spine-cpp-lite.h` (#5)

* Draw `SkeletonData` render commands (#6)

- Use `SkeletonData` render commands in the renderer
- Simple loop for animation support

* Add `BoundsProvider` (#7)

- Implement & support `BoundsProvider` classes
- Introduce alignment and content mode
- Update c to swift script to return optional for find prefixed methods

* Support `SpineController` & `Event` callbacks (#8)

- Support SpineController callbacks
- Support Event callbacks
- Apply tint color in renderer

* Support `DressUp` sample (#9)

- Add `DressUp` sample
- Move SpineViewController to SpineUIView
- Implement SpineUIView export to image

* Remove unused file

* Add `Physics` sample (#10)

- Add `Physics` sample
- Fix offsets in `IKFollowing` sample
- Fix `SpineView` background color

* Add `DebugRendering` sample (#11)

- Add `DebugRendering` sample
- Make `SpineUIView` transparent

* Move remaining files to SPM package (#12)

- Move remaining files to SPM package
- Rename `SpineWrapper` to `SpineCppLite`

* Load assets from different sources (#13)

- Load from bundle, file, http & drawable
- Apply correct blend mode & pma in renderer

* Add `Obj-C` + `UIKit` sample (#14)

- Add `Obj-C` + `UIKit` sample
- Update `Spine` to be usable in Obj-C code base

* Support CocoaPods (#15)

* Metal Best Practices (#16)

- Tripple Buffering
- Buffer Bindings
- Shared Objects

* Annotate functions that should return optional (#17)

* Add option to disable drawing when out of viewport (#18)

- Add option to disable drawing when out of viewport
- Move update clock to controller so multiple views can share it

* Add docs for public Spine classes/methods (#19)

* Fix various regressions (#20)

- Fix retain `SpineController` retain cycle
- Fix issue wehre images were not rendered
2024-06-18 10:02:25 +02:00
Mario Zechner
5c0cf0af45 [flutter] Port: Added TrackEntry#isNextReady() #2547, fix ffigen 2024-06-11 15:17:17 +02:00
Mario Zechner
c0efb545bd [flutter] Fixes #2546, fix drawing before controller initialized drawable 2024-06-11 14:07:50 +02:00
Mario Zechner
e1d7310511 [flutter] Skeleton.getBounds() takes clipping into consideration (see #2515) 2024-05-21 12:42:10 +02:00
Mario Zechner
5017bbf2aa [flutter] Closes #2525, fix build to include spine-cpp-lite. 2024-05-14 11:27:14 +02:00
Mario Zechner
b41e9377bb [flutter] Release 4.2.24 2024-04-30 12:37:16 +02:00
Mario Zechner
0e00ce4f07 [flutter] Closes #2438, support static linking of native libraries. 2024-04-30 12:30:13 +02:00
Mario Zechner
ac7f0654a6 [cpp][flutter] Added spine-lite-cpp, changed spine-flutter to use spine-lite-cpp. 2024-04-19 14:43:00 +02:00
Mario Zechner
072c2c0965 Update README.mds, preprare spine-flutter for publication 2024-04-16 15:33:55 +02:00
Mario Zechner
b7ee102dda [flutter] Add physics example. 2024-04-09 12:05:57 +02:00
Mario Zechner
3b4e6eff65 [flutter] Ported 4.2 changes in native code. PhysicsConstraint(Data) missing on Flutter side. 2024-04-04 17:30:25 +02:00
Mario Zechner
f1052e2906 Merge branch '4.1' into 4.2-beta
# Conflicts:
#	spine-flutter/CHANGELOG.md
#	spine-flutter/example/pubspec.lock
#	spine-flutter/pubspec.yaml
#	spine-unity/Assets/Spine/package.json
2024-03-19 16:28:30 +01:00
Mario Zechner
bd781912da [flutter] Fixes #2479, use default FilterQuality.none 2024-03-19 16:03:30 +01:00
Harald Csaszar
651611b573 Merge branch '4.1' into 4.2-beta 2024-03-07 16:06:59 +01:00
Hán Trung Kiên
8e200efdbb
flutter: fix memory cleanup is slow due to not destroying shaders (#2470) 2024-03-06 03:43:09 +01:00
Harald Csaszar
540319e1d4 Merge branch '4.1' into 4.2-beta 2024-01-24 17:18:11 +01:00
Kaisei
2c6d10bef8
Fix skeleton.getY() and skeleton.getScaleY() (#2454) 2024-01-22 15:14:26 +01:00
Mario Zechner
bdf6d6293d Merge branch '4.1' into 4.2-beta
# Conflicts:
#	spine-flutter/CHANGELOG.md
#	spine-flutter/pubspec.yaml
2024-01-03 06:23:20 +01:00
Mario Zechner
5279da1f80 [flutter] Fix multiply blend mode
See https://esotericsoftware.com/forum/d/25369-spine-flutter-slot%E6%B7%B7%E5%90%88%E6%A8%A1%E5%BC%8F%E5%90%8Ealpha%E4%B8%A2%E5%A4%B1/2
2024-01-03 06:19:30 +01:00
Mario Zechner
a6f52313c7 Merge branch '4.1' into 4.2-beta
# Conflicts:
#	spine-flutter/CHANGELOG.md
#	spine-flutter/pubspec.yaml
2023-12-11 14:26:22 +01:00
Mario Zechner
73d892740d [flutter] Properly invoke track entry listeners, closes #2349 2023-12-11 14:24:54 +01:00
Mario Zechner
49f3e6c542 [flutter] Make texture atlas page filter quality configurable, see #2362 2023-12-11 14:19:35 +01:00
Mario Zechner
f0f0f8afeb [flutter] Updated WASM binary 2023-12-11 14:17:03 +01:00
Mario Zechner
e023a8ae96 [flutter] Updated WASM binary 2023-12-11 14:12:26 +01:00
Mario Zechner
7832466694 [flutter] Release 4.2.19 2023-11-28 13:42:45 +01:00
Mario Zechner
5d4b86e070 [flutter] Release 4.1.10 2023-11-28 13:40:27 +01:00
Mario Zechner
641168412c [flutter] Release 4.2.18, take 2 2023-11-26 14:09:48 +01:00
Mario Zechner
bb0151fb64 Merge branch '4.1' into 4.2-beta
# Conflicts:
#	spine-flutter/example/pubspec.lock
2023-11-26 14:02:03 +01:00
Mario Zechner
58887199ca [flutter] Upgraded to Flutter 3.16.0, fixes #2420 2023-11-26 13:59:38 +01:00
Mario Zechner
1deed7c670 [flutter] Updated WASM binaries. 2023-09-22 22:23:31 +02:00
Mario Zechner
b89d550711 [flutter] Closes #2383, fix allocations of temp structs for Windows.
Dart FFIs MallocAllocator does in fact not use malloc...

# Conflicts:
#	spine-flutter/lib/assets/libspine_flutter.wasm
2023-09-22 22:11:52 +02:00
Mario Zechner
dfebce4f8b [flutter] Closes #2383, fix allocations of temp structs for Windows.
Dart FFIs MallocAllocator does in fact not use malloc...
2023-09-22 22:11:25 +02:00
Mario Zechner
92ed5f6fa7 [flutter] Fix path composition when loading from assets. Requires forward slash, path.join() does not work on Windows. 2023-09-22 17:30:47 +02:00
Mario Zechner
16c917805a [flutter] Fix path composition when loading from assets. Requires forward slash, path.join() does not work on Windows. 2023-09-22 17:30:00 +02:00
Mario Zechner
74b7882efa Merge branch '4.1' into 4.2-beta 2023-07-31 13:29:29 +02:00
Mario Zechner
4047f1ba07 Updated license headers. 2023-07-31 13:29:16 +02:00
Mario Zechner
6f6123f6fb Merge branch '4.1' into 4.2-beta
# Conflicts:
#	spine-flutter/CHANGELOG.md
#	spine-flutter/pubspec.yaml
2023-07-31 10:25:37 +02:00
Mario Zechner
0645ba3535 [flutter] Revert change to native bindings, so we stay compatible with old Dart versions. 2023-07-31 10:07:13 +02:00
Mario Zechner
2a577c8213 Merge branch '4.1' into 4.2-beta
# Conflicts:
#	spine-flutter/example/pubspec.lock
2023-07-31 10:03:18 +02:00
Mario Zechner
083ee14d3a [flutter] Upgrade dependencies to latest. 2023-07-31 10:02:42 +02:00
Mario Zechner
b9f33226fc [flutter] release 4.2.14 2023-07-18 14:55:36 +02:00
Mario Zechner
7dbf0a6665 [flutter] Fix WASM compilation, closes #2321 2023-07-18 14:47:52 +02:00
Mario Zechner
bee4d4060c [flutter] Batch by color as well, to avoid Impeller slow path
See https://github.com/flutter/flutter/issues/127486
2023-06-02 15:21:37 +02:00
Mario Zechner
9d0c069f5d [flutter] Update libspine_flutter.wasm. 2023-05-24 13:06:37 +02:00
Mario Zechner
d596731ca3 [flutter] Minor cosmetics. 2023-04-04 13:25:04 +02:00
Mario Zechner
728aa6226b [flutter] Fix doc headers, pub version. 2023-03-08 14:46:48 +01:00
Mario Zechner
5232c1cb77 [flutter] Add VS Code launch configs. 2023-03-07 11:52:11 +01:00
Mario Zechner
714edf501c [flutter] Implement blend modes, see #2200 2023-03-06 11:43:14 +01:00