Enum glfw::SwapInterval
source · [−]pub enum SwapInterval {
None,
Adaptive,
Sync(u32),
}
Expand description
Specifies how the context should handle swapping the buffers.
i.e. the number of screen updates to wait from the time
glfwSwapBuffers
/context.swap_buffers
was called before swapping the buffers and returning.
Variants
None
Specifies no waits
Adaptive
If either of the WGL_EXT_swap_control_tear
and GLX_EXT_swap_control_tear
extensions
are enabled, allows the adaptively swap the frame. Sometimes called Adaptive V-sync
Sync(u32)
Synchronizes the buffers every N frames. Set to 1 for V-sync
Trait Implementations
sourceimpl Clone for SwapInterval
impl Clone for SwapInterval
sourcefn clone(&self) -> SwapInterval
fn clone(&self) -> SwapInterval
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SwapInterval
impl Debug for SwapInterval
sourceimpl Hash for SwapInterval
impl Hash for SwapInterval
sourceimpl Ord for SwapInterval
impl Ord for SwapInterval
sourceimpl PartialEq<SwapInterval> for SwapInterval
impl PartialEq<SwapInterval> for SwapInterval
sourcefn eq(&self, other: &SwapInterval) -> bool
fn eq(&self, other: &SwapInterval) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SwapInterval) -> bool
fn ne(&self, other: &SwapInterval) -> bool
This method tests for !=
.
sourceimpl PartialOrd<SwapInterval> for SwapInterval
impl PartialOrd<SwapInterval> for SwapInterval
sourcefn partial_cmp(&self, other: &SwapInterval) -> Option<Ordering>
fn partial_cmp(&self, other: &SwapInterval) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for SwapInterval
impl Eq for SwapInterval
impl StructuralEq for SwapInterval
impl StructuralPartialEq for SwapInterval
Auto Trait Implementations
impl RefUnwindSafe for SwapInterval
impl Send for SwapInterval
impl Sync for SwapInterval
impl Unpin for SwapInterval
impl UnwindSafe for SwapInterval
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more