mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-22 08:15:39 +00:00
27 lines
698 B
C++
27 lines
698 B
C++
#pragma once
|
|
#include "context_egl.h"
|
|
#include <wayland-egl.h>
|
|
|
|
namespace GL {
|
|
|
|
class ContextEGLWayland final : public ContextEGL
|
|
{
|
|
public:
|
|
ContextEGLWayland(const WindowInfo& wi);
|
|
~ContextEGLWayland() override;
|
|
|
|
static std::unique_ptr<Context> Create(const WindowInfo& wi, const Version* versions_to_try,
|
|
size_t num_versions_to_try);
|
|
|
|
std::unique_ptr<Context> CreateSharedContext(const WindowInfo& wi) override;
|
|
void ResizeSurface(u32 new_surface_width = 0, u32 new_surface_height = 0) override;
|
|
|
|
protected:
|
|
EGLNativeWindowType GetNativeWindow(EGLConfig config) override;
|
|
|
|
private:
|
|
wl_egl_window* m_wl_window = nullptr;
|
|
};
|
|
|
|
} // namespace GL
|