mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
Refactor EGL handling
This commit is contained in:
parent
4aaf76cb66
commit
c24351681f
26 changed files with 156 additions and 98 deletions
|
|
@ -7,6 +7,8 @@
|
|||
#include <GLES2/gl2ext.h>
|
||||
#include <EGL/egl.h>
|
||||
#include <EGL/eglext.h>
|
||||
#include <wlr/egl.h>
|
||||
#include <wlr/backend.h>
|
||||
#include <wlr/render.h>
|
||||
#include <wlr/util/log.h>
|
||||
|
||||
|
|
@ -19,8 +21,14 @@ struct pixel_format {
|
|||
GLuint *shader;
|
||||
};
|
||||
|
||||
struct wlr_renderer_state {
|
||||
struct wlr_renderer *renderer;
|
||||
struct wlr_egl *egl;
|
||||
};
|
||||
|
||||
struct wlr_texture_state {
|
||||
struct wlr_texture *wlr_texture;
|
||||
struct wlr_egl *egl;
|
||||
GLuint tex_id;
|
||||
const struct pixel_format *pixel_format;
|
||||
EGLImageKHR image;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue