Trait webxr_api::GLContexts

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

Required Methods§

source

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

source

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

Implementations on Foreign Types§

source§

impl GLContexts<()> for ()

source§

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

source§

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

Implementors§