Create OpenGL Context only with XCB

2019-04-10 04:13发布

I want to create OpenGL Context only with XCB without GLX and Xlib. Could you tell me that might be happened. Thanks a lot.

标签: opengl c++14 xcb
1条回答
forever°为你锁心
2楼-- · 2019-04-10 05:17

I want to create OpenGL Context only with XCB without GLX and Xlib.

You can't. Period. You need GLX, because that's how the X11 does OpenGL. And GLX is written against Xlib. The best you could do is use the Xcb GLX module to implement a purely indirect GLX context; limits you to OpenGL-2.1 though and everything has to pass through the X11 server, instead of having a direct context that talks directly to the GPU.

查看更多
登录 后发表回答