drawing_impeller 1002.0.1

Impeller backend for 2D graphics library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[derive(Clone)]
pub struct ImpellerTexture {
    pub(crate) texture: impellers::Texture,
    pub(crate) descriptor: drawing_api::TextureDescriptor,
}

impl drawing_api::Texture for ImpellerTexture {
    fn get_descriptor(&self) -> drawing_api::TextureDescriptor {
        self.descriptor.clone()
    }

    fn get_gl_handle(&self) -> usize {
        self.texture.get_opengl_handle() as usize
    }
}