Forum Discussion
DoZo1971
12 years agoExplorer
OculusSDK0.3.1 Preview, OpenGL and wxWidgets
Tadaa... just to confirm: some OpenGL Oculus Rift rendering inside a wxGLCanvas.
No real surprises here.
@jherico: note that the vertical positioning of the image is correct here, opposed to GLFW.
These are the handles I pass on to ovrHmd_ConfigureRendering:
So it takes the handles to the wxGLCanvas, which would be undecorated. Opposed to the handles to the window that we pass to GLFW, which is decorated. Maybe?
Thanks,
Daniel Dekkers
No real surprises here.
@jherico: note that the vertical positioning of the image is correct here, opposed to GLFW.
These are the handles I pass on to ovrHmd_ConfigureRendering:
m_OpenGLContext->GetGLRC() // This is the OpenGL context (wxGLContext) that we store as a member in the canvas.
(HWND) GetHandle()
GetDC((HWND) GetHandle())
So it takes the handles to the wxGLCanvas, which would be undecorated. Opposed to the handles to the window that we pass to GLFW, which is decorated. Maybe?
Thanks,
Daniel Dekkers
2 Replies
- cyberealityGrand ChampionNice. It works!
- DoZo1971ExplorerYeah. Good news is no news. ;-)
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 4 years ago