mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[cpp] 4.3 porting WIP
This commit is contained in:
parent
ebf9f65756
commit
91f2f71abf
1
.gitignore
vendored
1
.gitignore
vendored
@ -233,3 +233,4 @@ spine-libgdx/spine-libgdx-tests/.settings/org.eclipse.buildship.core.prefs
|
|||||||
spine-libgdx/spine-libgdx-tests/.settings/org.eclipse.jdt.apt.core.prefs
|
spine-libgdx/spine-libgdx-tests/.settings/org.eclipse.jdt.apt.core.prefs
|
||||||
spine-libgdx/spine-skeletonviewer/.settings/org.eclipse.buildship.core.prefs
|
spine-libgdx/spine-skeletonviewer/.settings/org.eclipse.buildship.core.prefs
|
||||||
spine-libgdx/spine-skeletonviewer/.settings/org.eclipse.jdt.apt.core.prefs
|
spine-libgdx/spine-skeletonviewer/.settings/org.eclipse.jdt.apt.core.prefs
|
||||||
|
spine-cpp/.cache
|
||||||
|
|||||||
@ -38,7 +38,8 @@ namespace spine {
|
|||||||
class Slot;
|
class Slot;
|
||||||
class Skeleton;
|
class Skeleton;
|
||||||
|
|
||||||
/// An attachment with vertices that are transformed by one or more bones and can be deformed by a slot's vertices.
|
/// An attachment with vertices that are transformed by one or more bones and can be deformed by a slot's
|
||||||
|
/// SlotPose::getDeform().
|
||||||
class SP_API VertexAttachment : public Attachment {
|
class SP_API VertexAttachment : public Attachment {
|
||||||
friend class SkeletonBinary;
|
friend class SkeletonBinary;
|
||||||
|
|
||||||
@ -54,10 +55,14 @@ namespace spine {
|
|||||||
virtual ~VertexAttachment();
|
virtual ~VertexAttachment();
|
||||||
|
|
||||||
|
|
||||||
/// Transforms local vertices to world coordinates.
|
/// Transforms the attachment's local vertices to world coordinates. If the slot's SlotPose::getDeform()
|
||||||
/// @param start The index of the first Vertices value to transform. Each vertex has 2 values, x and y.
|
/// is not empty, it is used to deform the vertices.
|
||||||
/// @param count The number of world vertex values to output. Must be less than or equal to WorldVerticesLength - start.
|
///
|
||||||
/// @param worldVertices The output world vertices. Must have a length greater than or equal to offset + count.
|
/// See https://esotericsoftware.com/spine-runtime-skeletons#World-transforms World transforms in the Spine
|
||||||
|
/// Runtimes Guide.
|
||||||
|
/// @param start The index of the first vertices value to transform. Each vertex has 2 values, x and y.
|
||||||
|
/// @param count The number of world vertex values to output. Must be <= WorldVerticesLength - start.
|
||||||
|
/// @param worldVertices The output world vertices. Must have a length >= offset + count * stride / 2.
|
||||||
/// @param offset The worldVertices index to begin writing values.
|
/// @param offset The worldVertices index to begin writing values.
|
||||||
/// @param stride The number of worldVertices entries between the value pairs written.
|
/// @param stride The number of worldVertices entries between the value pairs written.
|
||||||
virtual void computeWorldVertices(Skeleton &skeleton, Slot &slot, size_t start, size_t count, float *worldVertices, size_t offset,
|
virtual void computeWorldVertices(Skeleton &skeleton, Slot &slot, size_t start, size_t count, float *worldVertices, size_t offset,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user