aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/render/gles2.h36
1 files changed, 31 insertions, 5 deletions
diff --git a/include/render/gles2.h b/include/render/gles2.h
index 99beff29..c47751d1 100644
--- a/include/render/gles2.h
+++ b/include/render/gles2.h
@@ -32,11 +32,37 @@ 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 {
+ GLuint program;
+ GLint proj;
+ GLint invert_y;
+ GLint tex;
+ GLint alpha;
+ } tex_rgba;
+ struct {
+ GLuint program;
+ GLint proj;
+ GLint invert_y;
+ GLint tex;
+ GLint alpha;
+ } tex_rgbx;
+ struct {
+ GLuint program;
+ GLint proj;
+ GLint invert_y;
+ GLint tex;
+ GLint alpha;
+ } tex_ext;
} shaders;
uint32_t viewport_width, viewport_height;