#[repr(u8)]
pub enum TextureWrap {
Repeat,
Mirror,
Clamp,
MirrorClamp,
}
Expand description
Sets the wrap parameter for texture.
Variants
Repeat
Samples at coord x + 1 map to coord x.
Mirror
Samples at coord x + 1 map to coord 1 - x.
Clamp
Samples at coord x + 1 map to coord 1.
MirrorClamp
Same as Mirror, but only for one repetition.
Trait Implementations
sourceimpl Clone for TextureWrap
impl Clone for TextureWrap
sourcefn clone(&self) -> TextureWrap
fn clone(&self) -> TextureWrap
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TextureWrap
impl Debug for TextureWrap
sourceimpl PartialEq<TextureWrap> for TextureWrap
impl PartialEq<TextureWrap> for TextureWrap
sourcefn eq(&self, other: &TextureWrap) -> bool
fn eq(&self, other: &TextureWrap) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for TextureWrap
impl Eq for TextureWrap
impl StructuralEq for TextureWrap
impl StructuralPartialEq for TextureWrap
Auto Trait Implementations
impl RefUnwindSafe for TextureWrap
impl Send for TextureWrap
impl Sync for TextureWrap
impl Unpin for TextureWrap
impl UnwindSafe for TextureWrap
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more