pub fn add_log_stream(log_type: LogStream) {
    unsafe {
        let null = ptr::null();
        let log = match log_type {
            File(fname) => ffi::aiGetPredefinedLogStream(ffi::DefaultLogStream_FILE, CString::new(fname).unwrap().as_ptr()),
            //File(fname) => fname.with_c_str(|s|
                //ffi::aiGetPredefinedLogStream(ffi::DefaultLogStream_FILE, s) ),
            Stdout =>
                ffi::aiGetPredefinedLogStream(ffi::DefaultLogStream_STDOUT, null),
            Stderr =>
                ffi::aiGetPredefinedLogStream(ffi::DefaultLogStream_STDERR, null),
            Debugger =>
                ffi::aiGetPredefinedLogStream(ffi::DefaultLogStream_DEBUGGER, null),
            Custom(_writer) => {
                // writer.write_be_u32(0u32);
                // ffi::LogStream {
                //     callback: stream_call_back,
                //     // user data will be used to reference our writer
                //     user: mem::transmute(writer),
                // }
                unimplemented!();
            }
        };
        ffi::aiAttachLogStream(&log);
    }
}
/// Attach a log stream to assimp. Multiple log streams may be attach
/// simultaneously
Attach a log stream to assimp. Multiple log streams may be attach
simultaneously
Attach a log stream to assimp . Multiple log streams may be attach simultaneously
pub fn add_log_stream(log_type: LogStream) {
    unsafe {
        let null = ptr::null();
        let log = match log_type {
            File(fname) => ffi::aiGetPredefinedLogStream(ffi::DefaultLogStream_FILE, CString::new(fname).unwrap().as_ptr()),
            //File(fname) => fname.with_c_str(|s|
                //ffi::aiGetPredefinedLogStream(ffi::DefaultLogStream_FILE, s) ),
            Stdout =>
                ffi::aiGetPredefinedLogStream(ffi::DefaultLogStream_STDOUT, null),
            Stderr =>
                ffi::aiGetPredefinedLogStream(ffi::DefaultLogStream_STDERR, null),
            Debugger =>
                ffi::aiGetPredefinedLogStream(ffi::DefaultLogStream_DEBUGGER, null),
            Custom(_writer) => {
                // writer.write_be_u32(0u32);
                // ffi::LogStream {
                //     callback: stream_call_back,
                //     // user data will be used to reference our writer
                //     user: mem::transmute(writer),
                // }
                unimplemented!();
            }
        };
        ffi::aiAttachLogStream(&log);
    }
}
pub fn add_log_stream ( log_type : LogStream ) { unsafe { let null = ptr :: null ( ) ; let log = match log_type { File ( fname ) => ffi :: aiGetPredefinedLogStream ( ffi :: DefaultLogStream_FILE , CString :: new ( fname ) . unwrap ( ) . as_ptr ( ) ) , //File(fname) => fname.with_c_str(|s| //ffi::aiGetPredefinedLogStream(ffi::DefaultLogStream_FILE, s) ), Stdout => ffi :: aiGetPredefinedLogStream ( ffi :: DefaultLogStream_STDOUT , null ) , Stderr => ffi :: aiGetPredefinedLogStream ( ffi :: DefaultLogStream_STDERR , null ) , Debugger => ffi :: aiGetPredefinedLogStream ( ffi :: DefaultLogStream_DEBUGGER , null ) , Custom ( _writer ) => { // writer.write_be_u32(0u32); // ffi::LogStream { //     callback: stream_call_back, //     // user data will be used to reference our writer //     user: mem::transmute(writer), // } unimplemented ! ( ) ; } } ; ffi :: aiAttachLogStream ( & log ) ; } }
Attach a log stream to assimp.
Attach a log stream to assimp .
log_type
LogStream
log_type
LogStream