[][src]Struct qt_gui::q_opengl_texture::PixelFormat

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

This enum defines the possible client-side pixel formats for a pixel transfer operation.

C++ enum: QOpenGLTexture::PixelFormat.

C++ documentation:

This enum defines the possible client-side pixel formats for a pixel transfer operation.

Methods

impl PixelFormat[src]

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

impl PixelFormat[src]

pub const NoSourceFormat: PixelFormat[src]

Equivalent to GL_NONE (C++ enum variant: NoSourceFormat = 0)

pub const Red: PixelFormat[src]

Equivalent to GL_RED (C++ enum variant: Red = 6403)

pub const RG: PixelFormat[src]

Equivalent to GL_RG (C++ enum variant: RG = 33319)

pub const RGB: PixelFormat[src]

Equivalent to GL_RGB (C++ enum variant: RGB = 6407)

pub const BGR: PixelFormat[src]

Equivalent to GL_BGR (C++ enum variant: BGR = 32992)

pub const RGBA: PixelFormat[src]

Equivalent to GL_RGBA (C++ enum variant: RGBA = 6408)

pub const BGRA: PixelFormat[src]

Equivalent to GL_BGRA (C++ enum variant: BGRA = 32993)

pub const RedInteger: PixelFormat[src]

Equivalent to GL_RED_INTEGER (C++ enum variant: Red_Integer = 36244)

pub const RGInteger: PixelFormat[src]

Equivalent to GL_RG_INTEGER (C++ enum variant: RG_Integer = 33320)

pub const RGBInteger: PixelFormat[src]

Equivalent to GL_RGB_INTEGER (C++ enum variant: RGB_Integer = 36248)

pub const BGRInteger: PixelFormat[src]

Equivalent to GL_BGR_INTEGER (C++ enum variant: BGR_Integer = 36250)

pub const RGBAInteger: PixelFormat[src]

Equivalent to GL_RGBA_INTEGER (C++ enum variant: RGBA_Integer = 36249)

pub const BGRAInteger: PixelFormat[src]

Equivalent to GL_BGRA_INTEGER (C++ enum variant: BGRA_Integer = 36251)

pub const Stencil: PixelFormat[src]

Equivalent to GL_STENCIL_INDEX. Introduced in Qt 5.4 (C++ enum variant: Stencil = 6401)

pub const Depth: PixelFormat[src]

Equivalent to GL_DEPTH_COMPONENT (C++ enum variant: Depth = 6402)

pub const DepthStencil: PixelFormat[src]

Equivalent to GL_DEPTH_STENCIL (C++ enum variant: DepthStencil = 34041)

pub const Alpha: PixelFormat[src]

Equivalent to GL_ALPHA (OpenGL ES 2 only) (C++ enum variant: Alpha = 6406)

pub const Luminance: PixelFormat[src]

Equivalent to GL_LUMINANCE (OpenGL ES 2 only) (C++ enum variant: Luminance = 6409)

pub const LuminanceAlpha: PixelFormat[src]

Equivalent to GL_LUMINANCE_ALPHA (OpenGL ES 2 only) (C++ enum variant: LuminanceAlpha = 6410)

Trait Implementations

impl Clone for PixelFormat[src]

impl Copy for PixelFormat[src]

impl Debug for PixelFormat[src]

impl Eq for PixelFormat[src]

impl From<PixelFormat> for c_int[src]

impl From<i32> for PixelFormat[src]

impl PartialEq<PixelFormat> for PixelFormat[src]

impl StructuralEq for PixelFormat[src]

impl StructuralPartialEq for PixelFormat[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.