mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
10 KiB
10 KiB
3.6
- [lua]
- API addition: added
Bone:localToWorldRotation(rotation given relative to x-axis, counter-clockwise, in degrees). - API change: removed
Bone:worldToLocalRotationXandBone:worldToLocalRotationY. Replaced byBone:worldToLocalRotation(rotation given relative to x-axis, counter-clockwise, in degrees). - API addition: added two color tinting support, including
TwoColorTimelineand additional fields onSlotandSlotData. - API change:
VertexAttachment:computeWorldVerticesnow takes offsets and stride to allow compositing vertices directly in a vertex buffer to be send to the GPU. The compositing is now performed in the backends' respective renderers. This also affects the subclassesMeshAttachment,BoundingBoxAttachmentandPathAttachment. - API change: removed
RegionAttachment:updateWorldVertices, addedRegionAttachment:computeWorldVertices, which takes offsets and stride to allow compositing vertices directly in a vertex buffer to be send to the GPU. The compositing is now performed in the backends' respective renderers. - API addition:
PointAttachment, additional methodnewPointAttachmentinAttachmentLoaderinterface. - API change: removed
MeshAttachment.worldVerticesfield. Computation is now performed in each backends' respective renderer. Theuvcoordinates are now stored inMeshAttachment.uvs. - API change: removed
RegionAttachment.verticesfield. Computation is now performed in each backends respective renderer. Theuvcoordinates for each vertex are now stored in theRegionAttachment.uvsfield. - API addition: added support for local and relative transform constraint calculation, including additional fields in
TransformConstraintData - API addition:
PointAttachment, additional methodnewPointAttachmentinAttachmentLoaderinterface. - [love]
- Fixed renderer to work with 3.6 changes
- [corona]
- Fixed renderer to work with 3.6 changes. Sadly, two color tinting is not supported, as Corona doesn't let us change the vertex format needed and its doesn't allow to modify shaders in the way needed for two color tinting
- API addition: added
- [c]
- API addition: added support for local and relative transform constraint calculation, including additional fields in
spTransformConstraintData. - API change:
spVertexAttachment_computeWorldVerticesandspRegionAttachment_computeWorldVerticeSnow take new parameters to make it possible to directly output the calculated vertex positions to a vertex buffer. Removes the need for additional copies in the backends' respective renderers. - API change: removed
spBoundingBoxAttachment_computeWorldVertices, superseded byspVertexAttachment_computeWorldVertices. - API change: removed
spPathAttachment_computeWorldVerticesandspPathAttachment_computeWorldVertices1, superseded byspVertexAttachment_computeWorldVertices. - API change: removed
sp_MeshAttachment_computeWorldVertices, superseded byspVertexAttachment_computeWorldVertices. - API addition:
spPointAttachment, additional methodspAtlasAttachmentLoadeR_newPointAttachment. - API addition: added support for local and relative transform constraint calculation, including additional fields in
TransformConstraintData - API addition: added
spBone_localToWorldRotation(rotation given relative to x-axis, counter-clockwise, in degrees). - API change: removed
spBone_worldToLocalRotationXandspBone_worldToLocalRotationY. Replaced byspBone_worldToLocalRotation(rotation given relative to x-axis, counter-clockwise, in degrees). - API change: replaced
r,g,b,afields with instances of newspColorstruct inspRegionAttachment,spMeshAttachment,spSkeleton,spSkeletonData,spSlotandspSlotData. - API addition: added two color tinting support, including
spTwoColorTimelineand additional fields onspSlotandspSlotData. - API addition: added
userDatafield tospTrackEntry, so users can expose data inspAnimationStatecallbacks. - Modified kvec.h used by SkeletonBinary.c to use Spine's MALLOC/FREE macros. That way there's only one place to inject custom allocators (extension.h) commit
- [cocos2d-x]
- Fixed renderer to work with 3.6 changes
- Optimized rendering by removing all per-frame allocation in
SkeletonRenderer, resulting in 15% performance increase for large numbers of skeletons being rendered per frame. - Added support for two color tinting. Tinting is enabled/disabled per
SkeletonRenderer/SkeletonAnimationinstance. UseSkeletonRenderer::setTwoColorTint(). Note that two color tinting requires the use of a non-standard shader and vertex format. This means that skeletons rendered with two color tinting will break batching. However, skeletons with two color tinting enabled and rendered after each other will be batched. - Updated example to use Cocos2d-x 3.14.1.
- [cocos2d-objc]
- Fixed renderer to work with 3.6 changes
- [sfml]
- Fixed renderer to work with 3.6 changes. Sadly, two color tinting does not work, as the vertex format in SFML is fixed.
- [ue4]
- Fixed renderer to work with 3.6 changes
- API addition: added support for local and relative transform constraint calculation, including additional fields in
- [as3]
- API addition: added
Skeleton.getBoundsfrom reference implementation. - API addition: added support for local and relative transform constraint calculation, including additional fields in
TransformConstraintData - API addition: added
Bone.localToWorldRotation(rotation given relative to x-axis, counter-clockwise, in degrees). - API change: removed
Bone.worldToLocalRotationXandBone.worldToLocalRotationY. Replaced byBone.worldToLocalRotation(rotation given relative to x-axis, counter-clockwise, in degrees). - API change: Made
Bonefields_a,_b,_c,_d,_worldXand_worldYpublic, removed underscore prefix. - API addition: added two color tinting support, including
TwoColorTimelineand additional fields onSlotandSlotData. - API change: Removed
VertexAttachment.computeWorldVerticesoverload, changedVertexAttachment.computeWorldVertices2toVertexAttachment.computeWorldVertices, addedstrideparameter. - API change: Removed
RegionAttachment.verticesfield. The vertices array is provided toRegionAttachment.computeWorldVerticesby the API user now. - API change: Removed
RegionAttachment.updateWorldVertices, addedRegionAttachment.computeWorldVertices. The new method now computes the x/y positions of the 4 vertices of the corner and places them in the providedworldVerticesarray, starting atoffset, then moving bystridearray elements when advancing to the next vertex. This allows to directly compose the vertex buffer and avoids a copy. The computation of the full vertices, including vertex colors and texture coordinates, is now done by the backend's respective renderer. - API addition:
PointAttachment, additional methodnewPointAttachmentinAttachmentLoaderinterface. - API change: replaced
r,g,b,afields with instances of newColorclass inRegionAttachment,MeshAttachment,Skeleton,SkeletonData,SlotandSlotData. - [starling]
- Fixed renderer to work with 3.6 changes.
- API addition: added
- [ts]
- API change:
Skeleton.getBoundstakes a scratch array as input so it doesn't have to allocate a new array on each invocation itself. Reduces GC activity. - API addition: added support for local and relative transform constraint calculation, including additional fields in
TransformConstraintData - API addition: added
Bone.localToWorldRotation(rotation given relative to x-axis, counter-clockwise, in degrees). - API change: removed
Bone.worldToLocalRotationXandBone.worldToLocalRotationY. Replaced byBone.worldToLocalRotation(rotation given relative to x-axis, counter-clockwise, in degrees). - API addition: added two color tinting support, including
TwoColorTimelineand additional fields onSlotandSlotData. - API change: Removed
VertexAttachment.computeWorldVerticesoverload, changedVertexAttachment.computeWorldVerticesWithtoVertexAttachment.computeWorldVertices, addedstrideparameter. - API change: Removed
RegionAttachment.verticesfield. The vertices array is provided toRegionAttachment.computeWorldVerticesby the API user now. - API change: Removed
RegionAttachment.updateWorldVertices, addedRegionAttachment.computeWorldVertices. The new method now computes the x/y positions of the 4 vertices of the corner and places them in the providedworldVerticesarray, starting atoffset, then moving bystridearray elements when advancing to the next vertex. This allows to directly compose the vertex buffer and avoids a copy. The computation of the full vertices, including vertex colors and texture coordinates, is now done by the backend's respective renderer. - API addition:
PointAttachment, additional methodnewPointAttachmentinAttachmentLoaderinterface. - [webgl backend]
- Fixed renderer to work with 3.6 changes.
- Added support for two color tinting.
- Improved performance by using
DYNAMIC_DRAWfor vertex buffer objects and fixing bug that copied to much data to the GPU each frame inPolygonBatcher/Mesh. - Added two color tinting support, enabled by default. You can disable it via the constructors of
SceneRenderer,SkeletonRendererandPolygonBatcher. Note that you will need to use a shader created viaShader.newTwoColoredTexturedShadershader withSkeletonRendererandPolygonBatcherif two color tinting is enabled.
- [canvas backend]
- Fixed renderer to work for 3.6 changes. Sadly, we can't support two color tinting via the Canvas API.
- Added support for shearing and non-uniform scaling inherited from parent bones.
- Added support for alpha tinting.
- [threejs backend]
- Fixed renderer to work with 3.6 changes. Two color tinting is not supported.
- [widget backend]
- Fixed renderer to work for 3.6 changes. Supports two color tinting (see webgl backend changes for details).
- API addition: added fields
atlasContentandjsonContenttoWidgetConfigurationallowing you to directly pass the contents of the.atlasand.jsonfile without having to do a request. SeeREADME.mdand the example for details.
- API change: