func draw(wnd *glfwui.Window, body ui.View) { w, h, ratio := wnd.Size() bnd.BeginFrame(w, h, ratio) bnd.Background(0, 0, w, h) drawView(body) bnd.EndFrame() }