mirror of
https://github.com/hyprwm/hyprlock.git
synced 2024-11-17 07:15:57 +01:00
2ae79757d5
Co-authored-by: Staz M <staz@staz.io>
23 lines
No EOL
534 B
C++
23 lines
No EOL
534 B
C++
#pragma once
|
|
|
|
#include <wayland-client.h>
|
|
#include <memory>
|
|
|
|
#include <EGL/egl.h>
|
|
#include <EGL/eglext.h>
|
|
|
|
class CEGL {
|
|
public:
|
|
CEGL(wl_display*);
|
|
~CEGL();
|
|
|
|
EGLDisplay eglDisplay;
|
|
EGLConfig eglConfig;
|
|
EGLContext eglContext;
|
|
|
|
PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC eglCreatePlatformWindowSurfaceEXT;
|
|
|
|
void makeCurrent(EGLSurface surf);
|
|
};
|
|
|
|
inline std::unique_ptr<CEGL> g_pEGL; |