ovrHmd_AttachToWindow is not working in Qt's GLWidget.
I wanted to send the output directly to the oculus using the ovrHmd_AttachToWindow function as follows:
unfortunately, it is not working. Also, there is no error. Just it is not sent directly to the Oculus. The window is appearing there, and I should move the windows to oculus manually and make it full screen. I am using the extended display mode.
if (!ovrHmd_AttachToWindow(hmd, (void*) Base::winId(), 0, 0)) {
dprintf("HMD: Could not attach to window!\n");
return;
}
dprintf("HMD: connected to window with id HWND=%i", Base::winId());unfortunately, it is not working. Also, there is no error. Just it is not sent directly to the Oculus. The window is appearing there, and I should move the windows to oculus manually and make it full screen. I am using the extended display mode.
