update_texture

Function update_texture 

Source
pub fn update_texture(
    handle: TextureHandle,
    pos_x: u32,
    pos_y: u32,
    width: u32,
    height: u32,
    data: &[u8],
)
Expand description

Updates a subrectangle of a texture with new data.

Format is implied to be the same as the texture already is in.