PDA

View Full Version : OpenGL display in a dialog bar



Sangee
06-29-2006, 12:14 AM
Hi,

I have created a doc/view archictecture SDI program using MFC. I have rendering the OpenGL scene in that CView. Apart from this, I am displaying dialog bar to the left of the screen. In that display bar, i need to keep a small OpenGL display. I tried. But the CView is getting affected. Nothing is seen on the CView. The small OpenGL display on the dialog bar and the OpenGL display over the CView should be independent. Both should have the facilities to access them separately. How can i achieve it.? Help me, please..

Thank you in advance,
Sangeetha.

k_szczech
06-29-2006, 02:50 AM
If I'm right each window should have separate OpenGL context. Before rendering you should make a context current.