diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2023-06-19 12:05:11 -0400 |
---|---|---|
committer | Alexander Orzechowski <alex@ozal.ski> | 2023-06-19 12:25:38 -0400 |
commit | 6bd44c4fcd45aa64a757f8797db78252d2fee3b4 (patch) | |
tree | 2b7f4c3e51f00e3234e73435b02ba51b24be884d /include/wlr/render | |
parent | 64c0272f818523537fe8e133d97539e50fdfec64 (diff) |
renderer: Introduce wlr_scale_filter_mode
Diffstat (limited to 'include/wlr/render')
-rw-r--r-- | include/wlr/render/wlr_renderer.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/wlr/render/wlr_renderer.h b/include/wlr/render/wlr_renderer.h index a150930c..a7d0241e 100644 --- a/include/wlr/render/wlr_renderer.h +++ b/include/wlr/render/wlr_renderer.h @@ -196,6 +196,16 @@ enum wlr_render_blend_mode { WLR_RENDER_BLEND_MODE_NONE, }; +/** + * Filter modes. + */ +enum wlr_scale_filter_mode { + /* bilinear texture filtering (default) */ + WLR_SCALE_FILTER_BILINEAR, + /* nearest texture filtering */ + WLR_SCALE_FILTER_NEAREST, +}; + struct wlr_render_texture_options { /* Source texture */ struct wlr_texture *texture; @@ -209,6 +219,8 @@ struct wlr_render_texture_options { const pixman_region32_t *clip; /* Transform applied to the source texture */ enum wl_output_transform transform; + /* Filtering */ + enum wlr_scale_filter_mode filter_mode; }; /** |