1
0
Fork 0
mirror of https://codeberg.org/icewind/vbsp.git synced 2026-06-03 10:44:07 +02:00
No description
  • Rust 99.1%
  • Nix 0.9%
Find a file
2019-04-09 17:35:18 +02:00
src Use real bitflags instead of raw int 2019-04-09 17:35:18 +02:00
.gitignore Initial Commit 2016-12-18 07:00:41 +00:00
Cargo.toml Use real bitflags instead of raw int 2019-04-09 17:35:18 +02:00
LICENSE Initial commit 2016-12-18 07:01:10 +00:00
readme.md Update readme 2019-04-09 16:52:43 +02:00
test.bsp Improve speed, add lightmaps and light volumes, allow parsing entity section 2019-04-09 16:50:48 +02:00

Example usage

(Assuming that the pk3 file is unzipped locally)

extern crate bsp;

use std::fs::File;

fn main() -> std::io::Result<()> {
    let bsp = bsp::read_bsp(&File::open("pak0/maps/q3dm1.bsp")?)?;
    println!("{:?}", bsp);

    Ok(())
}