aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-03-21 08:50:59 +0100
committeremersion <contact@emersion.fr>2018-03-21 08:50:59 +0100
commitcc5ef1d2ffab1d7c0caaf1aa606637791ddf5ada (patch)
tree27198032f2906666e3b99a1c72905a7daf7e73b0 /include
parent3581573bdcbe3c905eae83af53cccbcdd52edad2 (diff)
render/gles2: move list of supported WL formats to pixel_format.c
Diffstat (limited to 'include')
-rw-r--r--include/render/gles2.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/render/gles2.h b/include/render/gles2.h
index 9ff09065..43a8d648 100644
--- a/include/render/gles2.h
+++ b/include/render/gles2.h
@@ -21,6 +21,7 @@ struct gles2_pixel_format {
uint32_t wl_format;
GLint gl_format, gl_type;
int depth, bpp;
+ bool has_alpha;
};
struct wlr_gles2_renderer {
@@ -48,6 +49,7 @@ struct wlr_gles2_texture {
};
const struct gles2_pixel_format *gles2_format_from_wl(enum wl_shm_format fmt);
+const enum wl_shm_format *gles2_formats(size_t *len);
struct wlr_texture *gles2_texture_create();
struct wlr_gles2_texture *gles2_get_texture(struct wlr_texture *wlr_texture);