Last active
November 3, 2015 11:06
-
-
Save TheOpenDevProject/db8a4a0f050102b60ee1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Basic stuff for our Xorg window | |
extern crate gl; | |
extern crate glutin; | |
extern crate libc; | |
use std::error::Error; | |
use std::io::prelude::*; | |
use std::fs::File; | |
use std::path::Path; | |
struct Vec3D{ | |
X:f32, | |
Y:f32, | |
Z:f32 | |
} | |
fn main() { | |
load_file(); | |
} | |
fn load_file(){ | |
let model_path = Path::new("/media/reverseinverse/Data/models/"); | |
let mut file = match File::open(&model_path) { | |
Err(err_msg) => panic!("Could not load model"), | |
Ok => file, | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment