72 Commits

Author SHA1 Message Date
JOHN VU
8a0d11b44f bind VAO 0 to clear the current vao context
reference to post on cocos2d forums: http://forum.cocos2d-iphone.org/t/spine-runtime-for-3-0-problems/13504
2014-05-18 20:24:40 -04:00
NathanSweet
790a46868b Disable debug lines for now. 2014-05-18 21:58:23 +02:00
NathanSweet
01c684dfd6 Docs. 2014-05-18 21:56:19 +02:00
NathanSweet
46f24bbe6a Spine runtime for cocos2d-iphone v3.0 >>BROKEN<< WIP, not ready for use. 2014-05-18 21:53:44 +02:00
NathanSweet
d5a52177f3 Docs. 2014-05-18 18:41:45 +02:00
NathanSweet
066fa3dcae Fixed TrackEntry leak. 2014-05-17 23:21:22 +02:00
NathanSweet
b0279701e4 Meshes, FFD and skinning for spine-cocos2d-iphone.
Also, AnimationState listeners are done using blocks.

This is for cocos2d 2.1.0. Version 3.0 and 3.1 is coming soon.
2014-05-17 22:28:24 +02:00
NathanSweet
26e4fb0d74 License header update.
2 -> 2.1 (clearer how permission is granted, formatting).
2014-04-23 12:04:43 +02:00
NathanSweet
9780af9524 Fixed premultiplied alpha. 2014-02-01 01:27:58 +01:00
Daniel Zhang (張道博)
690b7d1684 Adding a note about the need to also copy the appropriate licenses to the project. 2014-01-26 01:27:46 -10:00
Daniel Zhang (張道博)
40beaaf700 Add missing items from cocos2d-iphone 2.1 so that the project builds without errors.
Added references to the project:

* CCFontDefinition.m
* CCFontDefinition.h

Added CoreText.framework to the build phase.
2014-01-26 01:27:07 -10:00
NathanSweet
661a0436bc Documentation 2014-01-20 04:51:20 +01:00
NathanSweet
44ba6c4832 Documentation 2014-01-19 19:26:07 +01:00
NathanSweet
b0c96fd66b Typo 2014-01-11 21:20:46 +01:00
NathanSweet
d520addb9b Updated license to version 2.
Version 1 of the license didn't make sense: it required a Spine license to use the Spine Runtimes at all. This means if you used the Spine Runtimes in your application, anyone who purchased a copy of your application also needed a Spine license to use the runtimes. This was not the intent!

