Render IMGUI controls on top of GlfwOcctView from Samples

The base code is taken from the OCCT Samples and I want to add the IMGUI controls on top of it. I get some weird behaviour(continuous flickering) as you can see here: .

I tried setting:

graphicDriver->SetBuffersNoSwap(true);

, but the result generated displays only the IMGUI elements.

 

Is there any workaround to be able to render both IMGUI and the OCCT scene in the same GLFW window at the same time? 

gkv311 n's picture

Try searching imgui through the forum - this scenario has been already discussed at some topic as far as I remember.

Claudia-Roxana Budimir's picture

I actually already tried implementing the solution discussed in a previous post but the result is not reproducible in my case even if my code is similar to theirs. The proposed workaround in that particular thread was disabling the graphicDriver buffer swapping, which produced a different output than the expected one. But thanks a lot for the input, I will try also looking for other posts related to this topic. Have a nice day!