GLX and WGL/Windows
Some of the WGL functions and Windows functions are more or less analogous to GLX X Window functions. The following list shows GLX functions and their corresponding WGL/Windows functions, if available.
GLX/Xlib function | WGL/Windows function |
---|---|
glXChooseVisual | ChoosePixelFormat |
glXCopyContext | wglCopyContext |
glXCreateContext | wglCreateContext, wglShareLists |
glXCreateGLXPixmap | CreateDIBitmap / CreateDIBSection |
glXDestroyContext | wglDeleteContext |
glXDestroyGLXPixmap | DeleteObject |
glXGetConfig | DescribePixelFormat |
glXGetCurrentContext | wglGetCurrentContext |
glXGetCurrentDrawable | wglGetCurrentDC |
glXGetProcAddress | wglGetProcAddress |
glXIsDirect | Not applicable. |
glXMakeCurrent | wglMakeCurrent |
glXQueryExtension | GetVersion |
glXQueryVersion | GetVersion |
glXSwapBuffers | SwapBuffers |
glXUseXFont | wglUseFontBitmaps / wglUseFontOutlines |
glXWaitGL | Not applicable. |
glXWaitX | Not applicable. |
XCreateWindow | CreateWindow / CreateWindowEx and GetDC / BeginPaint |
XGetVisualInfo | GetPixelFormat |
XSync | GdiFlush |
Not applicable. | SetPixelFormat |
For more information, refer to the Porting Guide.