Struct egui::TextureOptions
source · pub struct TextureOptions {
pub magnification: TextureFilter,
pub minification: TextureFilter,
pub wrap_mode: TextureWrapMode,
}
Expand description
How the texture texels are filtered.
Fields§
§magnification: TextureFilter
How to filter when magnifying (when texels are larger than pixels).
minification: TextureFilter
How to filter when minifying (when texels are smaller than pixels).
wrap_mode: TextureWrapMode
How to wrap the texture when the texture coordinates are outside the [0, 1] range.
Implementations§
source§impl TextureOptions
impl TextureOptions
sourcepub const LINEAR: TextureOptions = _
pub const LINEAR: TextureOptions = _
Linear magnification and minification.
sourcepub const NEAREST: TextureOptions = _
pub const NEAREST: TextureOptions = _
Nearest magnification and minification.
sourcepub const LINEAR_REPEAT: TextureOptions = _
pub const LINEAR_REPEAT: TextureOptions = _
Linear magnification and minification, but with the texture repeated.
sourcepub const LINEAR_MIRRORED_REPEAT: TextureOptions = _
pub const LINEAR_MIRRORED_REPEAT: TextureOptions = _
Linear magnification and minification, but with the texture mirrored and repeated.
sourcepub const NEAREST_REPEAT: TextureOptions = _
pub const NEAREST_REPEAT: TextureOptions = _
Nearest magnification and minification, but with the texture repeated.
sourcepub const NEAREST_MIRRORED_REPEAT: TextureOptions = _
pub const NEAREST_MIRRORED_REPEAT: TextureOptions = _
Nearest magnification and minification, but with the texture mirrored and repeated.
Trait Implementations§
source§impl Clone for TextureOptions
impl Clone for TextureOptions
source§fn clone(&self) -> TextureOptions
fn clone(&self) -> TextureOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TextureOptions
impl Debug for TextureOptions
source§impl Default for TextureOptions
impl Default for TextureOptions
source§fn default() -> TextureOptions
fn default() -> TextureOptions
The default is linear for both magnification and minification.
source§impl Hash for TextureOptions
impl Hash for TextureOptions
source§impl PartialEq for TextureOptions
impl PartialEq for TextureOptions
source§fn eq(&self, other: &TextureOptions) -> bool
fn eq(&self, other: &TextureOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TextureOptions
impl Eq for TextureOptions
impl StructuralEq for TextureOptions
impl StructuralPartialEq for TextureOptions
Auto Trait Implementations§
impl RefUnwindSafe for TextureOptions
impl Send for TextureOptions
impl Sync for TextureOptions
impl Unpin for TextureOptions
impl UnwindSafe for TextureOptions
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more