Struct qt_gui::q_opengl_texture::WrapMode
source · pub struct WrapMode(/* private fields */);
Expand description
This enum defines the possible texture coordinate wrapping modes.
C++ enum: QOpenGLTexture::WrapMode
.
This enum defines the possible texture coordinate wrapping modes.
Implementations§
source§impl WrapMode
impl WrapMode
sourcepub const Repeat: WrapMode = _
pub const Repeat: WrapMode = _
Texture coordinate is repeated. Equivalent to GL_REPEAT (C++ enum variant: Repeat = 10497
)
sourcepub const MirroredRepeat: WrapMode = _
pub const MirroredRepeat: WrapMode = _
Texture coordinate is reflected about 0 and 1. Equivalent to GL_MIRRORED_REPEAT (C++ enum variant: MirroredRepeat = 33648
)
sourcepub const ClampToEdge: WrapMode = _
pub const ClampToEdge: WrapMode = _
Clamps the texture coordinates to [0,1]. Equivalent to GL_CLAMP_TO_EDGE (C++ enum variant: ClampToEdge = 33071
)
sourcepub const ClampToBorder: WrapMode = _
pub const ClampToBorder: WrapMode = _
As for ClampToEdge but also blends samples at 0 and 1 with a fixed border color. Equivalent to GL_CLAMP_TO_BORDER (C++ enum variant: ClampToBorder = 33069
)
Trait Implementations§
source§impl PartialEq for WrapMode
impl PartialEq for WrapMode
impl Copy for WrapMode
impl Eq for WrapMode
impl StructuralEq for WrapMode
impl StructuralPartialEq for WrapMode
Auto Trait Implementations§
impl RefUnwindSafe for WrapMode
impl Send for WrapMode
impl Sync for WrapMode
impl Unpin for WrapMode
impl UnwindSafe for WrapMode
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