#load #quake #fork #quake3-loader

bsp

Crate to load BSP files efficiently - currently only works for Quake 3 BSP files. Fork of quake3_loader crate.

3 releases

0.1.2 Apr 10, 2019
0.1.1 Apr 9, 2019
0.1.0 Apr 9, 2019

#1452 in Game dev

MIT license

455KB
951 lines

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(())
}

Dependencies