hyprlock/src/core/Egl.hpp
2024-02-18 23:08:03 +00:00

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;