mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
examples: remove dependency on wlr_egl from clients
The specified clients in this commit used to rely on wlr_egl and some of its related functions in order to render surfaces. This is no longer the case as of this commit.
This commit is contained in:
parent
50b9921642
commit
34e7f69d69
11 changed files with 212 additions and 66 deletions
19
examples/egl_common.h
Normal file
19
examples/egl_common.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef _EGL_COMMON_H
|
||||
#define _EGL_COMMON_H
|
||||
#endif
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <wayland-client.h>
|
||||
|
||||
#include <EGL/egl.h>
|
||||
#include <EGL/eglext.h>
|
||||
|
||||
extern EGLDisplay egl_display;
|
||||
extern EGLConfig egl_config;
|
||||
extern EGLContext egl_context;
|
||||
|
||||
extern PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC eglCreatePlatformWindowSurfaceEXT;
|
||||
|
||||
bool egl_init(struct wl_display *display);
|
||||
|
||||
void egl_finish(void);
|
||||
Loading…
Add table
Add a link
Reference in a new issue