Sign in to follow this  
Kashif Bashir Bhatti

OpenGL OpenGL in MDI in .NET

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this