Trait ContextBackend

Source
pub trait ContextBackend {
    // Required methods
    fn new(window: &Window) -> Self;
    fn get_proc_address(&self, symbol: &str) -> *const c_void;
    fn make_current(&self);
    fn make_not_current(&self);
    fn swap_buffers(&self);
}

Required Methods§

Source

fn new(window: &Window) -> Self

Source

fn get_proc_address(&self, symbol: &str) -> *const c_void

Source

fn make_current(&self)

このContextを描画先として設定する

Source

fn make_not_current(&self)

Source

fn swap_buffers(&self)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ContextBackend for GlContext

Source§

impl ContextBackend for RawContext<PossiblyCurrent>

Implementors§