Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.