13 Commits

Author SHA1 Message Date
Mario Zechner
97d49b37b7 License header update 2025-05-26 13:24:06 +02:00
Mario Zechner
0ffcc63b5e [flutter] Expand debug rendering example to show how to render in canvas coordinates 2024-09-09 11:20:57 +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
c0efb545bd [flutter] Fixes #2546, fix drawing before controller initialized drawable 2024-06-11 14:07:50 +02:00
Mario Zechner
cb0fc7adaa [flutter] Closes #2526, fix use after free error in dress-up.
When setting a new skin in _toggleSkin, we first dispose the old skin, then set the new skin. However, setting the new skin will compare attachments against the still set but already freed old skin. We end up with use after free memory access.
2024-05-16 16:31:02 +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
58887199ca [flutter] Upgraded to Flutter 3.16.0, fixes #2420 2023-11-26 13:59:38 +01: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
4047f1ba07 Updated license headers. 2023-07-31 13:29:16 +02:00
Mario Zechner
d596731ca3 [flutter] Minor cosmetics. 2023-04-04 13:25:04 +02:00
Mario Zechner
2fc2e98c36 [flutter] widget state only re-creates resources if asset specified to widget constructor has changed. 2023-03-03 13:38:18 +01:00
Mario Zechner
8e16576e94 [flutter] Backport to 4.1. 2023-02-17 11:38:40 +01:00