pub trait BufferExt {
    fn set_swap_interval(&self, interval_kind: IntervalKind) -> Result<()>;
    fn swap_buffer(&self);
}
Expand description

An extension for GlContext to add methods for control buffers.

Required Methods§

Sets the interval mode of swapping buffers.

Errors

Returns Err if the feature swapping them is unsupported.

Swaps buffers immediately.

Implementors§