summaryrefslogtreecommitdiff
path: root/include/sway/desktop/fx_renderer/fx_stencilbuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway/desktop/fx_renderer/fx_stencilbuffer.h')
-rw-r--r--include/sway/desktop/fx_renderer/fx_stencilbuffer.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/sway/desktop/fx_renderer/fx_stencilbuffer.h b/include/sway/desktop/fx_renderer/fx_stencilbuffer.h
new file mode 100644
index 00000000..157c0282
--- /dev/null
+++ b/include/sway/desktop/fx_renderer/fx_stencilbuffer.h
@@ -0,0 +1,18 @@
+#ifndef FX_STENCILBUFFER_H
+#define FX_STENCILBUFFER_H
+
+#include <GLES2/gl2.h>
+#include <stdbool.h>
+#include <wlr/render/wlr_texture.h>
+
+struct fx_stencilbuffer {
+ GLuint rb;
+ int width;
+ int height;
+};
+
+struct fx_stencilbuffer fx_stencilbuffer_create();
+
+void fx_stencilbuffer_release(struct fx_stencilbuffer *stencil_buffer);
+
+#endif