mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
Added EGL interface for backends.
This commit is contained in:
parent
81998fdc98
commit
dbceaee9fa
5 changed files with 189 additions and 1 deletions
17
include/backend/egl.h
Normal file
17
include/backend/egl.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#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;
|
||||
};
|
||||
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue