Enum glfw::SwapInterval [−][src]
pub enum SwapInterval { None, Adaptive, Sync(u32), }
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
Specifies no waits
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 Clone for SwapInterval
[src]
impl Clone for SwapInterval
[src]fn clone(&self) -> SwapInterval
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Hash for SwapInterval
[src]
impl Hash for SwapInterval
[src]impl Ord for SwapInterval
[src]
impl Ord for SwapInterval
[src]impl PartialEq<SwapInterval> for SwapInterval
[src]
impl PartialEq<SwapInterval> for SwapInterval
[src]fn eq(&self, other: &SwapInterval) -> bool
[src]
fn ne(&self, other: &SwapInterval) -> bool
[src]
impl PartialOrd<SwapInterval> for SwapInterval
[src]
impl PartialOrd<SwapInterval> for SwapInterval
[src]fn partial_cmp(&self, other: &SwapInterval) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> bool