56 Commits

Author SHA1 Message Date
pharan
e6aebf2754 [xna] Match change in SkeletonClipping.IsClipping 2017-10-19 16:19:57 +08:00
badlogic
20b081ad5a [xna] Made MeshBatcher of SkeletonRenderer accessible. Users can use this instead of the less capable XNA SpriteBatch and ensure maximum batching. See #953. 2017-10-13 14:51:50 +02:00
badlogic
791d813bf1 [cs][xna] Fixed tint black, see #1003. Opened up Triangulator and SkeletonClipping for debug rendering. 2017-10-13 14:12:57 +02:00
badlogic
1535906511 [csharp] Fixed bug in triangulator, closes #937. 2017-07-21 16:46:45 +02:00
badlogic
d950da644f [xna] More clipping debugging 2017-07-21 16:12:34 +02:00
badlogic
4b93db20fd [xna] Also draw decomposed convex clipping polygons 2017-07-21 15:59:43 +02:00
badlogic
a5d2519f86 [xna] Added SkeletonDebugRenderer, modified sample to reproduce clipping issue. 2017-07-21 15:54:55 +02:00
badlogic
81f5b3fa79 [monogame] Added two color tinting. 2017-05-24 17:23:30 +02:00
badlogic
8fd8cfbf46 [xna] Added two color tinting, support for arbitrary Effects to be set on SkeletonRenderer 2017-05-24 16:31:37 +02:00
badlogic
0fd553e75a [csharp][libgdx] Fixed indexing in RegionAttachment. [monogame][xna] Fixed SkeletonMeshRenderer clipping 2017-04-20 15:02:24 +02:00
badlogic
41f2e206d6 [xna] Added clipping to SkeletonMeshRenderer, doesn't quite work yet 2017-04-19 16:35:26 +02:00
badlogic
e5f9795d15 [xna] Refactored SkeletonMeshRenderer in preparation for clipping 2017-04-19 16:16:41 +02:00
badlogic
ac3201afca [xna][monogame] Fixed up renderer 2017-03-15 12:46:45 +01:00
pharan
a05ee4130f [csharp][unity][monogame][xna] Updated for compatibility with Spine 3.5.x 2016-11-01 23:46:47 +08:00
NathanSweet
c0fdc454a2 Fixed inconsistent newlines.
License header was followed by \n\n and files ended with \n. Changed to \r\n.
2016-10-15 23:45:16 +02:00
badlogic
5aa27771c3 [runtimes] Updated ALL sources to use latest Spine Runtimes License v2.5. Manually checked all the things... 2016-10-13 15:12:05 +02:00
John
1c19365325 [csharp][monogame][unity][xna] Updated to 3.3.x (#623)
* [spine-csharp] Ported 3.3 changes of Animation and inner classes. Added MathUtils.Clamp

* [spine-csharp] Ported 3.3 changes of AnimationStateData. Updated .gitignore to exclude .meta files from spine-csharp

* [spine-csharp] Ported 3.3 changes of Bone

* [spine-csharp] Ported 3.3 changes of BoneData

* [spine-csharp] Ported 3.3 changes of Event

* [spine-csharp] Ported 3.3 changes to IKConstraint. Also got rid of the hideous labeled break. Replaced with while and sprinkled continues and break :D

* [spine-csharp] Mario is not good with labeled breaks. Fixed with goto

* [spine-csharp] Ported more 3.3 changes, only SkeletonJson and SkeletonBinary left. Unity runtime also needs updating with new changes

* [spine-csharp] fixed compilation errors initially not reported by Mono CS

* Minor clean up.

Every space has its place.™

* Match csharp 3.3 refactorings.

* [Unity] Minor cleanup in SkeletonBaker.

* Better exception messages.

* Removed extra usings. Matched whitespace style.

* Fixed Bone.cs method PascalCase and xml documentation.

* Fixed Exception ctor arguments.

* Fixed single bone IK mixing.

Matched libgdx commit:
e0ee18a088

* [spine-csharp] Port of 3.3 changes to SkeletonJson, incomplete

* [Unity] Ragdoll: account for shear and new constraints.

* [spine-csharp] Ported 3.3 changes to SkeletonJson

* [spine-csharp] Ported 3.3 changes to SkeletonBinary. Time for testing and debugging

* [spine-csharp] Fixed up XNA runtime

* Added simple example data in new exports/ folder

* [spine-csharp] Fixed bug in Slot construtor, wasn't assigning index. Fixed bug in CurveTimeline, argument guard was wrong. Fixed bugs in SkeletonJson, indexing to get duration of a timeline was wrong. Added simple example to spine-xna for easier debugging

* [spine-csharp] Fixed porting bug in ColorTimeline#apply, indexing was wrong

* [spine-csharp] Fixed SkeletonJson#ReadVertices, calling resize on temp lists was wrong. Updated goblin sample in spine-xna, fixed mesh attachment rendering in spine-xna.

* [spine-xna] Added binary exports, modified XNA game

* [spine-xna] Added tank example

* Some cleanup. Relabeled generic todos.

* Prevent SpineEditorUtilities from orphaning failed instantiations.

* Ignore PathAttachment when checking for required atlas regions.

* [spine-csharp] the great spaces to tabs battle

* [spine-csharp] Fixed inherit deform.

* [spine-csharp] Match Skeleton.java properties and stuff.

* [spine-csharp] Fixed enums, all upper cased now, using Enum.ParseType in case-insensitive mode

* [csharp] Ported 206e7f983c4df4d27fee6cac05d152eb2295c8b0 to csharp runtime. Fixes attachment keys on different tracks

* [csharp] Updated README.md

* [xna] [monogame] [unity] Updated README.md

* Revert "[csharp] Ported 206e7f983c4df4d27fee6cac05d152eb2295c8b0 to csharp runtime. Fixes attachment keys on different tracks"

This reverts commit 175216868dd00b4ae31cc717022242308c150f6a.

* [csharp] Fix to AttachmentTimeline#apply, fix for the fix for the fix for the revert for the fix

* [csharp] Matched and fixed more comments, summaries, exception messages and formatting.

* [csharp] Fix deformed weighted vertices condition + match libgdx closer.

* [csharp] Use internal ExposedList array for critical methods.

* [csharp] SkeletonJson and SkeletonBinary minor formatting and fixes.

* [unity] Match changes and fixes in spine-csharp 3.3 + better editor messages.

* [unity] Updated sample scenes and files.

* [csharp] Some formatting got left behind.

* [unity] New readme links + Removed redundant info.

* [exports] Remove dummy project.
2016-06-30 04:29:33 +08:00
NathanSweet
08b74f5b18 Updated spine-csharp to Spine v3. 2016-02-14 22:51:18 +01:00
pharan
3d19e22064 [XNA] Fixed compatibility with spine-csharp 2015-12-31 11:58:04 +08:00
NathanSweet
27270a5781 Spine Runtimes license update.
Minor update to fix "SOFTARE" typo and clairfy how to get permission.
2015-04-24 21:33:24 +02:00
NathanSweet
f8a76c6455 Blend modes for all runtimes. 2015-04-02 14:20:20 +02:00
NathanSweet
2cfb6ad980 Moved Skeleton refernce from Slot to Bone. 2014-08-31 12:47:04 +02:00
NathanSweet
4424a41411 Use short indices. 2014-05-19 15:35:45 +02:00
NathanSweet
5b68fe5190 Meshes, FFD and skinning for spine-csharp and spine-xna.
Also updated example projects for spine-unity and spine-tk2d, but no meshes, FFD or skinning for those two yet.
2014-04-24 17:32:23 +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
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
0008e4afe5 Expose BasicEffect. 2013-12-22 20:59:11 +01:00
Liquidoodle
b51a110c54 Fixed file loading for XNA on Windows Phone 7. 2013-10-10 18:02:50 +01: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
6f2cc72aaf spine-xna no longer premultiplies alpha on load. Do it when packing the atlas.
This is just simpler all around. The renderer has a setting to know if premultiplied is being used. #121
2013-09-25 10:10:11 +02:00
NathanSweet
1f3dceed40 Fixed alpha in spine-xna.
#121
2013-09-25 10:04:32 +02:00
NathanSweet
8cec4eb354 Simplified SkeletonBounds AABB computation. 2013-09-24 15:37:46 +02:00
NathanSweet
1d58df24a6 Fixed renderer colors. 2013-09-23 20:36:37 +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
e1fe518261 Bounding boxes for spine-csharp. 2013-09-20 16:42:55 +02:00
NathanSweet
734505c91c Additive blending for spine-csharp and spine-xna. 2013-09-20 14:03:52 +02:00
NathanSweet
d641dbc414 Fixed memory leak. Formatting. 2013-08-16 12:22:55 +02:00
Morrison Cole
2d869518d7 Issue #100 Used the AtlasRegion page RenderObject (rather than the incorrect RegionAttachment RenderObject) as the Texture2D to draw the skeleton with 2013-08-06 22:04:09 +01:00
Randolph Burt
2760fc3ddd Ensured MonoGame compatibility for Windows 8 Store Apps.
The security is such that you cannot load from a stream in the 'normal .net way' - you must instead use specific Windows.Storage methods.
2013-06-18 23:37:30 +01:00
Randolph Burt
021714bf0d Ensured compatibility with MonoGame for iOS.
iOS MonoGame has no implementation for GetData/SetData, however we don't need to worry about the volatility of Textures with regards to screen resolution re-size as this is not an issue on iOS.
2013-06-18 22:55:35 +01:00
BigRedPK
877fc97d21 Update Util.cs
Remove unneeded casts.
2013-06-12 10:46:37 -05:00
BigRedPK
2837adaf9d Update Util.cs
RenderTarget2D is volatile. This means when there is any change to screen resolution, the content will be lost. This is common when changing to full-screen, alt+tab, screensavers, and locking/unlocking the computer. We can counteract this by directly setting the content of Texture2D.
2013-06-12 10:46:05 -05: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
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
cef85a86c7 Fixed issue #36. 2013-04-26 00:59:36 +02:00
NathanSweet
86e75d96d7 Refactoring for non-Atlas RegionAttachments. Fixed whitespace stripped and rotated regions. 2013-04-24 18:41:42 +02:00
NathanSweet
f2a08876c7 Support for disposing textures. 2013-04-18 12:20:24 +02:00
NathanSweet
143f99a81f Refactoring for multi page atlas support. 2013-04-17 22:09:58 +02:00