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 more