From 211488131f675b3f3c59607fb1336b69148023d2 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 8 Jun 2017 11:30:38 -0400 Subject: Add wlr_shader to wlr-render --- include/render.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 include/render.h (limited to 'include/render.h') 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 +#include +#include +#include +#include + +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 -- cgit v1.2.3