pub fn write_to(&self, tilemap: &HashMap<Tile, Vec<u32>>, buffer: &mut [u32]) {
        for r in 0..self.height {
            for c in 0..self.width {
                self.write_pos(tilemap, (r, c), buffer);
            }
        }
    }
/// Writes all the tiles to a mutable buffer.
/// The buffer must be large enough to contain all the pixels.
Writes all the tiles to a mutable buffer.
The buffer must be large enough to contain all the pixels.
Writes all the tiles to a mutable buffer . The buffer must be large enough to contain all the pixels .
pub fn write_to(&self, tilemap: &HashMap<Tile, Vec<u32>>, buffer: &mut [u32]) {
        for r in 0..self.height {
            for c in 0..self.width {
                self.write_pos(tilemap, (r, c), buffer);
            }
        }
    }
pub fn write_to ( & self , tilemap : & HashMap < Tile , Vec < u32 > > , buffer : & mut [ u32 ] ) { for r in 0 .. self . height { for c in 0 .. self . width { self . write_pos ( tilemap , ( r , c ) , buffer ) ; } } }
Writes all the tiles to a mutable buffer.
Writes all the tiles to a mutable buffer .
&self
tilemap
&HashMap<Tile, Vec<u32>>
buffer
&mut [u32]
&self
tilemap
&HashMap<Tile, Vec<u32>>
buffer
&mut [u32]