1.create a wndclass
2.regist your wndclass and return a HWND
3.get a HDC from the HWND
4.set the pixelformat uesd by the HDC
5.get a HGLRC from the HDC
6.wglMakeCurrent(*HDC,*HGLRC)
opengl api use the HGLRC to communicate with the windows
MyHeader.h
GetHWND.c
En_DisOpengl.c
WndProc.c
Main.c
本文介绍如何在Windows平台上使用OpenGL进行窗口创建、设备上下文设置、像素格式选择等关键步骤,并提供了一个简单的示例程序。
2476





