-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
1,324 additions
and
1,364 deletions.
There are no files selected for viewing
This file contains 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
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(); | ||
} |
This file contains 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
Oops, something went wrong.