2014-08-09 10:31:27 -04:00
|
|
|
// Copyright 2014 Dolphin Emulator Project
|
2015-05-18 01:08:10 +02:00
|
|
|
// Licensed under GPLv2+
|
2014-08-09 10:31:27 -04:00
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <X11/Xlib.h>
|
|
|
|
|
2015-09-19 04:40:00 +12:00
|
|
|
#include "Common/GL/GLInterface/EGL.h"
|
2018-10-03 23:02:45 +10:00
|
|
|
#include "Common/GL/GLX11Window.h"
|
2014-08-09 10:31:27 -04:00
|
|
|
|
2018-10-03 23:02:45 +10:00
|
|
|
class GLContextEGLX11 : public GLContextEGL
|
2014-08-09 10:31:27 -04:00
|
|
|
{
|
2018-10-03 23:02:45 +10:00
|
|
|
public:
|
|
|
|
~GLContextEGLX11() override;
|
2016-06-24 10:43:46 +02:00
|
|
|
|
2018-10-03 23:03:19 +10:00
|
|
|
void Update() override;
|
|
|
|
|
2014-08-09 10:31:27 -04:00
|
|
|
protected:
|
2018-10-03 23:02:45 +10:00
|
|
|
EGLDisplay OpenEGLDisplay() override;
|
|
|
|
EGLNativeWindowType GetEGLNativeWindow(EGLConfig config) override;
|
|
|
|
|
2018-10-03 23:03:19 +10:00
|
|
|
std::unique_ptr<GLX11Window> m_render_window;
|
2014-08-09 10:31:27 -04:00
|
|
|
};
|