pub trait BufferExt {
    // Required methods
    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§

source

fn set_swap_interval(&self, interval_kind: IntervalKind) -> Result<()>

Sets the interval mode of swapping buffers.

§Errors

Returns Err if the feature swapping them is unsupported.

source

fn swap_buffer(&self)

Swaps buffers immediately.

Implementors§