pharan 8 жил өмнө
parent
commit
a5eed13591

+ 3 - 3
spine-csharp/src/SkeletonClipping.cs

@@ -47,7 +47,7 @@ namespace Spine {
 		public ExposedList<int> ClippedTriangles { get { return clippedTriangles; } }
 		public ExposedList<int> ClippedTriangles { get { return clippedTriangles; } }
 		public ExposedList<float> ClippedUVs { get { return clippedUVs; } }
 		public ExposedList<float> ClippedUVs { get { return clippedUVs; } }
 
 
-		public bool IsClipping () { return clipAttachment != null; }
+		public bool IsClipping { get { return clipAttachment != null; } }
 
 
 		public int ClipStart (Slot slot, ClippingAttachment clip) {
 		public int ClipStart (Slot slot, ClippingAttachment clip) {
 			if (clipAttachment != null) return 0;
 			if (clipAttachment != null) return 0;
@@ -89,7 +89,7 @@ namespace Spine {
 			clippedVertices.Clear();
 			clippedVertices.Clear();
 			clippedUVs.Clear();
 			clippedUVs.Clear();
 			clippedTriangles.Clear();
 			clippedTriangles.Clear();
-			//outer: // libgdx
+			//outer:
 			for (int i = 0; i < trianglesLength; i += 3) {
 			for (int i = 0; i < trianglesLength; i += 3) {
 				int vertexOffset = triangles[i] << 1;
 				int vertexOffset = triangles[i] << 1;
 				float x1 = vertices[vertexOffset], y1 = vertices[vertexOffset + 1];
 				float x1 = vertices[vertexOffset], y1 = vertices[vertexOffset + 1];
@@ -258,7 +258,7 @@ namespace Spine {
 			return clipped;
 			return clipped;
 		}
 		}
 
 
-		public static void MakeClockwise (ExposedList<float> polygon) {
+		static void MakeClockwise (ExposedList<float> polygon) {
 			float[] vertices = polygon.Items;
 			float[] vertices = polygon.Items;
 			int verticeslength = polygon.Count;
 			int verticeslength = polygon.Count;
 
 

+ 1 - 1
spine-csharp/src/Triangulator.cs

@@ -31,7 +31,7 @@
 using System;
 using System;
 
 
 namespace Spine {
 namespace Spine {
-	public class Triangulator {
+	internal class Triangulator {
 		private readonly ExposedList<ExposedList<float>> convexPolygons = new ExposedList<ExposedList<float>>();
 		private readonly ExposedList<ExposedList<float>> convexPolygons = new ExposedList<ExposedList<float>>();
 		private readonly ExposedList<ExposedList<int>> convexPolygonsIndices = new ExposedList<ExposedList<int>>();
 		private readonly ExposedList<ExposedList<int>> convexPolygonsIndices = new ExposedList<ExposedList<int>>();