mirror of
https://codeberg.org/icewind/vbsp.git
synced 2026-06-03 18:54:05 +02:00
Merge pull request #20 from krakow10/texture_info-helper
Add helper for texture_info
This commit is contained in:
commit
c781e3e8e6
1 changed files with 6 additions and 0 deletions
|
|
@ -184,6 +184,12 @@ 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