mirror of
https://codeberg.org/icewind/vbsp.git
synced 2026-06-03 18:54:05 +02:00
add helper for texture_info
This commit is contained in:
parent
07a9fe5f71
commit
2c973769bd
1 changed files with 4 additions and 0 deletions
|
|
@ -184,6 +184,10 @@ impl Bsp {
|
|||
self.nodes.get(n).map(|node| Handle::new(self, node))
|
||||
}
|
||||
|
||||
pub fn texture_info(&self, n: usize) -> Option<Handle<'_, TextureInfo>> {
|
||||
self.textures_info.get(n).map(|texture_info| Handle::new(self, texture_info))
|
||||
}
|
||||
|
||||
pub fn displacement(&self, n: usize) -> Option<Handle<'_, DisplacementInfo>> {
|
||||
self.displacements
|
||||
.get(n)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue