mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-28 07:33:14 -04:00
Add basic support for Android
This commit is contained in:
@@ -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 window1 = gl_init::Window::new().unwrap();
|
||||
let window2 = gl_init::Window::new().unwrap();
|
||||
|
||||
Reference in New Issue
Block a user