hyprlock/src/core/Egl.hpp
Staz Modrzynski 2ae79757d5
core: Add missing destructors causing segfaults (#199)
Co-authored-by: Staz M <staz@staz.io>
2024-03-17 15:44:37 +00:00

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;