diff --git a/textium/src/texture.rs b/textium/src/texture.rs index 8ede56d..b5f0f1f 100644 --- a/textium/src/texture.rs +++ b/textium/src/texture.rs @@ -70,6 +70,14 @@ impl Bitmap where T: Clone + Default { pub fn lines(&self) -> Chunks { self.data.chunks(self.width) } + + pub fn raw(&self) -> &[T] { + &self.data + } + + pub fn into_raw(self) -> Vec { + self.data + } } impl Buffer2d for Bitmap where T: Clone {