public static final void draw(Shape shape, ShapeFill fill) {
        float points[] = shape.getPoints();
        
        Texture t = TextureImpl.getLastBind();
        TextureImpl.bindNone();

        float center[] = shape.getCenter();
        GL.glBegin(SGL.GL_LINE_STRIP);
        for(int i=0;i<points.length;i+=2) {
            fill.colorAt(shape, points[i], points[i + 1]).bind();
            Vector2f offset = fill.getOffsetAt(shape, points[i], points[i + 1]);
            GL.glVertex2f(points[i] + offset.x, points[i + 1] + offset.y);
        }
        
        if (shape.closed()) {
	        fill.colorAt(shape, points[0], points[1]).bind();
	        Vector2f offset = fill.getOffsetAt(shape, points[0], points[1]);
	        GL.glVertex2f(points[0] + offset.x, points[1] + offset.y);
        }
        GL.glEnd();
        
        if (t == null) {
        	TextureImpl.bindNone();
        } else {
        	t.bind();
        }
    }
public static final void draw ( Shape shape , ShapeFill fill ) { float points [ ] = shape . getPoints ( ) ; Texture t = TextureImpl . getLastBind ( ) ; TextureImpl . bindNone ( ) ; float center [ ] = shape . getCenter ( ) ; GL . glBegin ( SGL . GL_LINE_STRIP ) ; for ( int i = 0 ; i < points . length ; i += 2 ) { fill . colorAt ( shape , points [ i ] , points [ i + 1 ] ) . bind ( ) ; Vector2f offset = fill . getOffsetAt ( shape , points [ i ] , points [ i + 1 ] ) ; GL . glVertex2f ( points [ i ] + offset . x , points [ i + 1 ] + offset . y ) ; } if ( shape . closed ( ) ) { fill . colorAt ( shape , points [ 0 ] , points [ 1 ] ) . bind ( ) ; Vector2f offset = fill . getOffsetAt ( shape , points [ 0 ] , points [ 1 ] ) ; GL . glVertex2f ( points [ 0 ] + offset . x , points [ 1 ] + offset . y ) ; } GL . glEnd ( ) ; if ( t == null ) { TextureImpl . bindNone ( ) ; } else { t . bind ( ) ; } }
Draw the outline of the given shape.  Only the vertices are set.
The colour has to be set independently of this method.

@param shape The shape to draw.
@param fill The fill to apply