Bläddra i källkod

[libgdx] Expose clipper used by SkeletonRenderer for use with Skeleton.getBounds(), see #2515

Mario Zechner 1 år sedan
förälder
incheckning
2049bed11e

+ 6 - 0
spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonRenderer.java

@@ -357,4 +357,10 @@ public class SkeletonRenderer {
 		pmaColors = pmaColorsAndBlendModes;
 		pmaColors = pmaColorsAndBlendModes;
 		pmaBlendModes = pmaColorsAndBlendModes;
 		pmaBlendModes = pmaColorsAndBlendModes;
 	}
 	}
+
+	/** Returns the {@link SkeletonClipping} used by this renderer for use with e.g.
+	 * {@link Skeleton#getBounds(com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, FloatArray, SkeletonClipping)} **/
+	public SkeletonClipping getSkeletonClipping () {
+		return clipper;
+	}
 }
 }