stuff-from-scratch/src/ui/windows/ui_interfaces/wayland/WaylandEglWindowInterface.h
2023-01-17 10:13:25 +00:00

25 lines
465 B
C++

#pragma once
#include "WaylandEglInterface.h"
#include <EGL/egl.h>
struct wl_egl_window;
struct wl_surface;
class WaylandEglWindowInterface
{
public:
WaylandEglWindowInterface(WaylandEglInterface* eglInterface);
void initialize(wl_surface* surface, int width, int height);
void beforePaint();
void afterPaint();
private:
wl_egl_window* mEglWindow{nullptr};
EGLSurface mEglSurface{nullptr};
WaylandEglInterface* mEglInterface;
};