Skip to content

Commit

Permalink
Merge pull request #2 from VictorKoenders/canvas_into_texture
Browse files Browse the repository at this point in the history
Added 'canvas::into_texture'
  • Loading branch information
17cupsofcoffee authored Sep 12, 2024
2 parents 8aebaf9 + 35b08c0 commit d96bb53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/graphics/canvas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ impl Canvas {
pub fn size(&self) -> (i32, i32) {
self.texture.size()
}

pub fn into_texture(self) -> Texture {
self.texture
}
}

pub struct RawCanvas {
Expand Down

0 comments on commit d96bb53

Please sign in to comment.