diff options
author | 2023-11-11 21:40:07 +0100 | |
---|---|---|
committer | 2023-11-11 21:40:07 +0100 | |
commit | 178521e8121d6f54dbaf2d0dbeb3892f7555b96a (patch) | |
tree | 92e09caf7fe952a54513424027c7935ec1d9cbed /renderer/src | |
parent | ef015a5e72802c059784e74d611f351df75403c0 (diff) | |
parent | 9d560c813566ba04be3e23ae1b14861365485b57 (diff) | |
download | iced-178521e8121d6f54dbaf2d0dbeb3892f7555b96a.tar.gz iced-178521e8121d6f54dbaf2d0dbeb3892f7555b96a.tar.bz2 iced-178521e8121d6f54dbaf2d0dbeb3892f7555b96a.zip |
Merge pull request #1894 from Remmirad/texture_filtering
Add texture filtering options
Diffstat (limited to 'renderer/src')
-rw-r--r-- | renderer/src/lib.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/renderer/src/lib.rs b/renderer/src/lib.rs index cc81c6e2..43f9794b 100644 --- a/renderer/src/lib.rs +++ b/renderer/src/lib.rs @@ -214,8 +214,13 @@ impl<T> crate::core::image::Renderer for Renderer<T> { delegate!(self, renderer, renderer.dimensions(handle)) } - fn draw(&mut self, handle: crate::core::image::Handle, bounds: Rectangle) { - delegate!(self, renderer, renderer.draw(handle, bounds)); + fn draw( + &mut self, + handle: crate::core::image::Handle, + filter_method: crate::core::image::FilterMethod, + bounds: Rectangle, + ) { + delegate!(self, renderer, renderer.draw(handle, filter_method, bounds)); } } |