Trait rich_sdl2_rust::gl_context::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§
sourcefn set_swap_interval(&self, interval_kind: IntervalKind) -> Result<()>
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.
sourcefn swap_buffer(&self)
fn swap_buffer(&self)
Swaps buffers immediately.