[monogame] Expose clipper used by SkeletonRenderer for use with Skeleton.GetBounds(), see #2515. Port of commit 2049bed.

This commit is contained in:
Harald Csaszar 2024-05-02 20:40:57 +02:00
parent 0a828099e9
commit ad82b56425

View File

@ -41,6 +41,11 @@ namespace Spine {
private const int BR = 3; private const int BR = 3;
SkeletonClipping clipper = new SkeletonClipping(); SkeletonClipping clipper = new SkeletonClipping();
/// <summary>Returns the <see cref="SkeletonClipping"/> used by this renderer for use with e.g.
/// <see cref="Skeleton.GetBounds(out float, out float, out float, out float, ref float[], SkeletonClipping)"/>
/// </summary>
public SkeletonClipping SkeletonClipping { get { return clipper; } }
GraphicsDevice device; GraphicsDevice device;
MeshBatcher batcher; MeshBatcher batcher;
public MeshBatcher Batcher { get { return batcher; } } public MeshBatcher Batcher { get { return batcher; } }