Skip to content

Instantly share code, notes, and snippets.

@emoon
Last active December 8, 2015 18:11
Show Gist options
  • Save emoon/ac178203549c67c0ba6f to your computer and use it in GitHub Desktop.
Save emoon/ac178203549c67c0ba6f to your computer and use it in GitHub Desktop.
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