GLContexts

Trait GLContexts 

Source
pub trait GLContexts<GL: GLTypes> {
    // Required methods
    fn device(&self, context_id: ContextId) -> Option<GL::Device>;
    fn bindings(&mut self, context_id: ContextId) -> Option<&GL::Bindings>;
    fn context(&mut self, context_id: ContextId) -> Option<&mut GL::Context>;
}

Required Methods§

Source

fn device(&self, context_id: ContextId) -> Option<GL::Device>

Source

fn bindings(&mut self, context_id: ContextId) -> Option<&GL::Bindings>

Source

fn context(&mut self, context_id: ContextId) -> Option<&mut GL::Context>

Implementations on Foreign Types§

Source§

impl GLContexts<()> for ()

Source§

fn device(&self, _: ContextId) -> Option<()>

Source§

fn context(&mut self, _: ContextId) -> Option<&mut ()>

Source§

fn bindings(&mut self, _: ContextId) -> Option<&()>

Implementors§