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