[][src]Trait surfman_chains_api::SwapChainAPI

pub trait SwapChainAPI: 'static + Clone + Send {
    type Surface;
    fn take_surface(&self) -> Option<Self::Surface>;
fn recycle_surface(&self, surface: Self::Surface); }

The consumer's view of a swap chain

Associated Types

type Surface

Loading content...

Required methods

fn take_surface(&self) -> Option<Self::Surface>

Take the current front buffer.

fn recycle_surface(&self, surface: Self::Surface)

Recycle the current front buffer.

Loading content...

Implementors

Loading content...