1
0
Fork 0
mirror of https://codeberg.org/icewind/vbsp.git synced 2026-06-03 10:44:07 +02:00

Merge pull request #20 from krakow10/texture_info-helper

Add helper for texture_info
This commit is contained in:
Robin Appelman 2025-02-26 23:05:52 +01:00 committed by GitHub
commit c781e3e8e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)