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
2016-12-20 23:30:28 +00:00
src Added Faces 2016-12-20 23:00:44 +00:00
.gitignore Initial Commit 2016-12-18 07:00:41 +00:00
Cargo.toml Updated toml for publishing 2016-12-20 23:23:42 +00:00
LICENSE Initial commit 2016-12-18 07:01:10 +00:00
readme.md Added readme 2016-12-20 23:30:28 +00:00

#Example usage

use std::fs::{File};
use std::path::{Path};
use std::io::{Read};

fn main() {
    let path = Path::new("pak0/maps/q3dm1.bsp");
    let mut file = File::open(path).unwrap();
    let mut bytes = Vec::new();
    file.read_to_end(&mut bytes).unwrap();

    let bsp = quake3_loader::read_bsp(bytes);
           
    println!("{:?}", bsp);
}