hecrj / coffee

An opinionated 2D game engine for Rust
https://docs.rs/coffee
MIT License
1.08k stars 55 forks source link

Make `graphics::Image::from_image` borrow the image buffer #104

Closed dlight closed 4 years ago

dlight commented 4 years ago

This makes it possible to reuse the DynamicImage buffer, avoiding unnecessary allocations.