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 more