func SetWindow(wnd *glfw.Window) { nswnd := wnd.GetNSGLContext() bgfx.SetCocoaWindow(uintptr(unsafe.Pointer(nswnd))) }