1
0
Fork 0
mirror of https://codeberg.org/icewind/vbsp.git synced 2026-06-03 18:54:05 +02:00
No description
  • Rust 99.1%
  • Nix 0.9%
Find a file
2020-06-26 19:27:18 +02:00
benches move benchmark into benches folder 2020-06-22 18:57:52 +02:00
src remove global allows 2020-06-26 19:27:18 +02:00
.gitignore Initial Commit 2016-12-18 07:00:41 +00:00
base.bench valve bsp wip 2020-06-25 00:25:48 +02:00
Cargo.toml some more data implemented 2020-06-26 00:05:48 +02:00
koth_bagel_rc2a.bsp valve bsp wip 2020-06-25 00:25:48 +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(())
}