2014-08-09 10:31:27 -04:00
|
|
|
// Copyright 2014 Dolphin Emulator Project
|
2021-07-05 03:22:19 +02:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2014-08-09 10:31:27 -04:00
|
|
|
|
|
|
|
#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:03:33 +10:00
|
|
|
class GLContextEGLX11 final : 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
|
|
|
};
|