Enum glfw::SwapInterval [−][src]
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
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
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
Mutably borrows from an owned value. Read more