Skip to main content
Up and Coming
May 6, 2014

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:

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

    Inspiring
    May 7, 2014
    Nice. It works!
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    DoZo1971Author
    Up and Coming
    May 7, 2014
    Yeah. Good news is no news. ;-)