Struct qt_gui::q_opengl_framebuffer_object::Attachment
source · pub struct Attachment(/* private fields */);
Expand description
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
.
This enum type is used to configure the depth and stencil buffers attached to the framebuffer object when it is created.
See also attachment().
Implementations§
source§impl Attachment
impl Attachment
sourcepub const NoAttachment: Attachment = _
pub const NoAttachment: Attachment = _
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
)
sourcepub const CombinedDepthStencil: Attachment = _
pub const CombinedDepthStencil: Attachment = _
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
)
sourcepub const Depth: Attachment = _
pub const Depth: Attachment = _
A depth buffer is attached to the framebuffer object. (C++ enum variant: Depth = 2
)
Trait Implementations§
source§impl Clone for Attachment
impl Clone for Attachment
source§fn clone(&self) -> Attachment
fn clone(&self) -> Attachment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Attachment
impl Debug for Attachment
source§impl From<Attachment> for c_int
impl From<Attachment> for c_int
source§fn from(value: Attachment) -> Self
fn from(value: Attachment) -> Self
source§impl From<i32> for Attachment
impl From<i32> for Attachment
source§impl PartialEq for Attachment
impl PartialEq for Attachment
source§fn eq(&self, other: &Attachment) -> bool
fn eq(&self, other: &Attachment) -> bool
self
and other
values to be equal, and is used
by ==
.