Skip to content

Commit

Permalink
: Reformat.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasOM committed Jun 28, 2022
1 parent 26931a7 commit f50e60c
Show file tree
Hide file tree
Showing 27 changed files with 1,324 additions and 1,364 deletions.
13 changes: 7 additions & 6 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
use gl_generator::{Registry, Api, Profile, Fallbacks, GlobalGenerator};
use std::env;
use std::fs::File;
use std::path::Path;

use gl_generator::{Api, Fallbacks, GlobalGenerator, Profile, Registry};

fn main() {
let dest = env::var("OUT_DIR").unwrap();
let mut file = File::create(&Path::new(&dest).join("gl_bindings.rs")).unwrap();
let dest = env::var("OUT_DIR").unwrap();
let mut file = File::create(&Path::new(&dest).join("gl_bindings.rs")).unwrap();

Registry::new(Api::Gl, (4, 1), Profile::Core, Fallbacks::All, [])
.write_bindings(GlobalGenerator, &mut file)
.unwrap();
Registry::new(Api::Gl, (4, 1), Profile::Core, Fallbacks::All, [])
.write_bindings(GlobalGenerator, &mut file)
.unwrap();
}
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ pub use app::App;
pub mod game;
pub use game::Game;
pub mod math;
pub mod renderer;
pub mod system;
pub mod window;
pub mod renderer;
Loading

0 comments on commit f50e60c

Please sign in to comment.