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§
fn new(window: &Window) -> Self
fn get_proc_address(&self, symbol: &str) -> *const c_void
Sourcefn make_current(&self)
fn make_current(&self)
このContext
を描画先として設定する
fn make_not_current(&self)
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.