From 6a6bb703bce2d844175950ede4bda5d06dc5a8ae Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 17 Oct 2022 02:55:59 +0200 Subject: wip intel --- include/window_texture.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'include/window_texture.h') diff --git a/include/window_texture.h b/include/window_texture.h index db64191..3e7bb63 100644 --- a/include/window_texture.h +++ b/include/window_texture.h @@ -1,20 +1,22 @@ #ifndef WINDOW_TEXTURE_H #define WINDOW_TEXTURE_H -#include "gl.h" +#include "egl.h" typedef struct { Display *display; Window window; Pixmap pixmap; - GLXPixmap glx_pixmap; unsigned int texture_id; + unsigned int target_texture_id; + int texture_width; + int texture_height; int redirected; - gsr_gl *gl; + gsr_egl *egl; } WindowTexture; /* Returns 0 on success */ -int window_texture_init(WindowTexture *window_texture, Display *display, Window window, gsr_gl *gl); +int window_texture_init(WindowTexture *window_texture, Display *display, Window window, gsr_egl *egl); void window_texture_deinit(WindowTexture *self); /* -- cgit v1.2.3