e2r 0.10.0

experimental rendering engine in rust
Documentation
use implement::file::md5common;
use implement::file::wavefrontobj;

#[test]
fn test_parse_wavefrontobj(){

    let file_content = md5common::file_open( "core/asset/obj/25-vaz-2108/2108_tri.obj" ).expect("file open invalid");
    println!("file content length: {}", file_content.len() );

    let _wavefront_objs = wavefrontobj::parse( &file_content ).expect("parse unsuccessful");

    println!( "number of groups: {}", _wavefront_objs._groups.len() );
    // for i in mesh_root._joints.iter() {
    //     println!( "joint name: {:?}, parent index: {:?}, pos: {:?}, orient: {:?}, rot: {:?}", i._name, i._parent_index, i._pos, i._orient, i._rot );
    // }
    
    // for (idx, i) in mesh_root._meshes.iter().enumerate() {
    //     println!( "mesh {} {{", idx );
    //     println!( "shader: {}", i._shader );
    //     println!( "numverts: {}", i._numverts );
    //     for j in i._verts.iter() {
    //         println!( "vert index: {}, tex coords: {:?}, weight start: {}, weight count: {}", j._index, j._tex_coords, j._weight_start, j._weight_count );
    //     }
    //     println!( "numtris: {}", i._numtris );
    //     for j in i._tris.iter() {
    //         println!( "tri index: {}, vert indices: {:?}", j._index, j._vert_indices );
    //     }
    //     println!( "numweights: {}", i._numweights );
    //     for j in i._weights.iter() {
    //         println!("weight index: {}, joint index: {}, weight bias: {}, pos: {:?}", j._index, j._joint_index, j._weight_bias, j._pos );
    //     }
    //     println!( "}}" );
    // }
}