mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-14 23:18:28 +00:00
Add get_mut to Textures struct
This commit is contained in:
parent
d5be602f73
commit
ba1976950d
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user