aboutsummaryrefslogtreecommitdiff
path: root/include/render/gles2.h
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2018-06-24 18:16:42 -0400
committerTony Crisci <tony@dubstepdish.com>2018-06-24 18:16:42 -0400
commite8c0996b93c2d184d9d68ae4bee92dd4c469685c (patch)
treede9e94484a8f341836231af6d8a7daa3cd32d06e /include/render/gles2.h
parent28d718c0ddd8f2ba083be374f3d97e4836f615d9 (diff)
parente459fe0ec713ea65b35b966f9bb3c6c70c9504aa (diff)
Merge branch 'master' into cancel-grab-on-focus-change
Diffstat (limited to 'include/render/gles2.h')
-rw-r--r--include/render/gles2.h26
1 files changed, 21 insertions, 5 deletions
diff --git a/include/render/gles2.h b/include/render/gles2.h
index 99beff29..67d4e9f5 100644
--- a/include/render/gles2.h
+++ b/include/render/gles2.h
@@ -25,6 +25,14 @@ struct wlr_gles2_pixel_format {
bool has_alpha;
};
+struct wlr_gles2_tex_shader {
+ GLuint program;
+ GLint proj;
+ GLint invert_y;
+ GLint tex;
+ GLint alpha;
+};
+
struct wlr_gles2_renderer {
struct wlr_renderer wlr_renderer;
@@ -32,11 +40,19 @@ struct wlr_gles2_renderer {
const char *exts_str;
struct {
- GLuint quad;
- GLuint ellipse;
- GLuint tex_rgba;
- GLuint tex_rgbx;
- GLuint tex_ext;
+ struct {
+ GLuint program;
+ GLint proj;
+ GLint color;
+ } quad;
+ struct {
+ GLuint program;
+ GLint proj;
+ GLint color;
+ } ellipse;
+ struct wlr_gles2_tex_shader tex_rgba;
+ struct wlr_gles2_tex_shader tex_rgbx;
+ struct wlr_gles2_tex_shader tex_ext;
} shaders;
uint32_t viewport_width, viewport_height;