Skip to content

Commit

Permalink
[monogame] Expose clipper used by SkeletonRenderer for use with Skele…
Browse files Browse the repository at this point in the history
…ton.GetBounds(), see #2515. Port of commit 2049bed.
  • Loading branch information
HaraldCsaszar committed May 2, 2024
1 parent d3ceb21 commit 59116b4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spine-monogame/spine-monogame/src/SkeletonRenderer.cs
Expand Up @@ -41,6 +41,11 @@ public class SkeletonRenderer {
private const int BR = 3;

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;
MeshBatcher batcher;
public MeshBatcher Batcher { get { return batcher; } }
Expand Down

0 comments on commit 59116b4

Please sign in to comment.