6 /** Make an X window fit for GL. You have to manage the X window yourself! */
7 class EGLBackend : public GLBackend {
9 /** Create a GL window class and find an appropriate visual */
10 EGLBackend() : display(EGL_NO_DISPLAY), context(EGL_NO_CONTEXT) {}
11 /** Fre all resources */
12 virtual ~EGLBackend();
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;