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