duckstation

duckstation, but archived from the revision just before upstream changed it to a proprietary software project, this version is the libre one
git clone https://git.neptards.moe/u3shit/duckstation.git
Log | Files | Refs | README | LICENSE

opengl_context_egl_x11.h (767B)


      1 // SPDX-FileCopyrightText: 2019-2024 Connor McLaughlin <stenzek@gmail.com>
      2 // SPDX-License-Identifier: (GPL-3.0 OR PolyForm-Strict-1.0.0)
      3 
      4 #pragma once
      5 
      6 #include "opengl_context_egl.h"
      7 
      8 class OpenGLContextEGLX11 final : public OpenGLContextEGL
      9 {
     10 public:
     11   OpenGLContextEGLX11(const WindowInfo& wi);
     12   ~OpenGLContextEGLX11() override;
     13 
     14   static std::unique_ptr<OpenGLContext> Create(const WindowInfo& wi, std::span<const Version> versions_to_try,
     15                                                Error* error);
     16 
     17   std::unique_ptr<OpenGLContext> CreateSharedContext(const WindowInfo& wi, Error* error) override;
     18 
     19 protected:
     20   EGLDisplay GetPlatformDisplay(Error* error) override;
     21   EGLSurface CreatePlatformSurface(EGLConfig config, void* win, Error* error) override;
     22 };