public void DrawTriangle(CCV3F_C4B[] corners, float borderThickness, CCColor4B borderColor) { DrawNode.DrawTriangleList(corners); if (borderThickness > 0) { for (int i = 0; i < 3; i++) { var p1 = corners[i].Vertices; var p2 = corners[(i + 1) % 3].Vertices; DrawNode.DrawLine(new CCPoint(p1.X, p1.Y), new CCPoint(p2.X, p2.Y), borderThickness, borderColor); } } }