[][src]Struct qt_gui::q_opengl_framebuffer_object::Attachment

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

This enum type is used to configure the depth and stencil buffers attached to the framebuffer object when it is created.

C++ enum: QOpenGLFramebufferObject::Attachment.

C++ documentation:

This enum type is used to configure the depth and stencil buffers attached to the framebuffer object when it is created.

See also attachment().

Methods

impl Attachment[src]

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

impl Attachment[src]

pub const NoAttachment: Attachment[src]

No attachment is added to the framebuffer object. Note that the OpenGL depth and stencil tests won't work when rendering to a framebuffer object without any depth or stencil buffers. This is the default value. (C++ enum variant: NoAttachment = 0)

pub const CombinedDepthStencil: Attachment[src]

If the GL_EXT_packed_depth_stencil extension is present, a combined depth and stencil buffer is attached. If the extension is not present, only a depth buffer is attached. (C++ enum variant: CombinedDepthStencil = 1)

pub const Depth: Attachment[src]

A depth buffer is attached to the framebuffer object. (C++ enum variant: Depth = 2)

Trait Implementations

impl Clone for Attachment[src]

impl Copy for Attachment[src]

impl Debug for Attachment[src]

impl Eq for Attachment[src]

impl From<Attachment> for c_int[src]

impl From<i32> for Attachment[src]

impl PartialEq<Attachment> for Attachment[src]

impl StructuralEq for Attachment[src]

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