hyprlock/src/core/Egl.hpp

22 lines
521 B
C++
Raw Normal View History

2024-02-19 00:08:03 +01:00
#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;