PDA

View Full Version : GL in MDI



03-25-2003, 01:33 PM
Can someone help me! How do I implement a simple GL code in a MDI app???
Thankx!

shinpaughp
03-25-2003, 11:27 PM
You have to create and make current a valid OpenGL context. For MS Windows use
ChoosePixelFormat
SetPixelFormat
wglCreateContext
wglMakeCurrent

You can look them all up in VC or VS docs or at msdn.microsoft.com (http://msdn.microsoft.com)