mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 14:50:03 -04:00
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>
This commit is contained in:
@@ -3,7 +3,7 @@ All notable changes to the `egui_glow` integration will be noted in this file.
|
||||
|
||||
|
||||
## Unreleased
|
||||
|
||||
* Added `set_texture_filter` method to `Painter` ((#1041)[https://github.com/emilk/egui/pull/1041]).
|
||||
|
||||
## 0.16.0 - 2021-12-29
|
||||
* Made winit/glutin an optional dependency ([#868](https://github.com/emilk/egui/pull/868)).
|
||||
|
||||
Reference in New Issue
Block a user