Add basic support for Android

This commit is contained in:
Tomaka17 2014-09-11 18:13:50 +02:00
parent d870fa7ffa
commit 0bb82e8467
11 changed files with 505 additions and 1 deletions

View file

@ -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();