[−][src]Enum glfw::SwapInterval
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
impl Eq for SwapInterval
[src]
impl Copy for SwapInterval
[src]
impl PartialOrd<SwapInterval> for SwapInterval
[src]
fn partial_cmp(&self, other: &SwapInterval) -> Option<Ordering>
[src]
fn lt(&self, other: &SwapInterval) -> bool
[src]
fn le(&self, other: &SwapInterval) -> bool
[src]
fn gt(&self, other: &SwapInterval) -> bool
[src]
fn ge(&self, other: &SwapInterval) -> bool
[src]
impl PartialEq<SwapInterval> for SwapInterval
[src]
fn eq(&self, other: &SwapInterval) -> bool
[src]
fn ne(&self, other: &SwapInterval) -> bool
[src]
impl Clone for SwapInterval
[src]
fn clone(&self) -> SwapInterval
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Ord for SwapInterval
[src]
fn cmp(&self, other: &SwapInterval) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
clamp
)Restrict a value to a certain interval. Read more
impl Debug for SwapInterval
[src]
impl Hash for SwapInterval
[src]
Auto Trait Implementations
impl Send for SwapInterval
impl Sync for SwapInterval
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,