I'm interested in adding additional 2D elements ( primarily text ) to my view. I want to add this using standard windows GDI. However, if I draw this on my own time, I get a flicker between when OpenCascade renders its scene and when I redraw my elements.
I see that there is a version of V3d_View::SetWindow that takes a callback function to be called after OpenCascade render its scene and before it swaps buffers.
I think this is what I want, but when I try using this version of SetWindow, not only does my callback not get called, but my window never even renders.
Has anyone had success with this version of SetWindow? Anyone have thoughs on what I might be doing wrong? Anyone have another approach I could take?