pub struct FramebufferRestorePolicy(/* private fields */);
Expand description
This enum type is used to configure the behavior related to restoring framebuffer bindings when calling blitFramebuffer().
C++ enum: QOpenGLFramebufferObject::FramebufferRestorePolicy
.
This enum type is used to configure the behavior related to restoring framebuffer bindings when calling blitFramebuffer().
This enum was introduced or modified in Qt 5.7.
See also blitFramebuffer().
Implementations§
source§impl FramebufferRestorePolicy
impl FramebufferRestorePolicy
sourcepub const DontRestoreFramebufferBinding: FramebufferRestorePolicy = _
pub const DontRestoreFramebufferBinding: FramebufferRestorePolicy = _
Do not restore the previous framebuffer binding. The caller is responsible for tracking and setting the framebuffer binding as needed. (C++ enum variant: DontRestoreFramebufferBinding = 0
)
sourcepub const RestoreFramebufferBindingToDefault: FramebufferRestorePolicy = _
pub const RestoreFramebufferBindingToDefault: FramebufferRestorePolicy = _
After the blit operation, bind the default framebuffer. (C++ enum variant: RestoreFramebufferBindingToDefault = 1
)
sourcepub const RestoreFrameBufferBinding: FramebufferRestorePolicy = _
pub const RestoreFrameBufferBinding: FramebufferRestorePolicy = _
Restore the previously bound framebuffer. This is potentially expensive because of the need to query the currently bound framebuffer. (C++ enum variant: RestoreFrameBufferBinding = 2
)
Trait Implementations§
source§impl Clone for FramebufferRestorePolicy
impl Clone for FramebufferRestorePolicy
source§fn clone(&self) -> FramebufferRestorePolicy
fn clone(&self) -> FramebufferRestorePolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FramebufferRestorePolicy
impl Debug for FramebufferRestorePolicy
source§impl From<FramebufferRestorePolicy> for c_int
impl From<FramebufferRestorePolicy> for c_int
source§fn from(value: FramebufferRestorePolicy) -> Self
fn from(value: FramebufferRestorePolicy) -> Self
source§impl From<i32> for FramebufferRestorePolicy
impl From<i32> for FramebufferRestorePolicy
source§impl PartialEq for FramebufferRestorePolicy
impl PartialEq for FramebufferRestorePolicy
source§fn eq(&self, other: &FramebufferRestorePolicy) -> bool
fn eq(&self, other: &FramebufferRestorePolicy) -> bool
self
and other
values to be equal, and is used
by ==
.