Add get_mut to Textures struct

This commit is contained in:
Ketan Reynolds 2020-08-11 12:25:33 +02:00
parent d5be602f73
commit ba1976950d

View File

@ -75,4 +75,8 @@ impl<T> Textures<T> {
pub fn get(&self, id: TextureId) -> Option<&T> {
self.textures.get(&id.0)
}
pub fn get_mut(&mut self, id: TextureId) -> Option<&mut T> {
self.textures.get_mut(&id.0)
}
}