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

Started by
0 comments, last by adsshepherd 22 years ago
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
Advertisement
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!

This topic is closed to new replies.

Advertisement