Struct qt_gui::q_opengl_texture::SwizzleValue
source · pub struct SwizzleValue(/* private fields */);
Expand description
This enum defines the possible mask values for texture swizzling.
C++ enum: QOpenGLTexture::SwizzleValue
.
This enum defines the possible mask values for texture swizzling.
Implementations§
source§impl SwizzleValue
impl SwizzleValue
sourcepub const RedValue: SwizzleValue = _
pub const RedValue: SwizzleValue = _
Maps the component to the red channel. Equivalent to GL_RED (C++ enum variant: RedValue = 6403
)
sourcepub const GreenValue: SwizzleValue = _
pub const GreenValue: SwizzleValue = _
Maps the component to the green channel. Equivalent to GL_GREEN (C++ enum variant: GreenValue = 6404
)
sourcepub const BlueValue: SwizzleValue = _
pub const BlueValue: SwizzleValue = _
Maps the component to the blue channel. Equivalent to GL_BLUE (C++ enum variant: BlueValue = 6405
)
sourcepub const AlphaValue: SwizzleValue = _
pub const AlphaValue: SwizzleValue = _
Maps the component to the alpha channel. Equivalent to GL_ALPHA (C++ enum variant: AlphaValue = 6406
)
sourcepub const ZeroValue: SwizzleValue = _
pub const ZeroValue: SwizzleValue = _
Maps the component to a fixed value of 0. Equivalent to GL_ZERO (C++ enum variant: ZeroValue = 0
)
sourcepub const OneValue: SwizzleValue = _
pub const OneValue: SwizzleValue = _
Maps the component to a fixed value of 1. Equivalent to GL_ONE (C++ enum variant: OneValue = 1
)
Trait Implementations§
source§impl Clone for SwizzleValue
impl Clone for SwizzleValue
source§fn clone(&self) -> SwizzleValue
fn clone(&self) -> SwizzleValue
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SwizzleValue
impl Debug for SwizzleValue
source§impl From<SwizzleValue> for c_int
impl From<SwizzleValue> for c_int
source§fn from(value: SwizzleValue) -> Self
fn from(value: SwizzleValue) -> Self
source§impl From<i32> for SwizzleValue
impl From<i32> for SwizzleValue
source§impl PartialEq for SwizzleValue
impl PartialEq for SwizzleValue
source§fn eq(&self, other: &SwizzleValue) -> bool
fn eq(&self, other: &SwizzleValue) -> bool
self
and other
values to be equal, and is used
by ==
.