egui/egui_glow
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
..
examples Hide console on windows for all examples in release builds (#1008) 2021-12-30 22:43:53 +01:00
src egui_glow: Add function to set the texture filter (#1041) 2022-01-06 17:09:53 +01:00
Cargo.toml Release 0.16.0 - Context menus and rich text 2021-12-29 12:07:05 +01:00
CHANGELOG.md egui_glow: Add function to set the texture filter (#1041) 2022-01-06 17:09:53 +01:00
README.md Add egui_glow backend as alternative to egui_glium (#685) 2021-10-18 23:13:32 +02:00

egui_glow

Latest version Documentation MIT Apache

This crates provides bindings between egui and glow which allows you to write GUI code using egui and compile it and run it natively, cross platform.

To use on Linux, first run:

sudo apt-get install libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libspeechd-dev libxkbcommon-dev libssl-dev

This crate depends on egui-winit.