aboutsummaryrefslogtreecommitdiff
path: root/include/window_texture.h
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-10-17 02:55:59 +0200
committerdec05eba <dec05eba@protonmail.com>2022-11-30 19:36:33 +0100
commit6a6bb703bce2d844175950ede4bda5d06dc5a8ae (patch)
tree0e48877816f4596e506867b6b4f89144a0374143 /include/window_texture.h
parenta7e0dbd83381377bd05a3fa988511d3713996370 (diff)
wip intel
Diffstat (limited to 'include/window_texture.h')
-rw-r--r--include/window_texture.h10
1 files changed, 6 insertions, 4 deletions
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);
/*