Trait BufferExt

Source
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§