Skip to content

Instantly share code, notes, and snippets.

@TheOpenDevProject
Last active November 3, 2015 11:06
Show Gist options
  • Save TheOpenDevProject/db8a4a0f050102b60ee1 to your computer and use it in GitHub Desktop.
Save TheOpenDevProject/db8a4a0f050102b60ee1 to your computer and use it in GitHub Desktop.
//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