use std::rc::Rc;
#[derive(Clone,shrinkwraprs::Shrinkwrap)]
pub struct GLContext {
pub gl : Rc<glow::Context>
}
impl GLContext {
pub fn from_glow_context(glow: glow::Context) -> Self {
GLContext { gl: Rc::new(glow) }
}
}
pub trait HasGLContext {
fn gl_context(&self) -> GLContext;
}