mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-06 19:45:33 +00:00
24 lines
643 B
C++
24 lines
643 B
C++
// SPDX-FileCopyrightText: 2019-2024 Connor McLaughlin <stenzek@gmail.com>
|
|
// SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)
|
|
|
|
#pragma once
|
|
#include "context_egl.h"
|
|
|
|
namespace GL {
|
|
|
|
class ContextEGLX11 final : public ContextEGL
|
|
{
|
|
public:
|
|
ContextEGLX11(const WindowInfo& wi);
|
|
~ContextEGLX11() override;
|
|
|
|
static std::unique_ptr<Context> Create(const WindowInfo& wi, std::span<const Version> versions_to_try, Error* error);
|
|
|
|
std::unique_ptr<Context> CreateSharedContext(const WindowInfo& wi, Error* error) override;
|
|
|
|
protected:
|
|
EGLDisplay GetPlatformDisplay(const EGLAttrib* attribs, Error* error) override;
|
|
};
|
|
|
|
} // namespace GL
|