e2r 0.10.0

experimental rendering engine in rust
Documentation
1
2
3
4
5
6
7
8
9
10
use implement::file::ppm;

#[test]
fn test_parse_ppm(){
    let ( w, h, img_bytes ) = ppm::read( "core/test_asset/sample_ppm/boxes_1.ppm" ).expect("ppm file read invalid");
    println!("w: {}, h: {}, image bytes length: {}", w, h, img_bytes.len() );
    assert!( w == 63 );
    assert!( h == 63 );
    assert!( img_bytes.len() == 63 * 63 * 3 );
}