wlroots-hyprland/include/backend/egl.h
nyorain 62b1421635 Make egl_error function part of the egl interface
The function may be useful for backends using egl.
2017-06-20 18:26:29 +02:00

18 lines
398 B
C

#ifndef WLR_BACKEND_EGL_H
#define WLR_BACKEND_EGL_H
#include <EGL/egl.h>
#include <stdbool.h>
struct wlr_egl {
EGLDisplay display;
EGLConfig config;
EGLContext context;
};
const char *egl_error(void);
bool wlr_egl_init(struct wlr_egl *egl, EGLenum platform, void *display);
void wlr_egl_free(struct wlr_egl *egl);
EGLSurface wlr_egl_create_surface(struct wlr_egl *egl, void *window);
#endif