Get the opengl texture associated with an X11 window (egl version, recommended)
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-08-19 19:59:42 +02:00
LICENSE Initial commit, should work 2023-07-29 05:52:52 +02:00
README.md Add define to use glEGLImageTargetTexture2DOES 2024-08-19 19:46:15 +02:00
window_texture.c comments 2024-08-19 19:59:42 +02:00
window_texture.h comments 2024-08-19 19:59:42 +02:00

Utility to get the opengl texture associated with a x11 window.
It is recommended to use this over https://git.dec05eba.com/window-texture/about/ since EGL window textures are more reliable than GLX window texture, especially on nvidia. For example when you use a compositor such as picom you cant get window textures on nvidia (only one application gets access to window textures at a time). However with EGL there is no such issue (limitation) on nvidia (nor amd and intel).

Dependencies

gl and egl (both are part of libglvnd), x11, xcomposite