519 Commits

Author SHA1 Message Date
Mario Zechner
a2859f68e0 [cpp] Closes #2672, JSON inherit timeline parsing didn't advance key map properly. 2024-12-06 12:55:59 +01:00
Mario Zechner
350faf2153 Formatting 2024-11-25 14:57:26 +01:00
Mario Zechner
5e80111b87 [glfw] Add spine-cpp-lite example. 2024-11-22 11:59:08 +01:00
Allen
b2061f1cf9
[ios] Using UnsafeBufferPointer to skip data copying and boost performance. (#2686)
* [ios] Using UnsafeBufferPointer to skip data copying and boost performance.

* [ios] Fix the extra data copying caused by using  and move the guard let condition to be earlier
2024-11-20 11:54:22 +01:00
Mario Zechner
90f6bfe49e [cpp] Port of commit 9d49999: Changed SequenceTimeline to match AttachmentTimeline behavior. 2024-11-15 15:31:31 +01:00
Mario Zechner
308c340cc9 Formatting 2024-11-15 15:18:06 +01:00
kikiloveswift
000df07027
[ios] Fix the issue where the SkeletonBounds instance couldn’t be initialized (#2669)
Co-authored-by: liqiang <liqiangbj01@kanyun.com>
2024-11-14 12:21:14 +01:00
kikiloveswift
648170f325
[ios] Provide the ability to convert an Attachment into a BoundingBoxAttachment. (#2671)
Co-authored-by: liqiang <liqiangbj01@kanyun.com>
2024-11-14 12:19:17 +01:00
Mario Zechner
19d3d1b29b [ios] Closes #2666, expose SkeletonBounds via spine-cpp-lite/Swift 2024-11-05 15:46:53 +01:00
Mario Zechner
9207cd2a40 [cpp][glfw] Fix reading bounding box attachments in SkeletonBinary, closes #2668, add binary Spineboy to example 2024-11-05 13:55:28 +01:00
Mario Zechner
28fb83d1d7 [cpp] Fix passing argument by reference 2024-11-05 13:27:01 +01:00
Mario Zechner
eb6a973f98 [cpp] Fix compliation on VS2017, closes #2645 2024-10-02 12:34:33 +02:00
chemodansama
7672c4a32d
Make String::startsWith and String::lastIndexOf const. (#2646)
Co-authored-by: Grigory Shabaganov <gshabaganov@halfbrick.com>
2024-10-02 12:11:59 +02:00
Mario Zechner
0e258cd0aa [cpp] Fixes #2635 2024-09-18 14:48:17 +02:00
Mario Zechner
03826796b6 [cpp] Closes #2622, fix memory leak in case of version mismatch. 2024-09-09 11:20:57 +02:00
Mario Zechner
f1956d9496 Formatting. 2024-08-19 14:01:33 +02:00
Mario Zechner
e0796bf543 [c][cpp] Port: Fixed mixing out inherit timelines to the setup pose. See #2590 2024-08-19 11:14:37 +02:00
Mario Zechner
eb2802e366 [ue] Fix shadowed variables on Clang/GCC. 2024-08-07 14:09:31 +02:00
Mario Zechner
853b5ee165 [cpp] Fix NaN in IKConstraint due to fp precision.
dd - r * r might result in a negative value, even if dd == r * r, depending on compiler optimizations and operation order.
2024-08-06 16:39:01 +02:00
Mario Zechner
1d0b33fb69 Formatting 2024-07-24 14:37:16 +02:00
Mario Zechner
a5e51afb57 [cpp] Port: Scale physics constraint limits with skeleton scale. See #2576 2024-07-24 14:32:13 +02:00
Mario Zechner
92b5b8a1ee [cpp] Fix handling of degenerate clipping polygons, closes #2579 2024-07-24 14:22:44 +02:00
Mario Zechner
aca86fa588 [cpp] Fix float exception, closes #2583 2024-07-24 13:49:42 +02:00
Mario Zechner
e9cd51e597 [cpp-lite][flutter] Switch to SkeletonRenderer 2024-07-02 14:08:00 +02:00
Mario Zechner
bf0a33876a Formatting 2024-07-02 12:32:59 +02:00
Mario Zechner
e9aab1c94e [cpp] Fix rendererObject assignment in sequence loading code 2024-07-01 16:24:18 +02:00
Mario Zechner
dcaa4f935e [sdl] Switch to SkeletonRenderer. 2024-07-01 15:09:42 +02:00
Mario Zechner
9db5f90ccb [glfw] Rewrite using new SkeletonRenderer and switch to spine-cpp. 2024-07-01 14:57:05 +02:00
Mario Zechner
70af9d8159 [sfml] Refactor CMake build 2024-06-30 21:03:37 +02:00
Mario Zechner
75a23e8167 [cpp] Refactor CMake build 2024-06-30 20:07:29 +02:00
Mario Zechner
35d76de559 [c][cpp] Fix formatting 2024-06-28 15:38:51 +02:00
Mario Zechner
82cb7f5cad [cpp] Closes #2563, free input and skeleton data on parsing failure. 2024-06-27 18:09:17 +02:00
Mario Zechner
4b5102fddf [glfw] MVP 2024-06-26 20:17:08 +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
ccac475c81 [c][cpp] Closes #2551, fix inherit transform timelines 2024-06-13 18:02:39 +02:00
Mario Zechner
5be1879151 [c] Fix return types of new track entry functions 2024-06-11 14:23:24 +02:00
Mario Zechner
d9774c6165 [c] Fix return types of new track entry functions 2024-06-11 14:22:40 +02:00
Mario Zechner
f2d1a2104d [c][cpp] Port: Added TrackEntry#isNextReady() #2547 2024-06-11 14:15:34 +02:00
Mario Zechner
f997a5f131 [cpp] Ported clipping fixes for colinear points (a0caef6 and 932c33a). See #2546. 2024-06-11 13:40:24 +02:00
Mario Zechner
6c8d5e1615 Merge branch '4.1' into 4.2 2024-05-27 13:39:46 +02:00
Mario Zechner
879c7adb37 Formatting 2024-05-27 13:39:29 +02:00
Mario Zechner
8880546b78 Merge branch '4.1' into 4.2 2024-05-27 13:00:04 +02:00
Mario Zechner
d344c148ae [cpp] Return error when default skin can not be parsed in SkeletonBinary. 2024-05-27 12:48:46 +02:00
Mario Zechner
aaa9b81628 Formatting 2024-05-21 13:17:23 +02:00
Mario Zechner
e1d7310511 [flutter] Skeleton.getBounds() takes clipping into consideration (see #2515) 2024-05-21 12:42:10 +02:00
Mario Zechner
b8f0aaaacc [cpp] Skeleton.getBounds() optionally applies clipping, see #2515 2024-05-21 12:29:42 +02:00
Mario Zechner
e99899e819 [c][cpp] Port 687260a384df3461f72738d08be85993fb83ec70 2024-05-15 13:57:39 +02:00
Mario Zechner
ab2de2babd [cpp][godot] Closes #2524, physics constraint update didn't take into account yDown properly 2024-05-14 10:59:49 +02:00
Mario Zechner
65d09e73c7 [cpp] Introduce spine_bool for boolean values in spine-cpp-lite. 2024-05-03 11:23:56 +02:00
Mario Zechner
a8e8cfa567 [cpp] spine-cpp-light.h -> spine-cpp-lite.h 2024-04-30 12:35:16 +02:00