Struct qt_gui::q_opengl_texture::PixelFormat
source · pub struct PixelFormat(/* private fields */);
Expand description
This enum defines the possible client-side pixel formats for a pixel transfer operation.
C++ enum: QOpenGLTexture::PixelFormat
.
This enum defines the possible client-side pixel formats for a pixel transfer operation.
Implementations§
source§impl PixelFormat
impl PixelFormat
sourcepub const NoSourceFormat: PixelFormat = _
pub const NoSourceFormat: PixelFormat = _
Equivalent to GL_NONE (C++ enum variant: NoSourceFormat = 0
)
sourcepub const Red: PixelFormat = _
pub const Red: PixelFormat = _
Equivalent to GL_RED (C++ enum variant: Red = 6403
)
sourcepub const RG: PixelFormat = _
pub const RG: PixelFormat = _
Equivalent to GL_RG (C++ enum variant: RG = 33319
)
sourcepub const RGB: PixelFormat = _
pub const RGB: PixelFormat = _
Equivalent to GL_RGB (C++ enum variant: RGB = 6407
)
sourcepub const BGR: PixelFormat = _
pub const BGR: PixelFormat = _
Equivalent to GL_BGR (C++ enum variant: BGR = 32992
)
sourcepub const RGBA: PixelFormat = _
pub const RGBA: PixelFormat = _
Equivalent to GL_RGBA (C++ enum variant: RGBA = 6408
)
sourcepub const BGRA: PixelFormat = _
pub const BGRA: PixelFormat = _
Equivalent to GL_BGRA (C++ enum variant: BGRA = 32993
)
sourcepub const RedInteger: PixelFormat = _
pub const RedInteger: PixelFormat = _
Equivalent to GL_RED_INTEGER (C++ enum variant: Red_Integer = 36244
)
sourcepub const RGInteger: PixelFormat = _
pub const RGInteger: PixelFormat = _
Equivalent to GL_RG_INTEGER (C++ enum variant: RG_Integer = 33320
)
sourcepub const RGBInteger: PixelFormat = _
pub const RGBInteger: PixelFormat = _
Equivalent to GL_RGB_INTEGER (C++ enum variant: RGB_Integer = 36248
)
sourcepub const BGRInteger: PixelFormat = _
pub const BGRInteger: PixelFormat = _
Equivalent to GL_BGR_INTEGER (C++ enum variant: BGR_Integer = 36250
)
sourcepub const RGBAInteger: PixelFormat = _
pub const RGBAInteger: PixelFormat = _
Equivalent to GL_RGBA_INTEGER (C++ enum variant: RGBA_Integer = 36249
)
sourcepub const BGRAInteger: PixelFormat = _
pub const BGRAInteger: PixelFormat = _
Equivalent to GL_BGRA_INTEGER (C++ enum variant: BGRA_Integer = 36251
)
sourcepub const Stencil: PixelFormat = _
pub const Stencil: PixelFormat = _
Equivalent to GL_STENCIL_INDEX. Introduced in Qt 5.4 (C++ enum variant: Stencil = 6401
)
sourcepub const Depth: PixelFormat = _
pub const Depth: PixelFormat = _
Equivalent to GL_DEPTH_COMPONENT (C++ enum variant: Depth = 6402
)
sourcepub const DepthStencil: PixelFormat = _
pub const DepthStencil: PixelFormat = _
Equivalent to GL_DEPTH_STENCIL (C++ enum variant: DepthStencil = 34041
)
sourcepub const Alpha: PixelFormat = _
pub const Alpha: PixelFormat = _
Equivalent to GL_ALPHA (OpenGL ES 2 only) (C++ enum variant: Alpha = 6406
)
sourcepub const Luminance: PixelFormat = _
pub const Luminance: PixelFormat = _
Equivalent to GL_LUMINANCE (OpenGL ES 2 only) (C++ enum variant: Luminance = 6409
)
sourcepub const LuminanceAlpha: PixelFormat = _
pub const LuminanceAlpha: PixelFormat = _
Equivalent to GL_LUMINANCE_ALPHA (OpenGL ES 2 only) (C++ enum variant: LuminanceAlpha = 6410
)
Trait Implementations§
source§impl Clone for PixelFormat
impl Clone for PixelFormat
source§fn clone(&self) -> PixelFormat
fn clone(&self) -> PixelFormat
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PixelFormat
impl Debug for PixelFormat
source§impl From<PixelFormat> for c_int
impl From<PixelFormat> for c_int
source§fn from(value: PixelFormat) -> Self
fn from(value: PixelFormat) -> Self
source§impl From<i32> for PixelFormat
impl From<i32> for PixelFormat
source§impl PartialEq for PixelFormat
impl PartialEq for PixelFormat
source§fn eq(&self, other: &PixelFormat) -> bool
fn eq(&self, other: &PixelFormat) -> bool
self
and other
values to be equal, and is used
by ==
.