Last active
December 8, 2015 18:11
-
-
Save emoon/ac178203549c67c0ba6f 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
enum Vsync { | |
On, | |
Off, | |
} | |
enum Scale { | |
FitScreen, | |
1X, | |
2X | |
4X, | |
8X | |
16X, | |
32X, | |
} | |
impl Window { | |
fn pub new(title: &str, width: usize, height: usize, scale: Scale, vsync: Vsync) -> Result<Window, &str> | |
fn pub update(&mut self, buffer: &[u32]) | |
fn pub get_keys(&self) -> Vec<Key> | |
fn pub get_key_mods(&self) -> Vec<Mod> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment