def METHOD_NAME(center,radius,res=0.01,filled=True):
    """Draws a 2D circle with the given center, radius, and angular
    resolution.  If filled=true, it is drawn filled, otherwise, it is
    drawn as a wireframe."""
    numdivs = int(math.ceil(radius*math.pi*2/res))
    GL.glNormal3f(0,0,1)
    if filled:
        GL.glBegin(GL.GL_TRIANGLE_FAN)
        GL.glVertex2f(*center)
    else:
        GL.glBegin(GL.GL_LINE_STRIP)
    for i in range(numdivs+1):
        u = float(i)/float(numdivs)*math.pi*2
        GL.glVertex2f(center[0]+radius*math.cos(u),center[1]+radius*math.sin(u))
    GL.glEnd()