6 /** Make an X window fit for GL. You have to manage the X window yourself! */
7 class GLXBackend : public GLBackend {
9 /** Create a GL window class and find an appropriate visual */
10 GLXBackend() : display(NULL), context(None) {}
11 /** Fre all resources */
12 virtual ~GLXBackend();
14 /** Initialize GL backend, choose visual configuration and return the ID */
15 virtual VisualID initialize(Display *display);
17 /** create a GL context for the given window */
18 virtual void createContext(Window window);
20 /** Swap back and front buffers */
21 virtual void swapBuffers() const;
23 /** Set the swap interval */
24 virtual void setSwapInterval(int i) const;
31 PFNGLXSWAPINTERVALMESAPROC funSwapIntervalMesa;
32 PFNGLXSWAPINTERVALEXTPROC funSwapIntervalExt;