Version 2 of the license fixes this by allowing anyone to use the Spine Runtimes but only for internal use. When you purchase Spine, the Spine license (http://esotericsoftware.com/spine/files/license.txt) grants you the right to make and distribute derivative works of the Spine Runtimes. Now it makes sense: making and distributing applications with the Spine Runtimes requires a Spine license, but anyone can run that software without needing a Spine license.

With this fixed, I hope we never need to change the license again!
2014-01-11 21:07:28 +01:00
NathanSweet
5e2e5ed8d9 Fixed memory leaks.
closes #148
2013-10-31 09:10:29 +01:00
NathanSweet
6862eec5af Made 0 scale use "content scale factor". Commented drawOrder animation. 2013-10-30 14:25:16 +01:00
NathanSweet
3bf00befc0 Added podspec. 2013-10-14 21:38:00 +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
1d8e12442e Don't crash if animation is not found.
http://www.esotericsoftware.com/forum/viewtopic.php?f=7&t=1379
2013-10-08 12:06:56 +02:00
NathanSweet
9a347d5eb8 Updated license.
Nailed it this time, quite sure!
2013-10-04 04:13:09 +02:00
NathanSweet
47ce2a40c1 Minor update to the license to include education. 2013-10-01 14:55:15 +02:00
NathanSweet
37035c4a0f Additive blending for cocos2d and cocos2dx. 2013-09-30 00:54:21 +02:00
NathanSweet
e4358cf904 Fixed ("fixed") Android rendering, #33. 2013-09-30 00:54:09 +02:00
NathanSweet
4852fdca14 Renamed clearAnimation to clearTracks. 2013-09-28 20:33:56 +02:00
NathanSweet
916b7d01de cocos2d ObjC style AnimationState event callback for CCSkeletonAnimation. 2013-09-27 11:40:54 +02:00
NathanSweet
6441bd93b6 Wasn't using drawOrder. 2013-09-25 12:17:53 +02:00
slow_banshee
ae797c22c1 update convenience constructors for CCSkeleton, CCSkeletonAnimation 2013-09-24 17:47:42 +03:00
NathanSweet
d5cb07fea0 spine-cocos2d-iphone compiles with latest spine-c. 2013-09-24 16:28:04 +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
d0732921c9 Added getAnimationState. 2013-06-11 18:23:40 +02:00
NathanSweet
adb406a8ac Fixed leaking CCTextureAtlas. 2013-06-02 15:27:56 +02:00
NathanSweet
e6d7cf8b26 Add x and y to skeleton for positioning instead of using root bone. 2013-05-28 18:17:55 +02:00
NathanSweet
a4bd912dc1 Fixed premultiplied images (the default). 2013-05-12 14:22:12 +02:00
NathanSweet
4823bb25c8 Added verisons. 2013-05-10 14:49:01 +02:00
NathanSweet
bcc0b60050 Slightly better boundingBox. 2013-05-10 13:55:01 +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
3f3449ca99 Added getTextureAtlas method when not using AtlasAttachmentLoader. 2013-05-06 17:59:06 +02:00
NathanSweet
bf6eaaae34 Forgot to check in cocos2d-iphone refactoring! 2013-05-06 13:20:02 +02:00
NathanSweet
7f69300bcc Refactoring: changed references to "bind pose" to "setup pose".
This better matches "setup mode" in the editor and we can be consistent in code and docs from now on.
2013-05-05 12:38:06 +02:00
NathanSweet
80fdba02a1 Refactoring: RegionAttachment vertices, texture->rendererObject...
- Vertices are no longer stored on RegionAttachment. The vertices are temporary state, not part of RegionAttachment's persistent state like UVs and offset.
- AtlasPage and RegionAttachment "texture" field is renamed to "rendererObject". This is a better name as it may not be a texture.
- AtlasAttachmentLoader uses the AtlasRegion as the rendererObject. This enables a renderer to use region information if needed. The page rendererObject is still available.
- Better "enum" look up for AS3.
- Unity4 example doesn't use a compressed material.
2013-05-05 12:37:24 +02:00
NathanSweet
9cadc92b97 Brought back some convenience methods.
Anything more than this and you have to use the C API!
2013-05-01 17:58:08 +02:00
NathanSweet
0d488eafe6 Refactoring to make it easier to load a SkeletonData in a subclass constructor. 2013-04-29 14:45:26 +02:00
NathanSweet
90180dafbb CCSkeletonAnimation separated from CCSkeleton.
Has convenience methods to apply multiple AnimationStates and queue animations.
2013-04-27 16:58:22 +02:00
NathanSweet
0c76ba47da Fix for including in .mm file. 2013-04-26 01:51:11 +02:00
NathanSweet
64a0a07373 Refactoring for non-Atlas RegionAttachments. Fixed whitespace stripped and rotated regions. 2013-04-24 16:54:13 +02:00
NathanSweet
f055dc8fd7 Removed convenience methods to make it clear that the spine-c API should be used.
Discussion here:
http://www.esotericsoftware.com/forum/viewtopic.php?f=3&t=536
2013-04-19 17:47:43 +02:00
NathanSweet
5a46f8c6b4 isComplete for AnimationState. 2013-04-19 09:14:29 +02:00
NathanSweet
7bd6f62a2b Added AnimationState clear.
id return value for factory methods.
2013-04-18 23:31:29 +02:00
NathanSweet
7193122908 Fixed cocos2d texture atlas usage.
Super cool API you got going there, cocos2d... :|
2013-04-18 19:08:34 +02:00