Forráskód Böngészése

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

Harald Csaszar 1 éve
szülő
commit
ad82b56425
1 módosított fájl, 5 hozzáadás és 0 törlés
  1. 5 0
      spine-monogame/spine-monogame/src/SkeletonRenderer.cs

+ 5 - 0
spine-monogame/spine-monogame/src/SkeletonRenderer.cs

@@ -41,6 +41,11 @@ namespace Spine {
 		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; } }