aboutsummaryrefslogtreecommitdiff
path: root/include/render.h
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-06-08 11:30:38 -0400
committerDrew DeVault <sir@cmpwn.com>2017-06-08 11:30:38 -0400
commit211488131f675b3f3c59607fb1336b69148023d2 (patch)
treede6bfb2358ccf54f76277b9ffc2773201e8f0f62 /include/render.h
parentfc1dc1b5b0e912fd060f257a0c1f6d5b38d6bb75 (diff)
Add wlr_shader to wlr-render
Diffstat (limited to 'include/render.h')
-rw-r--r--include/render.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/render.h b/include/render.h
new file mode 100644
index 00000000..fd1ea024
--- /dev/null
+++ b/include/render.h
@@ -0,0 +1,28 @@
+#ifndef _WLR_RENDER_INTERNAL_H
+#define _WLR_RENDER_INTERNAL_H
+#include <stdint.h>
+#include <wlr/render.h>
+#include <wayland-util.h>
+#include <GLES3/gl3.h>
+#include <stdbool.h>
+
+struct wlr_texture {
+ GLuint tex_id;
+ uint32_t format;
+ int width, height;
+};
+
+struct wlr_shader {
+ bool valid;
+ uint32_t format;
+ GLuint vert;
+ GLuint program;
+ struct wl_list link;
+};
+
+struct wlr_renderer {
+ struct wlr_shader *shader;
+ // TODO: EGL stuff
+};
+
+#endif