[][src]Struct qt_gui::q_opengl_texture::WrapMode

#[repr(transparent)]
pub struct WrapMode(_);

This enum defines the possible texture coordinate wrapping modes.

C++ enum: QOpenGLTexture::WrapMode.

C++ documentation:

This enum defines the possible texture coordinate wrapping modes.

Methods

impl WrapMode[src]

pub fn to_int(&self) -> c_int[src]

impl WrapMode[src]

pub const Repeat: WrapMode[src]

Texture coordinate is repeated. Equivalent to GL_REPEAT (C++ enum variant: Repeat = 10497)

pub const MirroredRepeat: WrapMode[src]

Texture coordinate is reflected about 0 and 1. Equivalent to GL_MIRRORED_REPEAT (C++ enum variant: MirroredRepeat = 33648)

pub const ClampToEdge: WrapMode[src]

Clamps the texture coordinates to [0,1]. Equivalent to GL_CLAMP_TO_EDGE (C++ enum variant: ClampToEdge = 33071)

pub const ClampToBorder: WrapMode[src]

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

impl Clone for WrapMode[src]

impl Copy for WrapMode[src]

impl Debug for WrapMode[src]

impl Eq for WrapMode[src]

impl From<WrapMode> for c_int[src]

impl From<i32> for WrapMode[src]

impl PartialEq<WrapMode> for WrapMode[src]

impl StructuralEq for WrapMode[src]

impl StructuralPartialEq for WrapMode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.