Struct tile_net::TileNetProxy
[−]
[src]
pub struct TileNetProxy<'a, T: 'a> { /* fields omitted */ }
Proxy for editing the TileNet
Useful when editing and requiring a span of changed tiles. The span can be requested at any time. This can be used to update other states. One particular example is to upload just that square to the GPU to render on a texture.
Methods
impl<'a, T> TileNetProxy<'a, T> where T: Clone
[src]
fn get_span(&self) -> (usize, usize, usize, usize)
Get the span of the changes made
fn set_box(&mut self,
value: &T,
start: (usize, usize),
stop: (usize, usize))
-> (usize, usize, usize, usize)
value: &T,
start: (usize, usize),
stop: (usize, usize))
-> (usize, usize, usize, usize)
Set a box
Start should be less than stop
fn set_row(&mut self, value: &T, row: usize) -> (usize, usize, usize, usize)
Set an entire row
fn set_col(&mut self, value: &T, col: usize) -> (usize, usize, usize, usize)
Set an entire column
fn set(&mut self, value: &T, p: (usize, usize)) -> (usize, usize, usize, usize)
Set a single grid point