OpenGL in MDI in .NET

Started by
0 comments, last by Dave Blake 15 years, 7 months ago
Hi all, I want to have a MDI application with OpenGL enabled on child forms. additionally each form can have controls than OpenGL. I have tried Nehe's lessons but all of them have used an infinite loop to call glDraw function which can not be done in MDI application as there may be multiple forms opened simultaneously. I need a replacement of OnDraw function of CView class in VC++. I have tried to overried OnPaint event of Form but it is not usefull as image disappears if you resize window etc.
Advertisement
You might find this useful
http://www.codeguru.com/cpp/g-m/opengl/article.php/c2689/

The trick is to deactivate the child window rendering context immediately after creating it, then only activeate it while rendering or adjusting the viewport while resizing.

This topic is closed to new replies.

Advertisement