aboutsummaryrefslogtreecommitdiff
path: root/include/render.h
diff options
context:
space:
mode:
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