private void RenderEditableVertices() { if (_selectedPolygon == null) { return; } for (int i = 0; i < _selectedPolygon.Vertices.Count; i++) { GLUtil.DrawCircle(_selectedPolygon.Vertices[i], 15, new Color(0, 0, 0, 1)); } }
private void RenderEditableVertices() { if (_selectedPolygon == null) { return; } for (int i = 0; i < _selectedPolygon.Vertices.Count; i++) { if (i == _selectedVertexIndex) { GLUtil.DrawFilledCircle(_selectedPolygon.Vertices[i], VertexEditRadius - 1, new Color(1, 1, 0, 1)); GLUtil.DrawCircle(_selectedPolygon.Vertices[i], VertexEditRadius, new Color(0, 0, 0, 1)); } else { GLUtil.DrawFilledCircle(_selectedPolygon.Vertices[i], VertexEditRadius - 1, new Color(1, 1, 1, 1)); GLUtil.DrawCircle(_selectedPolygon.Vertices[i], VertexEditRadius, new Color(0, 0, 0, 1)); } } }