summaryrefslogtreecommitdiff
path: root/include/sway/desktop/fx_renderer/fx_texture.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway/desktop/fx_renderer/fx_texture.h')
-rw-r--r--include/sway/desktop/fx_renderer/fx_texture.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/sway/desktop/fx_renderer/fx_texture.h b/include/sway/desktop/fx_renderer/fx_texture.h
new file mode 100644
index 00000000..0c375913
--- /dev/null
+++ b/include/sway/desktop/fx_renderer/fx_texture.h
@@ -0,0 +1,18 @@
+#ifndef FX_TEXTURE_H
+#define FX_TEXTURE_H
+
+#include <GLES2/gl2.h>
+#include <stdbool.h>
+#include <wlr/render/wlr_texture.h>
+
+struct fx_texture {
+ GLuint target;
+ GLuint id;
+ bool has_alpha;
+ int width;
+ int height;
+};
+
+struct fx_texture fx_texture_from_wlr_texture(struct wlr_texture* tex);
+
+#endif