mirror of
https://github.com/hyprwm/hyprlock.git
synced 2025-12-28 12:50:04 +01:00
nix: add hyprwayland-scanner dep flake.lock: update --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
22 lines
No EOL
506 B
C++
22 lines
No EOL
506 B
C++
#pragma once
|
|
|
|
#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; |