41 Commits

Author SHA1 Message Date
NathanSweet
af5ff6c11f Fixed events not firing sometimes.
http://www.esotericsoftware.com/forum/viewtopic.php?f=9&t=1462
2013-10-20 12:18:01 +02:00
NathanSweet
43466fc936 Fixed for C89.
closes #138
2013-10-13 17:18:21 +02:00
NathanSweet
ff2b76f2ef Added timeline type. 2013-10-10 09:26:30 +02:00
NathanSweet
2bff08de4b Prefixed all spine-c structs and functions with "sp".
Holy refuctoring! Sorry for the change, but some libraries were having naming conflicts. You can define SPINE_SHORT_NAMES before including spine-c headers if you want to use structs and functions without the "sp" prefix, as it was before.
2013-10-09 03:43:16 +02:00
NathanSweet
819b100a51 C89 comment 2013-10-09 01:02:06 +02:00
NathanSweet
9a347d5eb8 Updated license.
Nailed it this time, quite sure!
2013-10-04 04:13:09 +02:00
NathanSweet
748431b4f6 Allow null firedEvents. 2013-10-03 21:32:57 +02:00
NathanSweet
981e7a1371 Fixed last event being fired too many times. 2013-10-03 20:33:03 +02:00
NathanSweet
45c3487098 Events list is now required.
Simplifies applying the event timeline and isn't hard to supply.
2013-10-02 14:10:55 +02:00
NathanSweet
47ce2a40c1 Minor update to the license to include education. 2013-10-01 14:55:15 +02:00
NathanSweet
2dc486b2d5 Fixed first event not getting fired.
Damn this is hard to get exactly right!
2013-09-29 23:42:55 +02:00
NathanSweet
af5aca8b66 Changed when events are fired.
Events are now fired from lastTime (exclusive) to time (inclusive). This allows an event at the end of an animation to be fired before the next animation starts. The "complete" callback will happen before the event though, because "complete" happens in update() and events are triggered in apply().

Note events are not fired for the previous animation during mixing (crossfading).
2013-09-29 23:22:55 +02:00
NathanSweet
308e18b376 Fixed event timeline missing first event. 2013-09-29 22:51:08 +02:00
NathanSweet
f8401d954a Compile with C89. 2013-09-26 11:24:40 +02:00
NathanSweet
782bde21a0 Event timeline for spine-c, AnimationState refactoring.
closes #113
2013-09-26 09:37:11 +02:00
NathanSweet
76778031ed Additive blending for spine-sfml. 2013-09-24 12:00:23 +02:00
NathanSweet
63f8e4ddaf Keyable draw order for spine-c. 2013-09-24 11:29:58 +02:00
NathanSweet
e2fccf72d6 License update.
Changed from New BSD to a custom license. The new license requires a Spine license to use the code. If you have a valid Spine license, you can do whatever you like with the code. This should not be a problem for anyone using the runtimes with Spine, nothing changes. If using the runtimes without a Spine license, you now need a Spine license. This is because the runtimes were created explicitly to be used with Spine.
2013-09-20 19:46:23 +02:00
NathanSweet
cdadffc156 Removed spine namespace from spine-c.
Didn't make any sense for a C API and complicated integration with ObjC.
2013-05-08 20:09:10 +02:00
NathanSweet
92622246c1 AnimationState gets addAnimation methods for chaining animations.
Tabs, not spaces!
2013-04-26 20:03:28 +02:00
dazza
bd4431748c Fixed memory leaks in spine-c 2013-04-26 18:28:10 +01:00
NathanSweet
99ec8957f8 Fixed up conversion warnings in VS2010. 2013-04-25 23:39:46 +02:00
NathanSweet
e64b3c201a Fixed up remaining issues to make spine-c C89. 2013-04-25 23:19:02 +02:00
djr
f87b8c80b9 Merge remote-tracking branch 'upstream/master' 2013-04-24 21:18:17 +01:00
djr
1db2715b25 Getting the code to build on windows
Making the code C98 compliant so it can build using VS2010.
2013-04-24 20:55:32 +01:00
NathanSweet
64a0a07373 Refactoring for non-Atlas RegionAttachments. Fixed whitespace stripped and rotated regions. 2013-04-24 16:54:13 +02:00
NathanSweet
2bc3f511a1 Refactoring to make extension easier.
Much less weird OOP needed. Rendering is separate from data objects. cocos2d-iphone and cocos2d-x support for multi page atlases.
2013-04-17 22:08:53 +02:00
NathanSweet
ed6a062942 Multi line comments in case we every want to support C89. 2013-04-12 08:07:16 +02:00
NathanSweet
e56050e3a7 Better class extension. 2013-04-11 06:06:23 +02:00
NathanSweet
dd27ee184c Changed Spine export format.
There are no longer separate animation files, they are now inside the skeleton file. This means there is just one file to manage, which is cleaner. Now that animations are stored in SkeletonData, they can be looked up by name which leads to cleaner runtime APIs.

cocos2d and cocos2d-x runtimes got a cleaner ObjC/C++ API.
2013-04-04 04:00:45 +02:00
NathanSweet
ca163b5e52 Moar refuctoring. All the refuctorings are belong to Spine. 2013-04-02 02:47:11 +02:00
NathanSweet
dfd090d220 Allow spine-c to be compiled as C++. 2013-04-01 20:21:07 +02:00
NathanSweet
6af401e888 Refactored loading files. 2013-04-01 19:23:26 +02:00
NathanSweet
fe37451f93 Cleanup, docs. 2013-03-31 20:40:57 +02:00
NathanSweet
a3f23dd4bf Refactoring for cleaner OOP. 2013-03-31 20:09:37 +02:00
NathanSweet
c5ffedab4e Minor cleanup. 2013-03-31 03:24:05 +02:00
NathanSweet
7707f3517f License headers. 2013-03-30 19:12:33 +01:00
NathanSweet
6765ec4235 C runtime works! 2013-03-30 17:52:25 +01:00
NathanSweet
596b515e66 Refactoring. 2013-03-30 04:14:51 +01:00
NathanSweet
103cd30758 Extension stuff seems to be shaping up nicely! 2013-03-29 22:12:57 +01:00
NathanSweet
40835845be Added Animation.
OOP in C is a cold, dark place.
2013-03-29 04:06:43 +01:00