fun drawShape(gl: GL2?, s: Shape?, points: Boolean) { if (s is Circle) { RenderUtilities.drawCircle(gl, s as Circle?, points, true) } else if (s is java.awt.Rectangle) { RenderUtilities.drawRectangle(gl, s as java.awt.Rectangle?, points) } else if (s is java.awt.Polygon) { RenderUtilities.drawPolygon(gl, s as java.awt.Polygon?, points) } else if (s is javax.swing.text.Segment) { RenderUtilities.drawLineSegment(gl, s as javax.swing.text.Segment?, points) } else { } }
Draws the given shape .