Trait reverie_engine_opengl::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)

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ContextBackend for GlContext

source§

impl ContextBackend for RawContext<PossiblyCurrent>

Implementors§