public virtual void renderCurve(Curve curve) { renderCurve(curve, defaultColor, 1f); }
public virtual void renderCurve(Curve curve, Color color) { renderCurve(curve, color, 1f); }
public virtual void renderCurve(Curve curve, float lineWidth) { renderCurve(curve, defaultColor, lineWidth); }
// Renders a curve with the given curve, color, and line width. NOTE: Not implemented yet, has some memory issues, do not use. Yet public virtual void renderCurve(Curve curve, Color color, float lineWidth) { throw new Exception("Not implemented, to costly..."); /* // Variables Point3[] endpoints= curve.getEndpoints(); beginClip(curve.bounds); GL.Disable(EnableCap.Texture2D); GL.LineWidth(lineWidth); GL.Begin(PrimitiveType.Lines); { GL.Color4(color.red, color.green, color.blue, color.alpha); for(int i= 0; i< endpoints.Length; i++) { if(i== endpoints.Length-1) break; GL.Vertex3(endpoints[i].x, endpoints[i].y, endpoints[i].z); GL.Vertex3(endpoints[i+1].x, endpoints[i+1].y, endpoints[i+1].z); } } GL.End(); GL.LineWidth(1f); GL.Enable(EnableCap.Texture2D); renderEndpoints(endpoints, color, lineWidth); endClip(); */ }