Setup OpenGL on X11
问题 I have an Window identifier for X11 Window. I didn't setup this window, I just can get its id (and I suppose, visual id). How can I setup OpenGL context for this window? In particular, I want to use glXMakeCurrent , but this function receives Display and GLXContext objects. I can create context using glXCreateContext(display, vi, 0, GL_TRUE); but again I need in Display and XVisualInfo objects. 回答1: Setting up a OpenGL context on a X11 window is covered by one of my code examples (based upon