diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2014-09-11 18:32:29 +0200 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2014-09-11 18:32:29 +0200 |
commit | 6b834baedaab6086438e3a84ca72b809b9f7740f (patch) | |
tree | 0ab25291235c2b7446e5b087a3bdf48dfd158473 /examples/window.rs | |
parent | c0c43f41387b30c2f78f19dbae1212256a99de49 (diff) | |
parent | 0bb82e8467f4f0acde0ba434cbc214ea9a4af476 (diff) | |
download | glutin-6b834baedaab6086438e3a84ca72b809b9f7740f.tar.gz glutin-6b834baedaab6086438e3a84ca72b809b9f7740f.zip |
Merge pull request #30 from tomaka/android
Basic support for Android
Diffstat (limited to 'examples/window.rs')
-rw-r--r-- | examples/window.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/window.rs b/examples/window.rs index f184dc3..5621b3c 100644 --- a/examples/window.rs +++ b/examples/window.rs @@ -1,7 +1,16 @@ +#![feature(phase)] + +#[cfg(target_os = "android")] +#[phase(plugin, link)] +extern crate android_glue; + extern crate gl; extern crate gl_init; extern crate libc; +#[cfg(target_os = "android")] +android_start!(main) + fn main() { let window = gl_init::Window::new().unwrap(); |