Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


OpenGL Anyone Know how to put Nehe's OpenGL framework in a Child Window??

This topic is 6054 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi Dudes, Need some help putting Nehes Windows OpenGL framework in a Child Window...anyone know if there is any code on the web with it in?? Cheers Adam

Share this post

Link to post
Share on other sites
Hey there,

I''ve never done any work with child and sibling windows so I don''t know if this will work or not.

Baically what you are doing with OpenGL is rendering to a Device Context bound to the window. So all you should need to do is get an HDC of the child window and then attach the rendering context to that HDC using wglMakeCurrent().

Be sure to set the proper pixel format for the hDC.

Hope that helps a bit, and anyone correct me if I''m wrong.


Stupid divide by zero error. I should be allowed to tear a hole in the fabric of time and space if I want!

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!