mirror of
https://github.com/hyprwm/hyprlock.git
synced 2025-12-24 10:50:03 +01:00
24 lines
568 B
C++
24 lines
568 B
C++
#pragma once
|
|
|
|
#include <EGL/egl.h>
|
|
#include <EGL/eglext.h>
|
|
|
|
#include "../defines.hpp"
|
|
|
|
class CEGL {
|
|
public:
|
|
CEGL(wl_display*);
|
|
~CEGL();
|
|
|
|
EGLDisplay eglDisplay;
|
|
EGLConfig eglConfig;
|
|
EGLContext eglContext;
|
|
|
|
PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC eglCreatePlatformWindowSurfaceEXT;
|
|
|
|
void makeCurrent(EGLSurface surf);
|
|
|
|
bool m_isNvidia = false;
|
|
};
|
|
|
|
inline UP<CEGL> g_pEGL;
|