Add back X11 support to EGL

Refactor the EGL backend to provide a platform separation here, which is
better abstracted away than the old EGL/X11 implementation.
This commit is contained in:
Jasper St. Pierre
2014-08-09 10:31:27 -04:00
parent e39543b963
commit 271efb450c
8 changed files with 134 additions and 23 deletions

View File

@ -12,11 +12,15 @@
class cInterfaceEGL : public cInterfaceBase
{
private:
protected:
void DetectMode();
EGLSurface egl_surf;
EGLContext egl_ctx;
EGLDisplay egl_dpy;
virtual EGLDisplay OpenDisplay() = 0;
virtual EGLNativeWindowType InitializePlatform(EGLNativeWindowType host_window, EGLConfig config) = 0;
virtual void ShutdownPlatform() = 0;
public:
void SwapInterval(int Interval);
void Swap();