egui/egui_glow/src
Justin Jaffray 4fe5fa6c59
egui_glow: Add function to set the texture filter (#1041)
* Allow setting the scale filter for `glow` backend

This commit adds a `set_scale_filter` method to the `glow` painter so that
textures can be set to scale using nearest-neighbour scaling rather than
linear. This is useful for pixel art.

I wasn't entirely sure what kind of API you want for this kind of change so I
went with what seemed least intrusive, I don't mind doing something more
holistic if this isn't what you had in mind.

* Rename scale_filter -> texture_filter

* Store the TextureFilter directly

* PR link in changelog

* Use inter-doc links

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2022-01-06 17:09:53 +01:00
..
shader Clean up glsl code 2021-11-13 13:09:08 +01:00
epi_backend.rs Rename Texture to FontImage 2021-12-28 21:19:24 +01:00
lib.rs Rename Texture to FontImage 2021-12-28 21:19:24 +01:00
misc_util.rs egui_glow: Add function to set the texture filter (#1041) 2022-01-06 17:09:53 +01:00
painter.rs egui_glow: Add function to set the texture filter (#1041) 2022-01-06 17:09:53 +01:00
post_process.rs Clean up glow painter destroy code 2021-12-28 14:24:59 +01:00
shader_version.rs Improve egui_glow debug prints 2021-11-13 13:14:10 +01:00
vao_emulate.rs Make egui_glow painter to work on web (#868) 2021-11-03 19:17:07 +01:00